Template:Image: Difference between revisions

Jump to navigation Jump to search
The correct fix: resize caption box according to width specified
(Ok, got it. The truncate function width was too large... Fixed issue with the captions)
(The correct fix: resize caption box according to width specified)
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}}}|{{{width|200}}}px]]</div></div>{{#ifeq:{{{3|}}}|br|<div style="clear:left"></div>}}|<div style="float:left;">[[File:{{{1}}}|thumb|{{{width|300}}}px|[[:File:{{{1}}}|<span style="text-overflow: ellipsis; display: inline-block; width: 260px; 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:{{#expr:{{{width|200}}}+8}}px; margin: .5em 0 1.3em 1.4em;"><div class="thumbinner">[[File:{{{1}}}|{{{width|200}}}px]]</div></div>{{#ifeq:{{{3|}}}|br|<div style="clear:left"></div>}}|<div style="float:left;">[[File:{{{1}}}|thumb|{{{width|300}}}px|[[:File:{{{1}}}|<span style="text-overflow: ellipsis; display: inline-block; width: {{#expr:{{{width|300}}}-25}}px; 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>

Navigation menu