Template:YouTube: Difference between revisions

The thumbnail caption now have a fixed height of one line. If the text is bigger, it'll get truncated... This change fixes probably all issues we would get with the floating elements, i'm going to implement this on Template:Image soon
(Ok, implemented the 3rd parameter. Used br as evaluation string since it somewhat has the same function of the <br> tag)
(The thumbnail caption now have a fixed height of one line. If the text is bigger, it'll get truncated... This change fixes probably all issues we would get with the floating elements, i'm going to implement this on Template:Image soon)
Line 1: Line 1:
<includeonly><div style="float:left; margin: .5em 0 1.3em 1.4em;">{{#ev:youtube|{{{1}}}|300||[http://youtu.be/{{{1}}} {{{2|http://youtu.be/{{{1}}}}}}]}}</div>{{#ifeq:{{{3|}}}|br|<div style="clear:left"></div>}}</includeonly><noinclude>{{documentation}}</noinclude>
<includeonly><div style="float:left; margin: .5em 0 1.3em 1.4em;">{{#ev:youtube|{{{1}}}|300||[http://youtu.be/{{{1}}} <span style="text-overflow: ellipsis; display: inline-block; width: 275px; white-space: nowrap; overflow: hidden; vertical-align: top;">{{{2|http://youtu.be/{{{1}}}}}}</span>]}}</div>{{#ifeq:{{{3|}}}|br|<div style="clear:left"></div>}}</includeonly><noinclude>{{documentation}}</noinclude>