Jump to content

Template:YouTube: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
remove (requires Adobe Flash) per consensus on talk
sync with sandbox - adds identifiers to the wikilinks
 
(36 intermediate revisions by 15 users not shown)
Line 1: Line 1:
[http://www.youtube.com/{{#if:
[https://www.youtube.com/{{#if:{{{channel|{{{c|}}}}}}
|channel/{{{channel|{{{c|}}}}}} {{#if:{{{title|{{{1|}}}}}}|<span class="plainlinks">{{delink|<nowiki />{{{title|{{{1}}}}}}}}</span>|{{PAGENAMEBASE}}}}{{{suffix|'s}}} channel] on {{#ifeq:{{{link}}}|no|YouTube|[[YouTube channel (identifier)|YouTube]]}}
{{{user|{{{u|{{{channel|}}}}}}}}}
|user/{{{user|{{{u|{{{channel|}}}}}}}}} {{{title|{{#if:{{{1|}}}|{{{1}}}|{{PAGENAME}}}}}}}] channel
|{{#if:{{{handle|{{{h|}}}}}}
|@{{{handle|{{{h|}}}}}} {{#if:{{{title|{{{1|}}}}}}|<span class="plainlinks">{{delink|<nowiki />{{{title|{{{1}}}}}}}}</span>|{{PAGENAMEBASE}}}}{{{suffix|'s}}} channel] on {{#ifeq:{{{link}}}|no|YouTube|[[YouTube handle (identifier)|YouTube]]}}
|{{#if:{{{s|{{{show|}}}}}}
|show/{{{s|{{{show|}}}}}} {{{title|{{#if:{{{1|}}}|{{{1}}}|''{{PAGENAME}}''}}}}}] show
|{{#if:{{{user|{{{u|}}}}}}
|user/{{{user|{{{u|}}}}}} {{#if:{{{title|{{{1|}}}}}}|<span class="plainlinks">{{delink|<nowiki />{{{title|{{{1}}}}}}}}</span>|{{PAGENAMEBASE}}}}{{{suffix|'s}}} channel] on {{#ifeq:{{{link}}}|no|YouTube|[[YouTube user (identifier)|YouTube]]}}
|{{#if:{{{sid|{{{showid|}}}}}}
|{{#if:{{{custom|}}}
|show?p={{{sid|{{{showid|}}}}}} {{{title|{{#if:{{{1|}}}|{{{1}}}|''{{PAGENAME}}''}}}}}] show
|c/{{{custom}}} {{#if:{{{title|{{{1|}}}}}}|<span class="plainlinks">{{delink|<nowiki />{{{title|{{{1}}}}}}}}</span>|{{PAGENAMEBASE}}}}{{{suffix|'s}}} channel] on {{#ifeq:{{{link}}}|no|YouTube|[[YouTube custom (identifier)|YouTube]]}}
|watch?v={{{id|{{{1|}}}}}} {{{title|{{#if:{{{2|}}}|{{{2}}}|Video}}}}}]
|{{#if:{{{show|{{{s|}}}}}}
}}}}}} at [[YouTube]]<noinclude>
|show/{{{show|{{{s|}}}}}} {{#if:{{{title|{{{1|}}}}}}|<span class="plainlinks">{{delink|<nowiki />{{{title|{{{1}}}}}}}}</span>|''{{PAGENAMEBASE}}''}}] show on {{#ifeq:{{{link}}}|no|YouTube|[[YouTube show (identifier)|YouTube]]}}
{{documentation}}
|{{#if:{{{playlist|{{{p|}}}}}}
</noinclude>
|playlist?list={{{playlist|{{{p|}}}}}} {{#if:{{{title|{{{1|}}}}}}|<span class="plainlinks">{{delink|<nowiki />{{{title|{{{1}}}}}}}}</span>|{{PAGENAMEBASE}}}}] playlist on {{#ifeq:{{{link}}}|no|YouTube|[[YouTube playlist (identifier)|YouTube]]}}
|{{#if:{{{id|{{{1<includeonly>|</includeonly>}}}}}}
|watch?v={{{id|{{Trim|{{{1|}}}}}}}}{{#if:{{{time|{{{t|}}}}}}|&t={{{time|{{{t|}}}}}}}} {{#if:{{{title|}}}|<span class="plainlinks">{{replace|{{delink|<nowiki />{{{title}}}}}|]|&#93;}}</span>|{{#if:{{{id|}}}|{{#if:{{{1|}}}|<span class="plainlinks">{{replace|{{delink|<nowiki />{{{1}}}}}|]|&#93;}}</span>|Video}}|{{#if:{{{2|}}}|<span class="plainlinks">{{replace|{{delink|<nowiki />{{{2}}}}}|]|&#93;}}</span>|Video}}}}}}] on {{#ifeq:{{{link}}}|no|YouTube|[[YouTube video (identifier)|YouTube]]}}
|{{error|Error:No page id specified}}] on {{#ifeq:{{{link}}}|no|YouTube|[[YouTube]]}}{{Namespace detect |talk=|wikipedia=|help=|template=|module= |other=[[Category:Articles using YouTube with invalid parameters]] }}
}}
}}
}}
}}
}}
}}
}}{{#ifexpr:{{#expr:
{{#if:{{{channel|{{{c|}}}}}}|1|0}}+
{{#if:{{{handle|{{{h|}}}}}}|1|0}}+
{{#if:{{{user|{{{u|}}}}}}|1|0}}+
{{#if:{{{custom|}}}|1|0}}+
{{#if:{{{show|{{{s|}}}}}}|1|0}}+
{{#if:{{{playlist|{{{p|}}}}}}|1|0}}+
{{#if:{{{id|}}}|1|0}}+
{{#if:{{{2|}}}|1|0}}+
{{#if:{{{title|}}}|{{#if:{{{1|{{{2|}}}}}}|1|0}}|0}}
}}>1
|{{Namespace detect
|talk=|wikipedia=|help=|template=|module=
|other=[[Category:Articles using YouTube with invalid parameters]]
}}
}}{{#if:{{{channel|{{{c|}}}}}}{{{handle|{{{h|}}}}}}{{{user|{{{u|}}}}}}{{{custom|}}}
||{{#ifeq:{{{suffix|+}}}|{{{suffix|-}}}|{{Namespace detect
|talk=|wikipedia=|help=|template=|module=
|other=[[Category:Articles using YouTube with invalid parameters]]
}}
}}
}}<!--
-->{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using YouTube with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:YouTube]] with unknown parameter "_VALUE_"|ignoreblank=y| 1 | 2 | c | channel | custom | h | handle | id | link | p | playlist | s | show | suffix | t | time | title | u | user }}<noinclude>{{documentation}}</noinclude>

Latest revision as of 16:24, 29 May 2023

Video on YouTube