Template:Yt: Difference between revisions
From EunuchWiki
imported>MarioMario456 No edit summary |
m 1 revision imported |
||
(No difference)
|
Latest revision as of 21:34, 11 June 2024
File:Test Template Info-Icon - Version (2).svg Template documentation[view] [edit] [history] [purge]
Usage
This is a template to link to YouTube Channels. The template has been future-proofed in the case of YouTube making yet another url format
{{yt| type | id | description }}
- type - the portion in the url in between slashes, can be user (u), channel (ch), @, custom (cu) (for vanity urls) or the user id itself!
- id - the last portion of the URL to a YouTube profile, after user/, channel, @ or youtube.com/ and youtube.com/c/ in case of custom URLs .
- description (optional) - replaces the profile name with your text
Note: do not use whitespace immediately before or after vertical bars or curly brackets
User
{{yt|id|description}} {{yt|u|id|description}} {{yt|user|id|description}} {{yt|id|description}}
produces:
- with description
- without description
Channel
{{yt|ch|id|description}} {{yt|channel|id|description}} {{yt|c|id|description}}
produces:
- with description
- without description
Channel (c)
{{yt|c2|id|description}}
produces:
- with description
Handles (@)
{{yt|@|id|description}} {{yt|custom|@id|description}} {{yt|cu|@id|description}}
produces:
- with description
- without description
Custom URLs
{{yt|custom|customurl|description}} {{yt|cu|customurl|description}}
produces:
- with description
- without description