Difference between revisions of "Template:WideImage"

From Popix
Jump to navigation Jump to search
m
m
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><div class="thumb {{#switch:{{{5}}}
+
<includeonly>
|left=<nowiki> </nowiki>tleft" style="
+
<div class="thumb" style="clear: both; border: 0; {{#ifeq:{{{dir|}}}|rtl|direction:rtl;}} width:{{{4|100%}}}; margin-left: auto; margin-right:auto;">
|right=<nowiki> </nowiki>tright" style="
+
<div style="overflow-x:auto;">[[File:{{{1}}}|{{{2}}}|alt={{{alt||}}}|{{{3|}}}]]</div>{{#if: {{{3}}}| }}</div>
|#default=<nowiki> </nowiki>tnone" style="margin-left: auto; margin-right:auto;
+
</includeonly>
}} {{#ifeq:{{{dir|}}}|rtl|direction:rtl;}} width:{{{4|99%}}}; max-width:{{#expr:{{str sub|{{{2}}}|0|{{#expr:{{str find|{{{2}}}|px}} -1}}}} + 8}}px;">
+
<noinclude>
<div class="thumbinner"><div class="overflowbugx" style="overflow:auto;">[[File:{{{1}}}|{{{2}}}|alt={{{alt|}}}|{{#switch:{{{3}}}
 
|thumb
 
|thumbnail
 
|frame
 
|border={{{1}}}
 
|#default={{{3|}}}}}]]</div>{{ #if: {{{3|}}}|<div class="thumbcaption">
 
</div></div></includeonly><noinclude>
 

Latest revision as of 14:58, 23 May 2013