Template:YouTube: Difference between revisions

From Tardis Wiki, the free Doctor Who reference
(Created page with "<includeonly>* [https://www.youtube.com/channel/{{{1|}}} Official YouTube channel] {{#set:youtube=//youtube.com/channel/{{{1|}}}}}</includeonly><noinclude>[[Category:External...")
Tag: sourceedit
 
No edit summary
Tag: sourceedit
Line 1: Line 1:
<includeonly>* [https://www.youtube.com/channel/{{{1|}}} Official YouTube channel]  {{#set:youtube=//youtube.com/channel/{{{1|}}}}}</includeonly><noinclude>[[Category:External links templates|{{PAGENAME}}]]{{documentation}}</noinclude>
<includeonly>* [https://www.youtube.com/{{#if:{{{channel|}}}|channel/{{{channel}}}|{{#if:{{{user|}}}|user/{{{user}}}}}}} Official YouTube channel]  {{#set:youtube=//youtube.com/{{#if:{{{channel|}}}|channel/{{{channel}}}|{{#if:{{{user|}}}|user/{{{user}}}}}}}}}</includeonly><noinclude>[[Category:External links templates|{{PAGENAME}}]]{{documentation}}</noinclude>

Revision as of 03:29, 27 October 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: