- Portals
- The Current Year
- ED in the News
- Admins
- Help ED Rebuild
- Archive
- ED Bookmarklet
- Donate Bitcoin
Contact an admin on Discord or EDF if you want an account. Also fuck bots.
Template:Yt/doc: Difference between revisions
Jump to navigation
Jump to search
imported>TabbyGarf No edit summary |
imported>MarioMario456 |
||
(36 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
== Usage == | == 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 | |||
<pre>{{yt| type | id | description }}</pre> | <pre>{{yt| type | id | description }}</pre> | ||
# '''type''' - the portion in the url in between slashes, can be '''user (u)''', '''channel (ch)''', '''@''', '''custom ( | # '''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 . | # '''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 | # '''description''' (''optional'') - replaces the profile name with your text | ||
Line 14: | Line 14: | ||
<nowiki>{{yt|user|id|description}}</nowiki> | <nowiki>{{yt|user|id|description}}</nowiki> | ||
<nowiki>{{yt|id|description}}</nowiki> | <nowiki>{{yt|id|description}}</nowiki> | ||
produces: | produces: | ||
Line 24: | Line 23: | ||
<nowiki>{{yt|ch|id|description}}</nowiki> | <nowiki>{{yt|ch|id|description}}</nowiki> | ||
<nowiki>{{yt|channel|id|description}}</nowiki> | <nowiki>{{yt|channel|id|description}}</nowiki> | ||
<nowiki>{{ | <nowiki>{{yt|c|id|description}}</nowiki> | ||
produces: | produces: | ||
* {{ | * {{yt|ch|id|description}} - with description | ||
* {{ | * {{yt|ch|id}} - without description | ||
==Channel (c)== | |||
<nowiki>{{yt|c2|id|description}}</nowiki> | |||
produces: | |||
* {{yt|c2|id|description}} - with description | |||
==Handles (@)== | ==Handles (@)== | ||
Line 35: | Line 40: | ||
<nowiki>{{yt|@|id|description}}</nowiki> | <nowiki>{{yt|@|id|description}}</nowiki> | ||
<nowiki>{{yt|custom|@id|description}}</nowiki> | <nowiki>{{yt|custom|@id|description}}</nowiki> | ||
<nowiki>{{yt| | <nowiki>{{yt|cu|@id|description}}</nowiki> | ||
produces: | produces: | ||
* {{yt| | * {{yt|@|id|description}} - with description | ||
* {{yt| | * {{yt|@|id}} - without description | ||
Line 46: | Line 50: | ||
<nowiki>{{yt|custom|customurl|description}}</nowiki> | <nowiki>{{yt|custom|customurl|description}}</nowiki> | ||
<nowiki>{{yt| | <nowiki>{{yt|cu|customurl|description}}</nowiki> | ||
produces: | produces: | ||
* {{yt| | * {{yt|cu|customurl|description}} - with description | ||
* {{yt| | * {{yt|cu|customurl}} - without description |
Latest revision as of 22:56, 25 December 2023
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:
- description - with description
- id - without description
Channel
{{yt|ch|id|description}} {{yt|channel|id|description}} {{yt|c|id|description}}
produces:
- description - with description
- id - without description
Channel (c)
{{yt|c2|id|description}}
produces:
- description - with description
Handles (@)
{{yt|@|id|description}} {{yt|custom|@id|description}} {{yt|cu|@id|description}}
produces:
- description - with description
- id - without description
Custom URLs
{{yt|custom|customurl|description}} {{yt|cu|customurl|description}}
produces:
- description - with description
- customurl - without description