Jump to content

Template:Wide image: Difference between revisions

Updated from: http://en.wikipedia.org/wiki/Template:Wide_image
(Revert. Minor character change screwed up parameters for width and the entire template. Suggest testing any change before making actual amendments.)
(Updated from: http://en.wikipedia.org/wiki/Template:Wide_image)
 
Line 1: Line 1:
<noinclude>Refer to [[wp:Template:Wide image|Template:Wide image]] for documentation.</noinclude><includeonly><div class="thumb {{#switch:{{{5}}}
<includeonly><div class="thumb {{#switch:{{{5}}}
|left=<nowiki> </nowiki>tleft" style"
|left=<nowiki> </nowiki>tleft" style="
|right=<nowiki> </nowiki>tright" style="
|right=<nowiki> </nowiki>tright" style="
|#default=<nowiki> </nowiki>tnone style="margin-left: auto; margin-right:auto;
|#default=<nowiki> </nowiki>tnone" style="margin-left: auto; margin-right:auto;
}} width:{{{4|99%}}}; max-width:{{0expr:{{str sub|{{{2}}}|0|{{0expr:{{str find|{{{2}}}|px}} -1}}}} + 8}}px;">
}} width:{{{4|99%}}}; max-width:{{#expr:{{str sub|{{{2}}}|0|{{#expr:{{str find|{{{2}}}|px}} -1}}}} + 8}}px;">
<div class="thumbinner"><div class="overflowbugx" style="overflow:auto;">[[File:{{{1}}}|{{{2}}}|alt={{{alt|}}}|{{#switch:{{{3}}}
<div class="thumbinner"><div class="overflowbugx" style="overflow:auto;">[[File:{{{1}}}|{{{2}}}|alt={{{alt|}}}|{{#switch:{{{3}}}
|thumb
|thumb
Line 9: Line 9:
|frame
|frame
|border={{{1}}}
|border={{{1}}}
|#default={{{3|}}}}}]]</div>{{ #if: {{{3|}}}|<div class="thumbcaption"><div class="magnify">[[File:Magnify-clip.png|15x13px|link=:File:{{{1}}}|alt=|Enlarge]]</div>{{{3}}}</div>|}}
|#default={{{3|}}}}}]]</div>{{ #if: {{{3|}}}|<div class="thumbcaption">{{Magnify icon|link=File:{{{1}}} }}<!-- -->{{{3}}}</div>|}}
</div></div></includeonly><noinclude>[[Category:Templates|{{PAGENAME}}]]</noinclude>
</div></div></includeonly><noinclude>
{{doc}}
<!-- 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]] -->
</noinclude>
Cookies help us deliver our services. By using our services, you agree to our use of cookies.