Template:YouTube: Difference between revisions

From Tardis Wiki, the free Doctor Who reference
m (SOTO moved page Template:Youtube to Template:YouTube without leaving a redirect)
No edit summary
Tag: sourceedit
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>* [https://www.youtube.com/{{#if:{{{id|}}}|channel/{{{id}}}|{{#if:{{{user|}}}|user/{{{user}}}}}}} Official YouTube channel]  {{#set:youtube=//youtube.com/{{#if:{{{id|}}}|channel/{{{id}}}|{{#if:{{{user|}}}|user/{{{user}}}}}}}}}</includeonly><noinclude>[[Category:External links templates|{{PAGENAME}}]]{{documentation}}</noinclude>
<includeonly>* [https://www.youtube.com/{{#if:{{{channel|}}}|channel/{{{channel}}}|{{#if:{{{user|}}}|user/{{{user}}}|{{#if:{{{1|}}}|{{{1|}}}}}}}}} {{{alt|Official YouTube channel}}}]  {{#set:youtube=//youtube.com/{{#if:{{{channel|}}}|channel/{{{channel}}}|{{#if:{{{user|}}}|user/{{{user}}}|{{#if:{{{1|}}}|{{{1}}}}}}}}}}}</includeonly><noinclude>[[Category:External links templates|{{PAGENAME}}]]{{documentation}}</noinclude>

Latest revision as of 21:36, 25 December 2016

Instructions for {{YouTube}}
{{YouTube}} is a template that allows you to put a link to a YouTube channel in the external links section of articles. If the URL contains "channel", just type:
{{YouTube|channel=string of letters}}
If it contains "user", type instead:
{{YouTube|user=name of channel}}

It automatically includes a bullet, producing a link that looks like this: