Due to persistent vandalism, account creation has been suspended. If you would like an account, please contact Charlie Reams on Apterous.
Difference between revisions of "Template:YouTube"
From Countdown
m (why require all this url1= url6= bloat?) |
TobyMcDonald (talk | contribs) |
||
| (10 intermediate revisions by 4 users not shown) | |||
| Line 1: | Line 1: | ||
| − | < | + | <includeonly>*Watch this episode on [[Wikipedia:YouTube|YouTube]] ([https://youtu.be/{{{1|{{{url1}}}}}}&t={{{time|{{{t}}}}}} part 1])<!-- |
| − | + | -->{{#if:{{{2|{{{url2|}}}}}}|, ([https://youtu.be/{{{2|{{{url2}}}}}} part 2])}}<!-- | |
| − | + | -->{{#if:{{{3|{{{url3|}}}}}}|, ([https://youtu.be/{{{3|{{{url3}}}}}} part 3])}}<!-- | |
| + | -->{{#if:{{{4|{{{url4|}}}}}}|, ([https://youtu.be/{{{4|{{{url4}}}}}} part 4])}}<!-- | ||
| + | -->{{#if:{{{5|{{{url5|}}}}}}|, ([https://youtu.be/{{{5|{{{url5}}}}}} part 5])}}<!-- | ||
| + | -->{{#if:{{{6|{{{url6|}}}}}}|, ([https://youtu.be/{{{6|{{{url6}}}}}} part 6])}}{{#ifeq:{{{cat}}}|no||{{#ifeq:{{NAMESPACE}}|{{ns:0}}|[[Category:Episodes on YouTube]]}}}}</includeonly><noinclude>__NOTOC__ | ||
| − | + | ==Syntax== | |
| − | + | <pre>==External Links== | |
| − | < | + | {{YouTube|}}</pre> |
| − | + | ||
| − | < | + | ==Usage== |
| − | + | A link to a YouTube video looks like either of these: | |
| − | + | ||
| − | + | :<code><nowiki>https://youtu.be/Wn_QcT6fPoU</nowiki></code> | |
| − | + | ::or | |
| − | + | :<code><nowiki>https://www.youtube.com/watch?v=Wn_QcT6fPoU</nowiki></code> | |
| − | + | ||
| + | Take the bit after the last slash or the equals sign to produce: | ||
| + | |||
| + | <pre>{{YouTube|Wn_QcT6fPoU}}</pre> | ||
| + | |||
| + | Which outputs: | ||
| + | |||
| + | {{YouTube|Wn_QcT6fPoU}} | ||
| + | |||
| + | ==Other examples== | ||
| + | {|class=wikitable style=font-size:90% | ||
| + | !width=10%|Example | ||
| + | !width=15%|Notes | ||
| + | !Code | ||
| + | !Output | ||
| + | |- | ||
| + | |Multiple links | ||
| + | |Up to six, separated by pipe symbols (<nowiki>|</nowiki>)<br />(e.g. [[Episode 25]]) | ||
| + | |<pre>{{YouTube|55hiL22SMjI|OXmWzwet8qU}}</pre> | ||
| + | |{{YouTube|55hiL22SMjI|OXmWzwet8qU}} | ||
| + | |- | ||
| + | |Including time parameter | ||
| + | |<code>t</code> or <code>time</code><br />(e.g. [[Episode 562]]) | ||
| + | |<pre>{{YouTube|xVqXT3d8pYs|t=3m43s}}</pre><pre>{{YouTube|xVqXT3d8pYs|time=3m43s}}</pre> | ||
| + | |{{YouTube|xVqXT3d8pYs|t=3m43s}} | ||
| + | |- | ||
| + | |Category suppression | ||
| + | |Removes [[:Category:Episodes on YouTube]]. Only for non-broadcast games, like [[Co-event]] or ''[[ZoomDown]]'' games<br />(e.g. [[Episode ZD1]]) | ||
| + | |<pre>{{YouTube|3UYRqM5vms0|cat=no}}</pre> | ||
| + | |{{YouTube|3UYRqM5vms0|cat=no}} | ||
| + | |} | ||
| + | |||
| + | ==See also== | ||
| + | *{{t|Dailymotion}} | ||
| + | |||
| + | [[Category:Templates]]</noinclude> | ||
Latest revision as of 00:34, 25 November 2023
Syntax
==External Links==
{{YouTube|}}
Usage
A link to a YouTube video looks like either of these:
https://youtu.be/Wn_QcT6fPoU- or
https://www.youtube.com/watch?v=Wn_QcT6fPoU
Take the bit after the last slash or the equals sign to produce:
{{YouTube|Wn_QcT6fPoU}}
Which outputs:
Other examples
| Example | Notes | Code | Output |
|---|---|---|---|
| Multiple links | Up to six, separated by pipe symbols (|) (e.g. Episode 25) |
{{YouTube|55hiL22SMjI|OXmWzwet8qU}}
|
|
| Including time parameter | t or time(e.g. Episode 562) |
{{YouTube|xVqXT3d8pYs|t=3m43s}}{{YouTube|xVqXT3d8pYs|time=3m43s}}
|
|
| Category suppression | Removes Category:Episodes on YouTube. Only for non-broadcast games, like Co-event or ZoomDown games (e.g. Episode ZD1) |
{{YouTube|3UYRqM5vms0|cat=no}}
|
See also
- {{Dailymotion}}