From English Wikipedia @ Freddythechick
 | This user has a channel on YouTube. |
Usage
Template output
|
Stand alone code
|
Babel box code
|
For YouTube channels of the canonical URL form https://www.youtube.com/channel/ChannelID where ChannelID is a 24-character-long alphanumeric string:
|
|
<syntaxhighlight lang="wikitext"></syntaxhighlight>
|
YouTube|ChannelID|</syntaxhighlight>
|
|
<syntaxhighlight lang="wikitext"></syntaxhighlight>
|
YouTube|channel_id=ChannelID|</syntaxhighlight>
|
For YouTube channels opened prior to 2013 of the form https://www.youtube.com/user/Username :
|
|
<syntaxhighlight lang="wikitext"></syntaxhighlight>
|
YouTube|username=Username|</syntaxhighlight>
|
For YouTube channels with at least 100 subscribers that applied for a custom URL of the form https://www.youtube.com/c/CustomURLname :
|
|
<syntaxhighlight lang="wikitext"></syntaxhighlight>
|
YouTube|custom_name=CustomURLname|</syntaxhighlight>
|
For YouTube channels of the form https://www.youtube.com/CustomChannelName (shortcut alternative to /user/CustomChannelName or /c/CustomChannelName depending on channel):
|
|
<syntaxhighlight lang="wikitext"></syntaxhighlight>
|
YouTube|custom_name_2=CustomChannelName|</syntaxhighlight>
|
For YouTube channels of the form https://www.youtube.com/@Handle which debuted in 2022:
|
|
<syntaxhighlight lang="wikitext"></syntaxhighlight>
|
YouTube|handle=Handle|</syntaxhighlight>
|