Template:Panorama: Difference between revisions
From Jcastle.info
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
<includeonly><div class="thumb {{#switch:{{{align|}}} | |||
|left= tleft" style=" | |left= tleft" style=" | ||
|right= tright" style=" | |right= tright" style=" | ||
|none= tnone" style=" | |none= tnone" style=" | ||
|#default=tnone" style="margin | |#default=tnone" style="margin:0 auto;}} {{#if:{{{box-width|{{{width|}}}}}}|width: {{{box-width|{{{width|}}}}}};|width: -moz-min-content; width: -webkit-min-content; width: min-content;}} max-width: 100%; {{{1|}}}"><div class="thumbinner"><div class="noresize" style="overflow: auto; {{#ifeq:{{{dir|}}}|rtl|direction: rtl;}}">[[File:{{{image}}}|{{#expr:{{str sub|{{{width}}}|0|{{#expr:{{str find|{{{width}}}|px}} -1}}}} - 8}}{{#if:{{{height|}}}|x{{#expr:{{str sub|{{{height}}}|0|{{#expr:{{str find|{{{height}}}|px}} -1}}}} - 8}}}}px|alt={{{alt|}}}|{{#invoke:Unstrip|unstrip|{{#switch:{{{caption}}} | ||
|thumb | |thumb | ||
|thumbnail | |thumbnail | ||
|frame | |frame | ||
|border={{{image}}} | |border={{{image}}} | ||
|#default={{#if:{{{caption|}}}|{{#ifeq:{{{dir|}}}|rtl|‪}}{{{caption|}}}{{#ifeq:{{{dir|}}}|rtl|‬}}|}}}}}}]]</div>{{#if:{{{caption|}}}|<div class="thumbcaption"> | |#default={{#if:{{{caption|}}}|{{#ifeq:{{{dir|}}}|rtl|‪}}{{{caption|}}}{{#ifeq:{{{dir|}}}|rtl|‬}}|}}}}}}]]</div>{{#if:{{{caption|}}}|<div class="thumbcaption"><div class="magnify">[[:File:{{{image}}}| ]]</div>{{{caption|}}}</div>}}</div></div></includeonly><noinclude>{{documentation}}</noinclude> |