Jump to content

Template:YouTube: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
add parameters for channel and playlist, reformat for better logic to detect blank parameters and bad usage, add tracking category to detect more bad usage
+suffix
Line 1: Line 1:
[https://www.youtube.com/{{#if:{{{user|{{{u|}}}}}}
[https://www.youtube.com/{{#if:{{{user|{{{u|}}}}}}
|user/{{{user|{{{u|}}}}}} {{#if:{{{title|{{{1|}}}}}}|<span class="plainlinks">{{{title|{{{1}}}}}}</span>|{{PAGENAME}}}}'s channel]
|user/{{{user|{{{u|}}}}}} {{#if:{{{title|{{{1|}}}}}}|<span class="plainlinks">{{{title|{{{1}}}}}}</span>|{{PAGENAME}}}}{{{suffix|'s}}} channel]
|{{#if:{{{channel|{{{c|}}}}}}
|{{#if:{{{channel|{{{c|}}}}}}
|channel/{{{channel|{{{c|}}}}}} {{#if:{{{title|{{{1|}}}}}}|<span class="plainlinks">{{{title|{{{1}}}}}}</span>|{{PAGENAME}}}} channel]
|channel/{{{channel|{{{c|}}}}}} {{#if:{{{title|{{{1|}}}}}}|<span class="plainlinks">{{{title|{{{1}}}}}}</span>|{{PAGENAME}}}}{{{suffix|'s}}} channel]
|{{#if:{{{show|{{{s|}}}}}}
|{{#if:{{{show|{{{s|}}}}}}
|show/{{{show|{{{s|}}}}}} {{#if:{{{title|{{{1|}}}}}}|<span class="plainlinks">{{{title|{{{1}}}}}}</span>|''{{PAGENAME}}''}}] show
|show/{{{show|{{{s|}}}}}} {{#if:{{{title|{{{1|}}}}}}|<span class="plainlinks">{{{title|{{{1}}}}}}</span>|''{{PAGENAME}}''}}] show
Line 36: Line 36:
|talk=|wikipedia=|help=|template=|module=
|talk=|wikipedia=|help=|template=|module=
|other=[[Category:Articles using YouTube with invalid parameters]]
|other=[[Category:Articles using YouTube with invalid parameters]]
}}
}}{{#if:{{{user|}}}{{{u|}}}{{{channel|}}}{{{c|}}}
||{{#ifeq:{{{suffix|α}}}|α
||{{Namespace detect
|talk=|wikipedia=|help=|template=|module=
|other=[[Category:Articles using YouTube with invalid parameters]]
}}
}}
}}
}}<noinclude>{{documentation}}</noinclude>
}}<noinclude>{{documentation}}</noinclude>

Revision as of 03:34, 6 June 2016

Video on YouTube