105,349
edits
(Crude, temporary fix(?)) |
mNo edit summary Tag: Reverted |
||
Line 1: | Line 1: | ||
<includeonly>{{#vardefine:gpad|{{#if:{{#var:gpad}}|{{#var:gpad}}|15}}}}{{#vardefine:gcpmargin|{{#if:{{#var:gcpmargin}}|{{#var:gcpmargin}}|{{{margin|0}}}}}}}{{#vardefine:galign|{{#if:{{#var:galign}}|{{#var:galign}}|{{{align|center}}}}}}}{{#vardefine:gsize|{{#if:{{#var:gsize}}|{{#var:gsize}}|120}}}}{{#vardefine:gstate|{{#ifexpr:{{#imgw:File:{{{file|}}}}}<={{#imgh:File:{{{file|}}}}}|1|{{#ifeq:{{#var:square}}|false|1|2}}}}}}{{#vardefine:gmargin|{{#if:{{{file|}}}|{{#ifeq:{{#var:gstate}}|1|{{#var:gpad}}|{{#expr:floor(({{#var:gsize}}+2*{{#var:gpad}}-floor({{#var:gsize}}/{{#imgw:File:{{{file|}}}}}*{{#imgh:File:{{{file|}}}}}))/2)}}}}|{{#var:gpad}}}}}}<li class="gallerybox" style="width: {{#expr:{{#var:gsize}}+2*{{#var:gpad}}+5}}px"><div style="width: {{#expr:{{#var:gsize}}+2*{{#var:gpad}}+5}}px"><div class="thumb {{#if:{{#var:dark}}|zdw-thumb--dark}}" style="width: {{#expr:{{#var:gsize}}+2*{{#var:gpad}}}}px;"><div style="margin:auto;">[[File:{{#if:{{{file|}}}|{{{file|}}}|No Image.png}}|{{#var:gsize}}x{{#var:gsize}}px|link={{{link|{{#if:{{{file|}}}|File:{{{file|}}}|Special:Upload}}}}}|{{{tip|}}}]]</div></div>{{#if:{{{caption|}}}|<div class="gallerytext" align="{{#var:galign}}" style="text-align:{{#var:galign}}"><p>{{{caption|}}}</p></div>}}</div></li></includeonly> | <includeonly>{{#vardefine:gpad|{{#if:{{#var:gpad}}|{{#var:gpad}}|15}}}}{{#vardefine:gcpmargin|{{#if:{{#var:gcpmargin}}|{{#var:gcpmargin}}|{{{margin|0}}}}}}}{{#vardefine:galign|{{#if:{{#var:galign}}|{{#var:galign}}|{{{align|center}}}}}}}{{#vardefine:gsize|{{#if:{{#var:gsize}}|{{#var:gsize}}|120}}}}{{#vardefine:gstate|{{#ifexpr:{{#imgw:File:{{{file|}}}}}<={{#imgh:File:{{{file|}}}}}|1|{{#ifeq:{{#var:square}}|false|1|2}}}}}}{{#vardefine:gmargin|{{#if:{{{file|}}}|{{#ifeq:{{#var:gstate}}|1|{{#var:gpad}}|{{#expr:floor(({{#var:gsize}}+2*{{#var:gpad}}-floor({{#var:gsize}}/{{#imgw:File:{{{file|}}}}}*{{#imgh:File:{{{file|}}}}}))/2)}}}}|{{#var:gpad}}}}}}<li class="gallerybox" style="width: {{#expr:{{#var:gsize}}+2*{{#var:gpad}}+5}}px"><div style="width: {{#expr:{{#var:gsize}}+2*{{#var:gpad}}+5}}px"><div class="thumb {{#if:{{#var:dark}}|zdw-thumb--dark}}" style="width: {{#expr:{{#var:gsize}}+2*{{#var:gpad}}}}px;"><div style="margin:3px auto;">[[File:{{#if:{{{file|}}}|{{{file|}}}|No Image.png}}|{{#var:gsize}}x{{#var:gsize}}px|link={{{link|{{#if:{{{file|}}}|File:{{{file|}}}|Special:Upload}}}}}|{{{tip|}}}]]</div></div>{{#if:{{{caption|}}}|<div class="gallerytext" align="{{#var:galign}}" style="text-align:{{#var:galign}}"><p>{{{caption|}}}</p></div>}}</div></li></includeonly> |