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:
This user has a channel on YouTube.
<syntaxhighlight lang="wikitext">
This user has a channel on YouTube.
</syntaxhighlight>
YouTube|ChannelID|</syntaxhighlight>
This user has a channel on YouTube.
<syntaxhighlight lang="wikitext">
This user has a channel on YouTube.
</syntaxhighlight>
YouTube|channel_id=ChannelID|</syntaxhighlight>
For YouTube channels opened prior to 2013 of the form https://www.youtube.com/user/Username:
This user has a channel on YouTube.
<syntaxhighlight lang="wikitext">
This user has a channel on YouTube.
</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:
This user has a channel on YouTube.
<syntaxhighlight lang="wikitext">
This user has a channel on YouTube.
</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):
This user has a channel on YouTube.
<syntaxhighlight lang="wikitext">
This user has a channel on YouTube.
</syntaxhighlight>
YouTube|custom_name_2=CustomChannelName|</syntaxhighlight>
For YouTube channels of the form https://www.youtube.com/@Handle which debuted in 2022:
This user has a channel on YouTube.
<syntaxhighlight lang="wikitext">
This user has a channel on YouTube.
</syntaxhighlight>
YouTube|handle=Handle|</syntaxhighlight>