Template:User YouTube Account: Difference between revisions
No edit summary |
SilSinn9801 (talk | contribs) (Allow specifying YouTube username and, if necessary, channel hashcode, using same tricks used in Twitter usertag. Also categorized as YouTube users (wanted)) |
||
Line 1: | Line 1: | ||
{| class="userboxitem" style="border: 1px solid #000000; background: #FF0000;{{#switch:{{{moz|yes}}}|yes={{roundy|60px}}|no=}}" cellspacing="0" cellpadding="0" | {| class="userboxitem" style="border: 1px solid #000000; background: #FF0000;{{#switch:{{{moz|yes}}}|yes={{roundy|60px}}|no=}}" cellspacing="0" cellpadding="0" | ||
! style="background: #FFFFFF; {{#switch:{{{moz|yes}}}|yes={{roundy|60px}}|no=}}" |[[Image:YouTube logo.png|60px]] | ! style="background: #FFFFFF; {{#switch:{{{moz|yes}}}|yes={{roundy|60px}}|no=}}" |[[Image:YouTube logo.png|60px]] | ||
| style=" color: #FFFFFF;" | This user has a '''[[wp:YouTube|<span style="color: #FFFFFF;">YouTube</span>]]''' account. | | style=" color: #FFFFFF;" | This user has a '''[[wp:YouTube|<span style="color: #FFFFFF;">YouTube</span>]]''' {{#if: {{{2|}}}|channel under the username <span class="plainlinks">'''[http://youtube.com/channel/{{{2|}}} {{color|FFF|{{{1|}}}}}]'''</span>|{{#if: {{{1|}}}|channel under the name <span class="plainlinks">'''[http://youtube.com/user/{{{1|}}} {{color|FFF|{{{1|}}}}}]'''</span>|account}}}}. | ||
|} | |} | ||
<noinclude>[[Category:Other tags]]</noinclude> | <noinclude> | ||
{{-}} | |||
==Usage== | |||
To use this template: | |||
1) If you have a YouTube account but do not want to share your username or channel URL there, simply paste the following code into your userpage: | |||
<pre><nowiki>{{User YouTube Account}}</nowiki></pre> | |||
2) If you have your own YouTube channel with an old-style URL of the form | |||
<pre>http://youtube.com/user/your_username</pre> | |||
and want to share it so others can subscribe to it, then paste the following code: | |||
<pre><nowiki>{{User YouTube Account|write your YouTube username here}}</nowiki></pre> | |||
3) If, on the other hand, you created your YouTube account sometime after 2009 and got instead a new-style channel URL of the form | |||
<pre>http://youtube.com/channel/a_24-character-long_alphanumeric_hash_code</pre> | |||
then paste the following code instead: | |||
<pre><nowiki>{{User YouTube Account|your full username|your YouTube channel's alphanum hashcode}}</nowiki></pre> | |||
==Example== | |||
If your YouTube channel has the following old-style URL: | |||
<pre>[http://youtube.com/user/Pokemon]</pre> | |||
then your username is '''Pokemon'''; copy it and paste it into your template: | |||
<pre><nowiki>{{User YouTube Account|Pokemon}}</nowiki></pre> | |||
resulting in the following usertag: | |||
{{User YouTube Account|Pokemon}} | |||
If, on the other hand, your YouTube channel has the following new-style URL: | |||
<pre>[http://youtube.com/channel/UCFctpiB_Hnlk3ejWfHqSm6Q]</pre> | |||
then your alphanumeric hash code is '''UCFctpiB_Hnlk3ejWfHqSm6Q'''; copy it and paste it into your template: | |||
<pre><nowiki>{{User YouTube Account|The Official Pokémon YouTube channel|UCFctpiB_Hnlk3ejWfHqSm6Q}}</nowiki></pre> | |||
resulting in the following usertag: | |||
{{User YouTube Account|The Official Pokémon YouTube channel|UCFctpiB_Hnlk3ejWfHqSm6Q}} | |||
[[Category:Other tags]][[Category:YouTube users]]</noinclude> |
Revision as of 07:35, 17 November 2018
This user has a YouTube account. |
Usage
To use this template:
1) If you have a YouTube account but do not want to share your username or channel URL there, simply paste the following code into your userpage:
{{User YouTube Account}}
2) If you have your own YouTube channel with an old-style URL of the form
http://youtube.com/user/your_username
and want to share it so others can subscribe to it, then paste the following code:
{{User YouTube Account|write your YouTube username here}}
3) If, on the other hand, you created your YouTube account sometime after 2009 and got instead a new-style channel URL of the form
http://youtube.com/channel/a_24-character-long_alphanumeric_hash_code
then paste the following code instead:
{{User YouTube Account|your full username|your YouTube channel's alphanum hashcode}}
Example
If your YouTube channel has the following old-style URL:
[http://youtube.com/user/Pokemon]
then your username is Pokemon; copy it and paste it into your template:
{{User YouTube Account|Pokemon}}
resulting in the following usertag:
This user has a YouTube channel under the name Pokemon. |
If, on the other hand, your YouTube channel has the following new-style URL:
[http://youtube.com/channel/UCFctpiB_Hnlk3ejWfHqSm6Q]
then your alphanumeric hash code is UCFctpiB_Hnlk3ejWfHqSm6Q; copy it and paste it into your template:
{{User YouTube Account|The Official Pokémon YouTube channel|UCFctpiB_Hnlk3ejWfHqSm6Q}}
resulting in the following usertag:
This user has a YouTube channel under the username The Official Pokémon YouTube channel. |