Template:Csgo mode: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Cleaning up the code a little bit, and preparing to replace suf-based translation with Autolang and strings subpage combined.)
No edit summary
Line 13: Line 13:
   -->{{#if: {{{link|1}}} | [[{{{link|Counter-Strike: Global Offensive/Game Modes/Wingman{{{suf|}}} }}}|{{{2|Wingman}}}]] | {{{2|Wingman}}} }}
   -->{{#if: {{{link|1}}} | [[{{{link|Counter-Strike: Global Offensive/Game Modes/Wingman{{{suf|}}} }}}|{{{2|Wingman}}}]] | {{{2|Wingman}}} }}


| we | weaponsexpert | We | Weaponsexpert = <!-- no icon --><!--
| we | weaponsexpert | We | Weaponsexpert | Weapons Expert = <!-- no icon --><!--
   -->{{#if: {{{link|1}}} | [[{{{link|Counter-Strike: Global Offensive/Game Modes/Weapons Expert{{{suf|}}} }}}|{{{2|Weapons Expert}}}]] | {{{2|Weapons Expert}}} }}
   -->{{#if: {{{link|1}}} | [[{{{link|Counter-Strike: Global Offensive/Game Modes/Weapons Expert{{{suf|}}} }}}|{{{2|Weapons Expert}}}]] | {{{2|Weapons Expert}}} }}


| ar | armsrace | Ar | Armsrace = [[File:Csgo icon skirmish armsrace.png|link={{{link|Counter-Strike: Global Offensive/Game Modes/Arms Race{{{suf|}}} }}}|16px|CS:GO Arms Race]] <!--
| ar | armsrace | Ar | Armsrace | Arms Race = [[File:Csgo icon skirmish armsrace.png|link={{{link|Counter-Strike: Global Offensive/Game Modes/Arms Race{{{suf|}}} }}}|16px|CS:GO Arms Race]] <!--
   -->{{#if: {{{link|1}}} | [[{{{link|Counter-Strike: Global Offensive/Game Modes/Arms Race{{{suf|}}} }}}|{{{2|Arms Race}}}]] | {{{2|Arms Race}}} }}
   -->{{#if: {{{link|1}}} | [[{{{link|Counter-Strike: Global Offensive/Game Modes/Arms Race{{{suf|}}} }}}|{{{2|Arms Race}}}]] | {{{2|Arms Race}}} }}


Line 34: Line 34:
   -->{{#if: {{{link|1}}} | [[{{{link|Counter-Strike: Global Offensive/Game Modes/Guardian{{{suf|}}} }}}|{{{2|Guardian}}}]] | {{{2|Guardian}}} }}
   -->{{#if: {{{link|1}}} | [[{{{link|Counter-Strike: Global Offensive/Game Modes/Guardian{{{suf|}}} }}}|{{{2|Guardian}}}]] | {{{2|Guardian}}} }}


| coop| coopstrike | Coop | Coopstrike = [[File:Csgo icon coopstrike.png|link={{{link|Counter-Strike: Global Offensive/Game Modes/Co-op Strike{{{suf|}}} }}}|16px|CS:GO Co-op Strike]] <!--
| coop | coopstrike | Coop | Coopstrike | Co-op | Co-op Strike = [[File:Csgo icon coopstrike.png|link={{{link|Counter-Strike: Global Offensive/Game Modes/Co-op Strike{{{suf|}}} }}}|16px|CS:GO Co-op Strike]] <!--
   -->{{#if: {{{link|1}}} | [[{{{link|Counter-Strike: Global Offensive/Game Modes/Co-op Strike{{{suf|}}} }}}|{{{2|Co-op Strike}}}]] | {{{2|Co-op Strike}}} }}
   -->{{#if: {{{link|1}}} | [[{{{link|Counter-Strike: Global Offensive/Game Modes/Co-op Strike{{{suf|}}} }}}|{{{2|Co-op Strike}}}]] | {{{2|Co-op Strike}}} }}


Line 40: Line 40:
   -->{{#if: {{{link|1}}} | [[{{{link|Counter-Strike: Global Offensive/Game Modes{{{suf|}}}#Skirmish Modes}}}|{{{2|War Games}}}]] | {{{2|War Games}}} }}
   -->{{#if: {{{link|1}}} | [[{{{link|Counter-Strike: Global Offensive/Game Modes{{{suf|}}}#Skirmish Modes}}}|{{{2|War Games}}}]] | {{{2|War Games}}} }}


| dz | dangerzone | Dz | Dangerzone = [[File:Csgo icon dangerzone.png|link={{{link|Counter-Strike: Global Offensive/Game Modes/Danger Zone{{{suf|}}} }}}|16px|CS:GO Danger Zone]] <!--
| dz | dangerzone | Dz | Dangerzone | Danger Zone = [[File:Csgo icon dangerzone.png|link={{{link|Counter-Strike: Global Offensive/Game Modes/Danger Zone{{{suf|}}} }}}|16px|CS:GO Danger Zone]] <!--
   -->{{#if: {{{link|1}}} | [[{{{link|Counter-Strike: Global Offensive/Game Modes/Danger Zone{{{suf|}}} }}}|{{{2|Danger Zone}}}]] | {{{2|Danger Zone}}} }}
   -->{{#if: {{{link|1}}} | [[{{{link|Counter-Strike: Global Offensive/Game Modes/Danger Zone{{{suf|}}} }}}|{{{2|Danger Zone}}}]] | {{{2|Danger Zone}}} }}


| fs| flyingscoutsman | Fs | Flyingscoutsman = [[File:Csgo icon skirmish flyingscoutsman.png|link={{{link|Counter-Strike: Global Offensive/Game Modes{{{suf|}}}#Flying Scoutsman}}}|16px|CS:GO Flying Scoutsman]] <!--
| fs| flyingscoutsman | Fs | Flyingscoutsman | Flying Scoutman = [[File:Csgo icon skirmish flyingscoutsman.png|link={{{link|Counter-Strike: Global Offensive/Game Modes{{{suf|}}}#Flying Scoutsman}}}|16px|CS:GO Flying Scoutsman]] <!--
   -->{{#if: {{{link|1}}} | [[{{{link|Counter-Strike: Global Offensive/Game Modes{{{suf|}}}#Flying Scoutsman}}}|{{{2|Flying Scoutsman}}}]] | {{{2|Flying Scoutsman}}} }}
   -->{{#if: {{{link|1}}} | [[{{{link|Counter-Strike: Global Offensive/Game Modes{{{suf|}}}#Flying Scoutsman}}}|{{{2|Flying Scoutsman}}}]] | {{{2|Flying Scoutsman}}} }}



Revision as of 10:12, 2 March 2024

English (en)Deutsch (de)Esperanto (eo)Español (es)Français (fr)Suomi (fi)Hrvatski (hr)Magyar (hu)Italiano (it)日本語 (ja)한국어 (ko)Nederlands (nl)Polski (pl)Português (pt)Português do Brasil (pt-br)Русский (ru)Slovenčina (sk)Svenska (sv)Türkçe (tr)Українська (uk)Tiếng Việt (vi)中文 (zh)中文(臺灣) (zh-tw)
Curly brackets white.pngTemplate Documentation [view] [edit]
Icon-translate.png Available doc translations
View
Page history
Icon-translate.png
This template uses a strings subpage
Please 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 CS:GO Casual Casual
competitive, comp CS:GO Competitive Competitive
wingman CS:GO Wingman Wingman
weaponsexpert, we Weapons Expert
armsrace, ar CS:GO Arms Race Arms Race
demolition, demo CS:GO Demolition Demolition
deathmatch, dm CS:GO Deathmatch Deathmatch
custom Custom
training, tr CS:GO Training Training
guardian, gd CS:GO Guardian Guardian
coopstrike, coop CS:GO Co-op Strike Co-op Strike
skirmish CS:GO War Games War Games
dangerzone, dz CS:GO Danger Zone Danger Zone
flyingscoutsman, fs CS:GO Flying Scoutsman Flying Scoutsman
retakes CS:GO Retakes Retakes
Counter-Strike 2 only ▼
trainingday, td Error: Unknown gamemode "td", see Template:Csgo mode!
workshop Error: Unknown gamemode "workshop", see Template:Csgo mode!

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.pngNote: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.
Obsolete-notext.pngDeprecated: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}} CS:GO Competitive Competitive
{{csgo mode|Competitive}} CS:GO Competitive Competitive
{{csgo mode|dz|Запретная Зона|suf=:ru}} CS:GO Danger Zone Запретная Зона
{{csgo mode|Dz|Запретная Зона|suf=:ru}} CS:GO Danger Zone Запретная Зона
{{csgo mode|casual|link=}} CS:GO Casual Casual
{{csgo mode|Casual|link=}} CS:GO Casual Casual
{{csgo mode|rubbish}} Error: Unknown gamemode "rubbish", see Template:Csgo mode!

See also