<translate> {{<tvar name=1>PLURAL:1</tvar>|shortcut|shortcuts}}:</translate> {{ytl}}

Template:YouTube: Difference between revisions

From The Goon Show Depository

No edit summary
m (1 revision imported)
 
(3 intermediate revisions by 3 users not shown)
Line 1: Line 1:
[https://www.youtube.com/{{#if:{{{user|{{{u|}}}}}}
[https://www.youtube.com/{{#if:{{{channel|{{{c|}}}}}}
  |user/{{{user|{{{u|}}}}}} {{#if:{{{title|{{{1|}}}}}}|<span class="plainlinks">{{delink|<nowiki/>{{{title|{{{1}}}}}}}}</span>|{{PAGENAMEBASE}}}}{{{suffix|'s}}} channel]
  |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]]}}
  |{{#if:{{{channel|{{{c|}}}}}}
  |{{#if:{{{handle|{{{h|}}}}}}
   |channel/{{{channel|{{{c|}}}}}} {{#if:{{{title|{{{1|}}}}}}|<span class="plainlinks">{{delink|<nowiki/>{{{title|{{{1}}}}}}}}</span>|{{PAGENAMEBASE}}}}{{{suffix|'s}}} channel]
   |@{{{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:{{{show|{{{s|}}}}}}
   |{{#if:{{{user|{{{u|}}}}}}
   |show/{{{show|{{{s|}}}}}} {{#if:{{{title|{{{1|}}}}}}|<span class="plainlinks">{{delink|<nowiki/>{{{title|{{{1}}}}}}}}</span>|''{{PAGENAMEBASE}}''}}] show
   |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:{{{playlist|{{{p|}}}}}}
  |{{#if:{{{custom|}}}
     |playlist?list={{{playlist|{{{p|}}}}}} {{#if:{{{title|{{{1|}}}}}}|<span class="plainlinks">{{delink|<nowiki/>{{{title|{{{1}}}}}}}}</span>|{{PAGENAMEBASE}}}}] playlist
    |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]]}}
     |{{#if:{{{custom|}}}
   |{{#if:{{{show|{{{s|}}}}}}
     |c/{{{custom}}} {{#if:{{{title|{{{1|}}}}}}|<span class="plainlinks">{{delink|<nowiki/>{{{title|{{{1}}}}}}}}</span>|{{PAGENAMEBASE}}}}{{{suffix|'s}}} channel]
     |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]]}}
     |{{#if:{{{playlist|{{{p|}}}}}}
     |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>}}}}}}
     |{{#if:{{{id|{{{1<includeonly>|</includeonly>}}}}}}
       |watch?v={{Trim|{{{id|{{{1|}}}}}}}}{{#if:{{{time|{{{t|}}}}}}|&t={{Trim|{{{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}}}}}}]
       |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}}]{{Namespace detect |talk=|wikipedia=|help=|template=|module= |other=[[Category:Articles using YouTube with invalid parameters]] }}
      |{{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]] }}
      }}
     }}
     }}
     }}
     }}
Line 17: Line 20:
   }}
   }}
  }}
  }}
}} on {{#ifeq:{{{link}}}|no
|YouTube
|[[w:YouTube|YouTube]]
}}{{#ifexpr:{{#expr:
}}{{#ifexpr:{{#expr:
   {{#if:{{{user|}}}|1|0}}+
   {{#if:{{{channel|{{{c|}}}}}}|1|0}}+
   {{#if:{{{u|}}}|1|0}}+
   {{#if:{{{handle|{{{h|}}}}}}|1|0}}+
   {{#if:{{{channel|}}}|1|0}}+
   {{#if:{{{user|{{{u|}}}}}}|1|0}}+
  {{#if:{{{c|}}}|1|0}}+
   {{#if:{{{custom|}}}|1|0}}+
   {{#if:{{{custom|}}}|1|0}}+
   {{#if:{{{show|}}}|1|0}}+
   {{#if:{{{show|{{{s|}}}}}}|1|0}}+
  {{#if:{{{s|}}}|1|0}}+
   {{#if:{{{playlist|{{{p|}}}}}}|1|0}}+
   {{#if:{{{playlist|}}}|1|0}}+
  {{#if:{{{p|}}}|1|0}}+
   {{#if:{{{id|}}}|1|0}}+
   {{#if:{{{id|}}}|1|0}}+
   {{#if:{{{2|}}}|1|0}}+
   {{#if:{{{2|}}}|1|0}}+
Line 38: Line 35:
   |other=[[Category:Articles using YouTube with invalid parameters]]
   |other=[[Category:Articles using YouTube with invalid parameters]]
  }}
  }}
}}{{#if:{{{user|}}}{{{u|}}}{{{channel|}}}{{{c|}}}
}}{{#if:{{{channel|{{{c|}}}}}}{{{handle|{{{h|}}}}}}{{{user|{{{u|}}}}}}{{{custom|}}}
  ||{{#ifeq:{{{suffix|α}}}|α
  ||{{#ifeq:{{{suffix|+}}}|{{{suffix|-}}}|{{Namespace detect
  ||{{Namespace detect
  |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]]
   }}
   }}
  }}
  }}
}}<!--
}}<!--
-->{{#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 | id | link | p | playlist | s | show | suffix | t | time | title | u | user }}<noinclude>{{documentation}}</noinclude>
-->{{#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 13:49, 18 August 2024

Video on YouTube