Template:Csgo mode/doc: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Added Doc Subpage template.)
mNo edit summary
Line 1: Line 1:
{{documentation subpage}}
{{documentation subpage}}
{| class="wikitable" style="float:right;"
{| class="wikitable" style="float:right;"
! Value for {{param|1}}
! Value for {{Param|1}}
! Result
! Result
|-
|-
Line 35: Line 35:
|}
|}


This {{game name|name=Counter-Strike: Global Offensive}} template is used to generate a game mode icon which links directly to the appropriate page of the [[game mode]].
This {{Csgo|3.1}} template is used to generate a game mode icon which links directly to the appropriate page of the [[game mode]].
__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.<!--
* {{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.}}
-->{{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|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.
* {{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.
* {{param|suf}} - a suffix (ending) for the default linked page name. Has no effect if {{param|link}} is used already. For example, use <code>suf=:ru</code> to link to the Russian game mode page, if existent.
* {{Param|suf}} - a suffix (ending) for the default linked page name. Has no effect if {{Param|link}} is used already. For example, use <code>suf=:ru</code> to link to the Russian game mode page, if existent.


== Examples ==
== Examples ==

Revision as of 05:11, 30 March 2023

Edit-copy.png
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.
Value for {{{1}}} Result
casual CS:GO/CS2 Casual
competitive, comp CS:GO/CS2 Competitive
wingman CS:GO/CS2 Wingman
weaponsexpert, we Weapons Expert
armsrace, ar CS:GO/CS2 Arms Race
demolition, demo CS:GO/CS2 Demolition
deathmatch, dm CS:GO/CS2 Deathmatch
custom Custom
training, tr CS:GO Training
guardian, gd CS:GO/CS2 Guardian
coopstrike, coop CS:GO/CS2 Co-op Strike
dangerzone, dz CS:GO Danger Zone
skirmish CS:GO/CS2 War Games
flyingscoutsman, fs CS:GO/CS2 Flying Scoutsman
retakes CS:GO/CS2 Retakes

This Counter-Strike: Global Offensive template is used to generate a game mode icon which links directly to the appropriate page of the game 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.
  • {{{suf}}} - a suffix (ending) for the default linked page name. Has no effect if {{{link}}} is used already. For example, use suf=:ru to link to the Russian game mode page, if existent.

Examples

{{csgo mode|competitive}} CS:GO/CS2 Competitive
{{csgo mode|Competitive}} CS:GO/CS2 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/CS2 Casual
{{csgo mode|Casual|link=}} CS:GO/CS2 Casual Casual
{{csgo mode|rubbish}} Error: Unknown gamemode "rubbish", see Template:Csgo mode!

See Also