Template:Youtube/doc: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Random spam filter issues. Another attempt again.)
No edit summary
 
(15 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Doc/subpage}}
{{Doc/subpage}}
{{Shortcut|{{Tlc|yt}}<br>{{Tlc|YouTube}}}}
<!-- Please place categories where indicated at the bottom of this page.) -->
<!-- Please place categories where indicated at the bottom of this page.) -->
Link to {{youtube}} website, videos, channels, and more.
Link to {{youtube}} website, videos, channels, and more. Please note that this template (for now) isn't used to embed YouTube videos.
 
{{Bug|Some examples won't be shown due to spam filter-related issue.}}


== Parameters and Examples ==
== Parameters and Examples ==
Line 21: Line 20:
| style="padding:.2em .5em" | {{CodeBlock|<nowiki>{{youtube|@Valve}}</nowiki>}}
| style="padding:.2em .5em" | {{CodeBlock|<nowiki>{{youtube|@Valve}}</nowiki>}}
| style="padding:.2em .5em" | {{Capsule| {{youtube|@Valve}} }}
| style="padding:.2em .5em" | {{Capsule| {{youtube|@Valve}} }}
|-<!--
|-
| style="text-align:center" | {{Code| {{param|2}} }}
| style="text-align:center" | {{Code| {{param|2}} }}
| Set the name of the link.
| Set the name of the link.
Line 27: Line 26:
| style="padding:.2em .5em" | {{Capsule| {{youtube|_y9MpNcAitQ|page=watch|Counter-Strike 2 Responsive Smokes}} }}
| style="padding:.2em .5em" | {{Capsule| {{youtube|_y9MpNcAitQ|page=watch|Counter-Strike 2 Responsive Smokes}} }}
|-
|-
| style="text-align:center" | {{Code| {{param|page}} }}
| style="text-align:center" | {{Code|{{param|p}}<br>{{param|page}} }}
| Changes the page.<br>Values:  Unspecified (default), {{code|<watch/video/videos>}}, .<br>'''Only specify if the game or app was located somewhere else, otherwise the link will leads to 404 page instead of games/apps page.'''
| Changes the page.<br>Values:  Unspecified (default), {{code|<watch/video/videos>}}, {{code|playlist}}.<br>'''Only specify if the game or app was located somewhere else, otherwise the link will leads to 404 page instead of games/apps page.'''
| style="padding:.2em .5em" | {{CodeBlock|<nowiki>{{youtube|_y9MpNcAitQ|page=watch|Video page - CS2 Responsive Smokes}}</nowiki>}} {{CodeBlock|<nowiki>{{youtube|PLQgyHqypb0gGEWZ0cEPBsGOkzH_ADQML-|page=playlist|Playlists - CL Soundtrack}}</nowiki>}}
| style="padding:.2em .5em" | {{CodeBlock|<nowiki>{{youtube|_y9MpNcAitQ|page=watch|Video page - CS2 Responsive Smokes}}</nowiki>}} {{CodeBlock|<nowiki>{{youtube|PLQgyHqypb0gGEWZ0cEPBsGOkzH_ADQML-|page=playlist|Playlists - CL Soundtrack}}</nowiki>}}
| style="padding:.2em .5em" | {{Capsule| {{youtube|PLQgyHqypb0gGEWZ0cEPBsGOkzH_ADQML-|page=playlist|Playlists - CL Soundtrack}} }}<!-- the word "crack" would ended up triggering spam filter, probably it was misused for piracy stuff -->
| style="padding:.2em .5em" | {{Capsule| {{youtube|PLQgyHqypb0gGEWZ0cEPBsGOkzH_ADQML-|page=playlist|Playlists - Crack-Life Soundtrack}} }}
|- -->
|-
| style="text-align:center" | {{Code| {{param|t}} }}
| Changes the time where the video should start.
| style="padding:.2em .5em" | {{CodeBlock|<nowiki>{{youtube|edYCtaNueQY|page=watch|t=71|Counter-Strike: Global Offensive Trailer (at 1:11)}}</nowiki>}}
| style="padding:.2em .5em" | {{Capsule| {{youtube|edYCtaNueQY|page=watch|t=71|Counter-Strike: Global Offensive Trailer (at 1:11)}} }}
|-
| style="text-align:center" | {{Code| {{param|icon}} }}
| style="text-align:center" | {{Code| {{param|icon}} }}
| Hide/shows the icon.<br>Values: {{code|show}} (default), {{code|hide}}
| Hide/shows the icon.<br>Values: {{code|show}} (default), {{code|hide}}
Line 39: Line 43:
|}
|}


== See Also ==
== See also ==
{{External link templates}}
{{External link templates}}



Latest revision as of 23:44, 17 February 2024

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.
Shortcut
{{yt}}
{{YouTube}}

Link to YouTube logo YouTube website, videos, channels, and more. Please note that this template (for now) isn't used to embed YouTube videos.

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}}
{{{p}}}
{{{page}}}
Changes the page.
Values: Unspecified (default), <watch/video/videos>, playlist.
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}}
{{{t}}} Changes the time where the video should start.
{{youtube|edYCtaNueQY|page=watch|t=71|Counter-Strike: Global Offensive Trailer (at 1:11)}}
{{{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