Template:YouTube: Difference between revisions

This one I'm confident will work without having to edit 400 pages beforehand.
(create external link template)
 
(This one I'm confident will work without having to edit 400 pages beforehand.)
 
(49 intermediate revisions by 3 users not shown)
Line 1: Line 1:
[http://www.youtube.com/watch?v={{{v|}}} {{{1|YouTube video}}}]<noinclude>
<includeonly>{{#ifeq:{{{3|}}}|link|[https://www.youtube.com/watch?v{{eq}}{{{1|}}} {{#if:{{{2|}}}|{{{2}}}|https://www.youtube.com/watch?v{{eq}}{{{1}}}}}]|<div style="float:left; margin: .5em 0 1.3em 1.4em;">{{#ev:youtube|{{{1|}}}|302||<span style="text-overflow: ellipsis; display: inline-block; width: 275px; white-space: nowrap; overflow: hidden; vertical-align: top;" title="{{#if:{{{2|}}}|{{{2}}}|https://www.youtube.com/watch?v{{eq}}{{{1}}}}}">[https://www.youtube.com/watch?v{{eq}}{{{1|}}} {{#if:{{{2|}}}|{{#tag:nowiki|{{{2}}}}}|https://www.youtube.com/watch?v{{eq}}{{{1}}}}}]</span>|frame}}</div>{{#ifeq:{{{3|}}}|br|<div style="clear:left"></div>}}}}</includeonly><noinclude>{{documentation}}</noinclude>
{{documentation}}
</noinclude>