Template:Panorama: Difference between revisions

From Jcastle.info
No edit summary
No edit summary
Line 1: Line 1:
{{#if:{{{image|}}}|<div class="thumbpano {{#switch:{{{align}}}
<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-left: auto; margin-right:auto; overflow:hidden;}} {{#if:{{{width|}}}|width: {{{width|}}};|width: -moz-min-content; width: -webkit-min-content; width: min-content;}} max-width: 100%;">{{#ifeq:{{{border|}}}|no||<div class="thumbinner">}}<div class="noresize overflowbugx" style="overflow: auto; {{#ifeq:{{{dir|}}}|rtl|direction: rtl;}}">[[{{{image}}}|{{#if:{{{height|}}}|x{{{height}}}px}}|alt={{{alt|}}}|{{#invoke:Unstrip|unstrip|{{#switch:{{{caption}}}
|#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|&#x202A;}}{{{caption|}}}{{#ifeq:{{{dir|}}}|rtl|&#x202C;}}|}}}}}}]]</div>{{#if:{{{caption|}}}|<div class="thumbcaption">{{#ifeq:{{{border|}}}|no||<div class="magnify">[[:{{{image}}}| ]]</div>}}{{{caption|}}}</div>}}{{#ifeq:{{{border|}}}|no||</div>}}</div>}}<noinclude></noinclude>
|#default={{#if:{{{caption|}}}|{{#ifeq:{{{dir|}}}|rtl|&#x202A;}}{{{caption|}}}{{#ifeq:{{{dir|}}}|rtl|&#x202C;}}|}}}}}}]]</div>{{#if:{{{caption|}}}|<div class="thumbcaption"><div class="magnify">[[:File:{{{image}}}| ]]</div>{{{caption|}}}</div>}}</div></div></includeonly><noinclude>{{documentation}}</noinclude>

Revision as of 19:32, 5 May 2019