Vorlage:Img: Unterschied zwischen den Versionen

Aus Afterbuy-Wiki
Wechseln zu:Navigation, Suche
Zeile 4: Zeile 4:
 
{{#vardefine:padding| {{#if: {{{padding|}}} | padding: 0 {{{padding|}}}% 0 {{{padding|}}}%; | }} }}
 
{{#vardefine:padding| {{#if: {{{padding|}}} | padding: 0 {{{padding|}}}% 0 {{{padding|}}}%; | }} }}
 
{{#vardefine:type| {{#sub:{{#var:image}}|-3}} }}
 
{{#vardefine:type| {{#sub:{{#var:image}}|-3}} }}
{{#vardefine:foot|{{{foot|}}} {{#ifeq: gif | {{#var:type}} | <div align="right"><span id="{{#var:image}}" class="d-inline-block btn btn-outline-success rounded-0"><small>erneut abspielen</small> {{Icon|redo}}</span></div> |}} }}
+
{{#vardefine:foot|{{{foot|}}} {{#ifeq: gif | {{#var:type}} | <div align="right"><span id="{{#var:image}}" class="d-inline-block btn btn-outline-success rounded-0 btn-sm"><small>erneut abspielen</small> {{Icon|redo}}</span></div> |}} }}
 
</div>
 
</div>
 
{{#ifexist: File:{{#var:image}}| {{Container|{{#if: {{{head|}}} |<div class="p-1 {{{headclasses|text-left font-weight-bold}}}">{{{head}}}</div>}} {{#if: {{{breadcrumb|}}} |<div class="p-1">{{Breadcrumb|{{{breadcrumb|}}}}}</div>}} {{#if: {{filename|}} |<div class="p-1 text-center">[[File:{{#var:image}}|class= img-fluid {{{imgclasses|}}}|alt={{{alt| {{{filename|}}}}}}|{{{height|auto}}}|]]</div> }} {{#if: {{#var:foot}} |<div class="p-1 text-muted {{{footclasses|text-left small}}}">{{#var:foot}}</div>}}|{{{cclass|}}}|{{{cstyle| {{#var:padding}} }}} }} | {{WIP|Image {{#var:image}} is missing}} }}
 
{{#ifexist: File:{{#var:image}}| {{Container|{{#if: {{{head|}}} |<div class="p-1 {{{headclasses|text-left font-weight-bold}}}">{{{head}}}</div>}} {{#if: {{{breadcrumb|}}} |<div class="p-1">{{Breadcrumb|{{{breadcrumb|}}}}}</div>}} {{#if: {{filename|}} |<div class="p-1 text-center">[[File:{{#var:image}}|class= img-fluid {{{imgclasses|}}}|alt={{{alt| {{{filename|}}}}}}|{{{height|auto}}}|]]</div> }} {{#if: {{#var:foot}} |<div class="p-1 text-muted {{{footclasses|text-left small}}}">{{#var:foot}}</div>}}|{{{cclass|}}}|{{{cstyle| {{#var:padding}} }}} }} | {{WIP|Image {{#var:image}} is missing}} }}

Version vom 15. Dezember 2021, 08:51 Uhr