Difference between revisions of "Template:BigIMG"

From HomepointXI Wiki
Jump to: navigation, search
m (TeoTwawki moved page Templates/Template:BigIMG to Template:BigIMG without leaving a redirect: dependancy hell)
(Try try again (seeing if I can inline CSS a wiki template))
Line 5: Line 5:
 
</noinclude>
 
</noinclude>
  
 
+
<includeonly>
<includeonly><div class="thumb {{#switch:{{{5}}}
+
img { max-width: {{{width}}}%; height: auto; width: auto\9; /* ie8 */ }
|left= tleft" style="
+
<div>[[Image:{{{ImageFile}}}]]</div>
|right= tright" style="
+
</includeonly>
|none= tnone" style="
 
|#default=tnone" style="margin-left: auto; margin-right:auto;
 
}} width:{{{4|99%}}}; max-width:{{#expr:{{str sub|{{{2}}}|0|{{#expr:{{str find|{{{2}}}|px}} -1}}}} + 8}}px;">
 
<div class="thumbinner" style="{{yesno|{{{border|}}}|no=border-width:0; background:transparent;|blank=}}"><div class="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={{{3|}}}}}}}]]</div>{{ #if: {{{3|}}}|<div class="thumbcaption" {{#if:{{{align-cap|}}}|style="text-align:{{{align-cap}}}"}}><div class="magnify">[[:File:{{{1}}}| ]]</div>{{{3}}}</div>|}}
 
</div></div></includeonly>
 

Revision as of 07:44, 16 November 2015

Test