Difference between revisions of "Template:YouTube"

From Ava Zinn Wiki
Jump to: navigation, search
[unchecked revision][unchecked revision]
m (1 revision)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
[https://www.youtube.com/{{#if:{{{user|{{{u|{{{channel|}}}}}}}}}
+
[https://www.youtube.com/{{#if:{{{user|{{{u|}}}}}}
|user/{{{user|{{{u|{{{channel|}}}}}}}}} {{{title|{{#if:{{{1|}}}|{{{1}}}|{{PAGENAME}}}}}}}'s channel]
+
|user/{{{user|{{{u|}}}}}} {{#if:{{{title|{{{1|}}}}}}|<span class="plainlinks">{{delink|<nowiki/>{{{title|{{{1}}}}}}}}</span>|{{PAGENAMEBASE}}}}{{{suffix|'s}}} channel]
|{{#if:{{{s|{{{show|}}}}}}
+
|{{#if:{{{channel|{{{c|}}}}}}
  |show/{{{s|{{{show|}}}}}} {{{title|{{#if:{{{1|}}}|{{{1}}}|''{{PAGENAME}}''}}}}}] show
+
  |channel/{{{channel|{{{c|}}}}}} {{#if:{{{title|{{{1|}}}}}}|<span class="plainlinks">{{delink|<nowiki/>{{{title|{{{1}}}}}}}}</span>|{{PAGENAMEBASE}}}}{{{suffix|'s}}} channel]
  |{{#if:{{{sid|{{{showid|}}}}}}
+
  |{{#if:{{{show|{{{s|}}}}}}
  |show?p={{{sid|{{{showid|}}}}}} {{{title|{{#if:{{{1|}}}|{{{1}}}|''{{PAGENAME}}''}}}}}] show
+
  |show/{{{show|{{{s|}}}}}} {{#if:{{{title|{{{1|}}}}}}|<span class="plainlinks">{{delink|<nowiki/>{{{title|{{{1}}}}}}}}</span>|''{{PAGENAMEBASE}}''}}] show
  |watch?v={{{id|{{{1|}}}}}} {{{title|{{#if:{{{2|}}}|{{{2}}}|Video}}}}}]
+
  |{{#if:{{{playlist|{{{p|}}}}}}
 +
    |playlist?list={{{playlist|{{{p|}}}}}} {{#if:{{{title|{{{1|}}}}}}|<span class="plainlinks">{{delink|<nowiki/>{{{title|{{{1}}}}}}}}</span>|{{PAGENAMEBASE}}}}] playlist
 +
    |{{#if:{{{custom|}}}
 +
    |c/{{{custom}}} {{#if:{{{title|{{{1|{{{custom}}}}}}}}}|<span class="plainlinks">{{delink|<nowiki/>{{{title|{{{1|{{{custom}}}}}}}}}}}</span>|{{PAGENAMEBASE}}}}{{{suffix|'s}}} channel]
 +
    |{{#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}}}}}}]
 +
      |{{error|Error:No page id specified}}]{{Namespace detect |talk=|wikipedia=|help=|template=|module= |other=[[Category:Articles using YouTube with invalid parameters]] }}
 +
    }}
 +
    }}
 +
  }}
 
   }}
 
   }}
 
  }}
 
  }}
Line 11: Line 20:
 
  |YouTube
 
  |YouTube
 
  |[[wikipedia:YouTube|YouTube]]
 
  |[[wikipedia:YouTube|YouTube]]
}}<noinclude>{{documentation}}</noinclude>
+
}}{{#ifexpr:{{#expr:
 +
  {{#if:{{{user|}}}|1|0}}+
 +
  {{#if:{{{u|}}}|1|0}}+
 +
  {{#if:{{{channel|}}}|1|0}}+
 +
  {{#if:{{{c|}}}|1|0}}+
 +
  {{#if:{{{custom|}}}|1|0}}+
 +
  {{#if:{{{show|}}}|1|0}}+
 +
  {{#if:{{{s|}}}|1|0}}+
 +
  {{#if:{{{playlist|}}}|1|0}}+
 +
  {{#if:{{{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:{{{user|}}}{{{u|}}}{{{channel|}}}{{{c|}}}
 +
||{{#ifeq:{{{suffix|α}}}|α
 +
  ||{{Namespace detect
 +
  |talk=|wikipedia=|help=|template=|module=
 +
  |other=[[Category:Articles using YouTube with invalid parameters]]
 +
  }}
 +
}}
 +
}}

Latest revision as of 11:00, 17 May 2021

Video on YouTube