Jump to content

Template:Wide image/sandbox: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
Minor adjust
Tags: Mobile edit Mobile web edit
No edit summary
 
(9 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{#invoke:wide image/sandbox|main}}<noinclude>
<includeonly><div class="thumb {{#switch:{{{5}}}
{{documentation}}<!-- Add categories to the /doc subpage, not here! -->
|left= tleft" style="
|right= tright" style="
|none= tnone" style="
|#default=tnone" style="margin-left: auto; margin-right:auto; overflow:hidden;
}} width:{{{4|auto}}}; max-width:{{#ifeq:{{{border|}}}|no|{{#expr:{{str sub|{{{2}}}|0|{{#expr:{{str find|{{{2}}}|px}} -1}}}}}}px|{{#expr:{{str sub|{{{2}}}|0|{{#expr:{{str find|{{{2}}}|px}} -1}}}} + 8}}px}};">
{{#ifeq:{{{border|}}}|no||<div class="thumbinner">}}<div class="noresize overflowbugx" style="overflow:auto;{{#ifeq:{{{dir|}}}|rtl|direction:rtl;}}">[[File:{{{1}}}|{{{2}}}|alt={{{alt|}}}|{{#invoke:Unstrip|unstrip|{{#switch:{{{3}}}
|thumb
|thumbnail
|frame
|border={{{1}}}
|#default={{#if:{{{3|}}}|{{#ifeq:{{{dir|}}}|rtl|&#x202A;}}{{{3|}}}{{#ifeq:{{{dir|}}}|rtl|&#x202C;}}|}}}}}}]]</div>{{ #if: {{{3|}}}|<div class="thumbcaption" {{#if:{{{align-cap|}}}|style="text-align:{{{align-cap}}}"}}>{{#ifeq:{{{border|}}}|no||<div class="magnify">[[:File:{{{1}}}| ]]</div>}}{{{3}}}</div>|}}
{{#ifeq:{{{border|}}}|no||</div>}}</div></includeonly><noinclude>
{{documentation}}
<!-- If you copy this template, you need to add the overflowx and overflowy CSS classes to your global CSS for Internet Explorer users. On the English Wikipedia, these are conditionally loaded by [[MediaWiki:Common.js]] -->
<!-- If you copy this template, you need to add the overflowx and overflowy CSS classes to your global CSS for Internet Explorer users. On the English Wikipedia, these are conditionally loaded by [[MediaWiki:Common.js]] -->
<!-- Add categories to the /doc subpage, not here! -->
</noinclude>
</noinclude>

Latest revision as of 12:50, 19 April 2019