Template:Panorama: Difference between revisions

From Jcastle.info
No edit summary
No edit summary
Line 1: Line 1:
<includeonly><div class="thumb {{#switch:{{{align|}}}
{{#invoke:Wide image|main}}{{#invoke:Check for unknown parameters|check|unknown=[[Category:Pages using panorama with unknown parameters|_VALUE_{{PAGENAME}}]]|preview=Page using [[Template:Panorama]] with unknown parameter "_VALUE_"|ignoreblank=y| align | alt | border | caption | dir | height | image | width | fullwidth | fullheight }}<noinclude>{{documentation}}</noinclude>
|left= tleft" style="
|right= tright" style="
|none= tnone" style="
|#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
|thumbnail
|frame
|border={{{image}}}
|#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>

Revision as of 19:45, 5 May 2019

{{#invoke:Wide image|main}}{{#invoke:Check for unknown parameters|check|unknown=|preview=Page using Template:Panorama with unknown parameter "_VALUE_"|ignoreblank=y| align | alt | border | caption | dir | height | image | width | fullwidth | fullheight }}Template:Documentation