Template:Gallery/Box: Difference between revisions

From Zelda Dungeon Wiki
Jump to navigation Jump to search
Want an adless experience? Log in or Create an account.
mNo edit summary
m (Undid revision 471154 by Sanityormadness (talk))
Tag: Undo
 
(20 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<li class="gallerybox" style="width: 155px"><div style="width: 155px"><div class="thumb" style="width: 150px;"><div style="margin:30px auto;">[[File:{{{file|}}}|120x120px|link={{{link|File:{{{file|}}}}}}|{{{tip|}}}]]</div></div>{{#if:{{{caption|}}}|<div class="gallerytext"><center><p>{{{caption|}}}</p></center></div>}}</div></li>
<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>

Latest revision as of 01:00, March 13, 2023