Template:Image: Difference between revisions

Testing around...
(Added ability to override the default width. This should be used only if you need to add 2 images with different AR (like the bug image in Luigi's Mansion))
(Testing around...)
Line 1: Line 1:
<includeonly>{{#ifeq:{{{2|}}}||<div style="float:left; width:{{#if:{{{width|}}}|{{#expr:{{{width}}}+8}}px|208px}}; margin: .5em 0 1.3em 1.4em;"><div class="thumbinner">[[File:{{{1}}}|{{#if:{{{width|}}}|{{{width}}}px|200px}}]]</div></div>{{#ifeq:{{{3|}}}|br|<div style="clear:left"></div>}}|<div style="float:left;">[[File:{{{1}}}|thumb|{{#if:{{{width|}}}|{{{width}}}px|300px}}|[[:File:{{{1}}}|<span style="text-overflow: ellipsis; display: inline-block; width: 275px; white-space: nowrap; overflow: hidden; vertical-align: top;">{{Hover|dotted=no|{{{2|}}}|{{{2|}}}}}</span>]]]]</div>{{#ifeq:{{{3|}}}|br|<div style="clear:left"></div>}}}}</includeonly><noinclude>{{documentation}}</noinclude>
<includeonly>{{#ifeq:{{{2|}}}||<div style="float:left; width:{{#if:{{{width|}}}|{{#expr:{{{width}}}+8}}px|208px}}; margin: .5em 0 1.3em 1.4em;"><div class="thumbinner">[[File:{{{1}}}|{{#if:{{{width}}}|{{{width}}}px|200px}}]]</div></div>{{#ifeq:{{{3|}}}|br|<div style="clear:left"></div>}}|<div style="float:left;">[[File:{{{1}}}|thumb|{{#if:{{{width}}}|{{{width}}}px|300px}}|[[:File:{{{1}}}|<span style="text-overflow: ellipsis; display: inline-block; width: 275px; white-space: nowrap; overflow: hidden; vertical-align: top;">{{Hover|dotted=no|{{{2|}}}|{{{2|}}}}}</span>]]]]</div>{{#ifeq:{{{3|}}}|br|<div style="clear:left"></div>}}}}</includeonly><noinclude>{{documentation}}</noinclude>