Jump to content

Template:YouTube: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
Remove any leading spaces from 1st unnamed parameter that would break link. Tested first with Template:YouTube/sandbox and Template:YouTube/testcases.
Fix for channel names with spaces
Line 1: Line 1:
[https://www.youtube.com/{{#if:{{{user|{{{u|{{{channel|}}}}}}}}}
[https://www.youtube.com/{{#if:{{{user|{{{u|{{{channel|}}}}}}}}}
|user/{{{user|{{{u|{{{channel|}}}}}}}}} {{{title|{{#if:{{{1|}}}|{{{1}}}|{{PAGENAME}}}}}}}'s channel]
|user/{{urlencode:{{{user|{{{u|{{{channel|}}}}}}}}}}} {{{title|{{#if:{{{1|}}}|{{{1}}}|{{PAGENAME}}}}}}}'s channel]
|{{#if:{{{s|{{{show|}}}}}}
|{{#if:{{{s|{{{show|}}}}}}
|show/{{{s|{{{show|}}}}}} {{{title|{{#if:{{{1|}}}|{{{1}}}|''{{PAGENAME}}''}}}}}] show
|show/{{{s|{{{show|}}}}}} {{{title|{{#if:{{{1|}}}|{{{1}}}|''{{PAGENAME}}''}}}}}] show

Revision as of 14:29, 24 August 2015

Video on YouTube