Template:Youtube/doc: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
Line 3: Line 3:
Link to {{youtube}} website, videos, channels, and more.
Link to {{youtube}} website, videos, channels, and more.


{{Bug|Some examples won't be shown due to spam filter-related issue.}}
{{Bug|Some examples won't be shown due to spam filter-related issue. For now, use this for channel page only, or you can use the typical "{{code|<nowiki>[https://youtube.com (Name)]</nowiki>}}" method.}}


== Parameters and Examples ==
== Parameters and Examples ==

Revision as of 10:28, 29 August 2023

Edit-copy.png
This is a documentation subpage for Template:Youtube.
Don't forget to purge the contents of the base page upon creating or editing this subpage.

Link to YouTube logo YouTube website, videos, channels, and more.

Icon-Bug.pngBug:Some examples won't be shown due to spam filter-related issue. For now, use this for channel page only, or you can use the typical "[https://youtube.com (Name)]" method.  [todo tested in ?]

Parameters and Examples

Parameter Description Example Preview
No Parameters Creates a link to YouTube website.
{{youtube}}
{{{1}}} Links to the YouTube videos, and channels, without the name ({{{2}}}) specified.
{{youtube|@Valve}}
YouTube logo @Valve
{{{2}}} Set the name of the link.
{{youtube|_y9MpNcAitQ|page=watch|Counter-Strike 2 Responsive Smokes}}
Note.pngNote:Unavailable due to Spam filter preventing this preview.
{{{page}}} Changes the page.
Values: Unspecified (default), <watch/video/videos>, .
Only specify if the game or app was located somewhere else, otherwise the link will leads to 404 page instead of games/apps page.
{{youtube|_y9MpNcAitQ|page=watch|Video page - CS2 Responsive Smokes}}
{{youtube|PLQgyHqypb0gGEWZ0cEPBsGOkzH_ADQML-|page=playlist|Playlists - CL Soundtrack}}
Note.pngNote:Unavailable due to Spam filter preventing this preview.
{{{icon}}} Hide/shows the icon.
Values: show (default), hide
{{youtube|icon=hide}}

See Also

Cross-wiki link templates
Template Preview
{{wikipedia}}
{{wiki}}
{{w}}
Wikipedia icon Wikipedia
{{cow}} Combine overwiki icon.png Combine OverWiki
{{l4dwiki}} Left 4 Dead Wiki Left 4 Dead Wiki
{{pcgw}} Pcgw icon.png PCGamingWiki
{{portalwiki}} Portalwiki icon.png Portal Wiki
{{sboxwiki}} S&box icon.png S&Box Wiki
{{tfwiki}} Tfwiki favicon.png Team Fortress Wiki
{{twhl}} Twhl hammer emote.png TWHL Wiki
{{quakewiki}} Quake1-16px.png Quake Wiki
{{cswiki}} Counter-Strike Wiki Counter-Strike Wiki
Social media link templates
Template Preview
{{bluesky}} Bluesky Bluesky
{{discord}} Discord logo Discord
{{reddit}} Reddit logo Reddit
{{steam community}} Steam Community Steam Community
{{twitch}} Twitch logo Twitch
{{twitter}}
{{x}}
Logo for X X (Twitter)
{{youtube}} YouTube logo YouTube
Storefront link templates
Template Preview
{{steam store}} Steam Store Steam Store
{{epic}}
{{egs}}
Epic Games Store Epic Games Store
{{gplay}} Google Play Google Play
{{gog}} GOG.com GOG.com
{{ms store}}
(PC, Xbox One Xbox One, Xbox Series X/S)
Microsoft Store Microsoft Store
{{xbox store}}
(Xbox 360 Xbox 360)
Xbox Marketplace Xbox Marketplace
{{nintendo store}} Nintendo Store Nintendo Store
Other link templates
Template Preview
{{steam}} Steam Protocol
{{email}}
{{e}}
gaben@valvesoftware.com
{{github}} GitHub GitHub
{{gamebanana}} ModDB GameBanana
{{moddb}} ModDB ModDB
{{rtsl}} rtsl RTSL
{{protondb}} ProtonDB ProtonDB
{{steamdb}}
{{sdb}}
SteamDB SteamDB
{{gdrive}}
{{gd}}
Google Drive Google Drive
{{fragnet}}
{{fn}}
Frag-Net Frag-Net

ViewDiscussEdit templatePurge