From Valve Developer Community
Jump to navigation
Jump to search

Available doc translations
…
EnglishThis template uses a strings subpagePlease follow the format on this subpage(s) to add translations.
Strings not recognized "String info "
This Counter-Strike: Global Offensive and Counter-Strike 2 template is used to generate a game mode icon which links directly to the appropriate page of the game mode.
Value for {{{1}}}
|
Result
|
casual |
|
competitive, comp |
|
wingman |
|
weaponsexpert, we |
Weapons Expert
|
armsrace, ar |
|
demolition, demo |
|
deathmatch, dm |
|
custom |
Custom
|
training, tr |
|
guardian, gd |
|
coopstrike, coop |
|
skirmish |
|
dangerzone, dz |
|
flyingscoutsman, fs |
|
retakes |
|
Counter-Strike 2 only ▼
|
trainingday, td |
Training Day
|
workshop |
Workshop
|
Parameters
- {{{1}}} - the name of the game mode. When starting the parameter with a capital letter, the game mode icon is followed by the game mode name, also linking to its page.
Note:There are game modes that have no icon: custom, weaponsexpert
. If used in lower case, they show the text (with link) instead.
- {{{2}}} - optional link text. Has no effect if {{{1}}} starts with a lower case letter.
- {{{link}}} - the page that the icon (and link text) links to. Set it to nothing (
link=
) if you just want the icon and no link.
Deprecated:The {{{suf}}} parameter has been deprecated in favor of automatic translation (via {{Autolang}} template) and strings subpage respectively, to add a new translations, visit the strings subpage instead.
Examples
{{csgo mode|competitive}} |
→
|
{{csgo mode|Competitive}} |
→ Competitive
|
{{csgo mode|dz|Запретная Зона|suf=:ru}} |
→
|
{{csgo mode|Dz|Запретная Зона|suf=:ru}} |
→ Запретная Зона
|
{{csgo mode|casual|link=}} |
→
|
{{csgo mode|Casual|link=}} |
→ Casual
|
{{csgo mode|rubbish}} |
→ Error: Unknown gamemode "rubbish", see Template:Csgo mode!
|
See also