Template:YouTube: Difference between revisions

Prevent future issues, replaced with a ifeq
(Be less dumb... Fix for previous commit)
(Prevent future issues, replaced with a ifeq)
Line 1: Line 1:
<includeonly>{{#if:{{#var:vg_used}}||{{#vardefine:vg_count|{{#expr:{{#var:vg_count}}+1}}}}{{#ifexpr:{{#var:vg_count}}>3|[[Category:Pages needing update to use VideoGallery template]]}}}}{{#ifeq:{{{3|}}}|link|[http://www.youtube.com/watch?v{{eq}}{{{1|}}} {{#if:{{{2|}}}|{{{2}}}|http://www.youtube.com/watch?v{{eq}}{{{1}}}}}]|<div style="float:left; margin: .5em 0 1.3em 1.4em;">{{#ev:youtube|{{{1|}}}|302||[http://www.youtube.com/watch?v{{eq}}{{{1|}}} <span style="text-overflow: ellipsis; display: inline-block; width: 275px; white-space: nowrap; overflow: hidden; vertical-align: top;">{{#if:{{{2|}}}|{{Hover|dotted=no|{{{2}}}|{{{2}}}}}|{{Hover|dotted=no|http://www.youtube.com/watch?v{{eq}}{{{1}}}|http://www.youtube.com/watch?v{{eq}}{{{1}}}}}}}</span>]}}</div>{{#ifeq:{{{3|}}}|br|<div style="clear:left"></div>}}}}</includeonly><noinclude>{{documentation}}</noinclude>
<includeonly>{{#ifeq:{{#var:vg_used}}|yes||{{#vardefine:vg_count|{{#expr:{{#var:vg_count}}+1}}}}{{#ifexpr:{{#var:vg_count}}>3|[[Category:Pages needing update to use VideoGallery template]]}}}}{{#ifeq:{{{3|}}}|link|[http://www.youtube.com/watch?v{{eq}}{{{1|}}} {{#if:{{{2|}}}|{{{2}}}|http://www.youtube.com/watch?v{{eq}}{{{1}}}}}]|<div style="float:left; margin: .5em 0 1.3em 1.4em;">{{#ev:youtube|{{{1|}}}|302||[http://www.youtube.com/watch?v{{eq}}{{{1|}}} <span style="text-overflow: ellipsis; display: inline-block; width: 275px; white-space: nowrap; overflow: hidden; vertical-align: top;">{{#if:{{{2|}}}|{{Hover|dotted=no|{{{2}}}|{{{2}}}}}|{{Hover|dotted=no|http://www.youtube.com/watch?v{{eq}}{{{1}}}|http://www.youtube.com/watch?v{{eq}}{{{1}}}}}}}</span>]}}</div>{{#ifeq:{{{3|}}}|br|<div style="clear:left"></div>}}}}</includeonly><noinclude>{{documentation}}</noinclude>