Registration has been disabled and the moderation extension has been turned off.
Contact an admin on Discord or EDF if you want an account. Also fuck bots.

Template:Yt: Difference between revisions

From Encyclopedia Dramatica
Jump to navigation Jump to search
imported>TabbyGarf
No edit summary
imported>MarioMario456
No edit summary
 
(34 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>[[File:YouTube Favicon.png|14px|link=http://www.youtube.com/{{#switch:{{{1}}}
<includeonly>{{ws|YouTube Favicon.png|http://www.youtube.com/{{#switch:{{{1}}}
| user = user/{{{2}}}]]
|user=user/{{{2}}}
| @ = @{{{2}}}]]
|channel=channel/{{{2}}}
| custom = {{{2}}}]]
|c2=c/{{{2}}}
| channel = /{{{2}}}]]
|@=@{{{2}}}
| u = user/{{{2}}}]]
|custom={{{2}}}
| c = {{{2}}}]]
|u=user/{{{2}}}
| ch = /{{{2}}}]]
|c=channel/{{{2}}}
| user/{{{1}}}]]
|ch=channel/{{{2}}}
}} <span class="plainlinks">'''[https://www.youtube.com/{{#switch:{{{1}}}
|cu={{{2}}}
| user = user/{{{2}}}/ {{{3|YouTube}}}]'''</span>
|user/{{{1}}}
| @ = @{{{2}}}/ {{{3|@{{{2}}}}}}]'''</span>
}}|{{{3|{{{2|{{{1|}}}}}}}}}}}</includeonly><noinclude>{{documentation}} [[Category:Link Templates]]</noinclude>
| custom = {{{2}}}/ {{{3|{{{2}}}}}}]'''</span>
| u = user/{{{2}}}/ {{{2|{{{3}}}}}}]'''</span>
| c = {{{2}}}/ {{{3|{{{2}}}}}}]'''</span>
| ch = channel/{{{2}}}/ {{{3|YouTube}}}]
| user/{{{1}}}/ {{{1|{{{2}}}}}}]'''</span>
}}</includeonly><noinclude>{{documentation}} [[Category:Link Templates]]</noinclude>

Latest revision as of 22:42, 25 December 2023

[view] [edit] [history] [purge] Documentation icon Template documentation

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 }}
  1. 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!
  2. 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 .
  3. 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:

Channel

{{yt|ch|id|description}}
{{yt|channel|id|description}}
{{yt|c|id|description}}

produces:

Channel (c)

{{yt|c2|id|description}}

produces:

Handles (@)

{{yt|@|id|description}}
{{yt|custom|@id|description}}
{{yt|cu|@id|description}}

produces:


Custom URLs

{{yt|custom|customurl|description}}
{{yt|cu|customurl|description}}

produces: