Template:Csgo mode/doc: Difference between revisions
Jump to navigation
Jump to search
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.
(Created page with "{| class="wikitable" style="float:right;" ! Value for {{param|1}} ! Result |- | <code>casual</code> || {{csgo mode|casual}} |- | <code>competitive, comp</code> || {{csgo mode|...") |
No edit summary |
||
(18 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
{{Doc/subpage}} | |||
This {{Csgo|3.1}} and {{Cs2|3.1}} template is used to generate a game mode icon which links directly to the appropriate page of the [[game mode]]. | |||
<div style="float:right"> | |||
{{Shortcut|{{T|Cs2 mode}}}} | |||
</div> | |||
{{clr}} | |||
{| class="wikitable" style="float:right;" | {| class="wikitable" style="float:right;" | ||
! Value for {{ | ! Value for {{Param|1}} | ||
! Result | ! Result | ||
|- | |- | ||
Line 24: | Line 30: | ||
|- | |- | ||
| <code>coopstrike, coop</code> || {{csgo mode|coop}} | | <code>coopstrike, coop</code> || {{csgo mode|coop}} | ||
|- | |||
| <code>skirmish</code> || {{csgo mode|skirmish}} | |||
|- | |- | ||
| <code>dangerzone, dz</code> || {{csgo mode|dz}} | | <code>dangerzone, dz</code> || {{csgo mode|dz}} | ||
|- | |- | ||
| <code>flyingscoutsman, fs</code> || {{csgo mode|fs}} | | <code>flyingscoutsman, fs</code> || {{csgo mode|fs}} | ||
|- | |- | ||
| <code>retakes</code> || {{csgo mode|retakes}} | | <code>retakes</code> || {{csgo mode|retakes}} | ||
|- | |||
! colspan="2" | {{cs2|3.1}} only ▼ | |||
|- | |||
| <code>trainingday, td</code> || {{csgo mode|td}} | |||
|- | |||
| <code>workshop</code> || {{csgo mode|workshop}} | |||
|} | |} | ||
__NOTOC__ | __NOTOC__ | ||
== Parameters == | == Parameters == | ||
* {{ | * {{Param|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: <code>custom, weaponsexpert</code>. If used in lower case, they show the text (with link) instead.}} | ||
* {{ | * {{Param|2}} - optional link text. Has no effect if {{Param|1}} starts with a lower case letter. | ||
* {{ | * {{Param|link}} - the page that the icon (and link text) links to. Set it to nothing (<code>link=</code>) if you just want the icon and no link. | ||
* {{ | <!-- currently broken for now | ||
* {{Param|nocat}} - Only use this for previewing the error message, without adding the page to [[:Category:Pages with template errors]] category. | |||
--> | |||
{{Deprecated|The {{Param|suf}} parameter has been deprecated in favor of automatic translation (via {{T|Autolang}} template) and [[/strings|strings subpage]] respectively, to add a new translations, visit the [[/strings|strings]] subpage instead.}} | |||
== Examples == | == Examples == | ||
{| | {| style="background: none" | ||
| <code><nowiki>{{csgo mode|competitive}}</nowiki></code> || | | <code><nowiki>{{csgo mode|competitive}}</nowiki></code> || → {{csgo mode|competitive}} | ||
|- | |- | ||
| <code><nowiki>{{csgo mode|Competitive}}</nowiki></code> || | | <code><nowiki>{{csgo mode|Competitive}}</nowiki></code> || → {{csgo mode|Competitive}} | ||
|- | |- | ||
| <code><nowiki>{{csgo mode|dz|Запретная Зона|suf=:ru}}</nowiki></code> || | | <code><nowiki>{{csgo mode|dz|Запретная Зона|suf=:ru}}</nowiki></code> || → {{csgo mode|dz|Запретная Зона|suf=:ru}} | ||
|- | |- | ||
| <code><nowiki>{{csgo mode|Dz|Запретная Зона|suf=:ru}}</nowiki></code> || | | <code><nowiki>{{csgo mode|Dz|Запретная Зона|suf=:ru}}</nowiki></code> || → {{csgo mode|Dz|Запретная Зона|suf=:ru}} | ||
|- | |- | ||
| <code><nowiki>{{csgo mode|casual|link=}}</nowiki></code> || | | <code><nowiki>{{csgo mode|casual|link=}}</nowiki></code> || → {{csgo mode|casual|link=}} | ||
|- | |- | ||
| <code><nowiki>{{csgo mode|Casual|link=}}</nowiki></code> || | | <code><nowiki>{{csgo mode|Casual|link=}}</nowiki></code> || → {{csgo mode|Casual|link=}} | ||
|- | |- | ||
| <code><nowiki>{{csgo mode|rubbish}}</nowiki></code> || | | <code><nowiki>{{csgo mode|rubbish}}</nowiki></code> || → {{csgo mode|rubbish|nocat=1}} | ||
|} | |} | ||
== See | == See also == | ||
* [[CS:GO Game Mode Commands]] | * [[CS:GO Game Mode Commands|CS:GO/CS2 Game Mode Commands]] |
Latest revision as of 07:42, 3 March 2024

This is a documentation subpage for Template:Csgo mode.
Don't forget to purge the contents of the base page upon creating or editing this subpage.
Don't forget to purge the contents of the base page upon creating or editing this subpage.
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.

Examples
{{csgo mode|competitive}} |
→ ![]() |
{{csgo mode|Competitive}} |
→ ![]() |
{{csgo mode|dz|Запретная Зона|suf=:ru}} |
→ ![]() |
{{csgo mode|Dz|Запретная Зона|suf=:ru}} |
→ ![]() |
{{csgo mode|casual|link=}} |
→ ![]() |
{{csgo mode|Casual|link=}} |
→ ![]() |
{{csgo mode|rubbish}} |
→ Error: Unknown gamemode "rubbish", see Template:Csgo mode! |