Template:Image: Difference between revisions

Fixed the issues with the divs
(Updated template and added a standard: if no caption is provided, template assumes "screenshot mode" and output 200px thumbnail. If a caption is provided, template assumes "bug image mode", uses the caption and 300px thumbnail)
(Fixed the issues with the divs)
Line 1: Line 1:
<includeonly><div style="float:left;">{{#ifeq:{{{2|}}}||<div class="thumbinner">[[File:{{{1}}}|200px]]</div>|[[File:{{{1}}}|thumb|300px|[[:File:{{{1}}}|<span style="text-overflow: ellipsis; display: inline-block; width: 275px; white-space: nowrap; overflow: hidden; vertical-align: top;">{{{2|}}}</span>]]]]</div>{{#ifeq:{{{3|}}}|br|<div style="clear:left"></div>}}}}</includeonly><noinclude>{{documentation}}</noinclude>
<includeonly>{{#ifeq:{{{2|}}}||<div style="float:left; width:208px;"><div class="thumbinner">[[File:{{{1}}}|200px]]</div></div>|<div style="float:left;">[[File:{{{1}}}|thumb|300px|[[:File:{{{1}}}|<span style="text-overflow: ellipsis; display: inline-block; width: 275px; white-space: nowrap; overflow: hidden; vertical-align: top;">{{{2|}}}</span>]]]]</div>{{#ifeq:{{{3|}}}|br|<div style="clear:left"></div>}}}}</includeonly><noinclude>{{documentation}}</noinclude>