Template:Csgo map/doc: Difference between revisions
Jump to navigation
Jump to search
(Created doc.) |
m (→Examples) |
||
(11 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{Doc/subpage}} | ||
{{Shortcut|{{T|Cs2 map}}}} | |||
<!-- Please place categories where indicated at the bottom of this page.) --> | <!-- Please place categories where indicated at the bottom of this page.) --> | ||
== Usage == | == Usage == | ||
This is a template for {{csgo|4}} maps. It delivers the map icon <code><nowiki>[[File:<mapname>.png]]</nowiki></code> followed by the given map name which links to a subsection of [[List of CS:GO Maps]]. If the icon does not exist, it uses [[:File:No csgo map icon.png]] instead. | This is a template for {{csgo|4}} and {{cs2|4}} maps. It delivers the map icon <code><nowiki>[[File:<mapname>.png]]</nowiki></code> followed by the given map name which links to a subsection of [[List of CS:GO Maps]]. If the icon does not exist, it uses [[:File:No csgo map icon.png]] instead. | ||
=== Parameters === | === Parameters === | ||
*{{param|1}} - The map name, e.g. <code>de_mirage</code>. | *{{param|1}} - The map name, e.g. <code>de_mirage</code>. | ||
*{{param|2}} - The display text of the link. {{param|1}} by default. | *{{param|2}} - The display text of the link. {{param|1}} by default. | ||
*{{param|game}} - Switch links between CS2 and CS:GO. | |||
** {{param|game|cs2}} (default) - If you click on a link with {{param|csgo map}} set to {{code|cs2}}, the link will leads to [[Counter-Strike 2/Maps]]. | |||
** {{param|game|csgo}} - If you click on a link with {{param|csgo map}} set to {{code|csgo}}, the link will leads to [[Counter-Strike: Global Offensive/Maps]]. | |||
*{{param|name}} - Displays map name (automatically translated) instead of {{param|1}} parameter. | |||
=== Examples === | === Examples === | ||
:{{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|de_mirage}} → {{{{ROOTPAGENAME}}|de_mirage}} | :{{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|de_mirage}} → {{{{ROOTPAGENAME}}|de_mirage}} | ||
:{{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|de_dust2|Dust II}} → {{{{ROOTPAGENAME}}|de_dust2|Dust II}} | :{{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|de_dust2|Dust II (de_dust2)}} → {{{{ROOTPAGENAME}}|de_dust2|Dust II (de_dust2)}} | ||
:{{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|cs_italy}} → {{{{ROOTPAGENAME}}|cs_italy}} | |||
:{{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|cs_italy|game{{=}}csgo}} → {{{{ROOTPAGENAME}}|cs_italy|game=csgo}} | |||
:{{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|lobby_mapveto|name{{=}}1}} → {{{{ROOTPAGENAME}}|lobby_mapveto|name=1}} | |||
:{{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|de_fenestration}} → {{{{ROOTPAGENAME}}|de_fenestration}} | :{{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|de_fenestration}} → {{{{ROOTPAGENAME}}|de_fenestration}} | ||
:{{tlc|{{lcfirst:{{ROOTPAGENAME}}}}}} → {{{{ROOTPAGENAME}}|}} | |||
<includeonly>{{sandbox other|| | <includeonly>{{sandbox other|| | ||
<!-- Categories below this line, please --> | <!-- Categories below this line, please --> | ||
[[Category:Counter-Strike: Global Offensive]] | [[Category:Counter-Strike: Global Offensive]] | ||
[[Category:Counter-Strike 2]] | |||
}}</includeonly> | }}</includeonly> |
Latest revision as of 04:30, 30 June 2024

This is a documentation subpage for Template:Csgo map.
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.
Usage
This is a template for Counter-Strike: Global Offensive and
Counter-Strike 2 maps. It delivers the map icon
[[File:<mapname>.png]]
followed by the given map name which links to a subsection of List of CS:GO Maps. If the icon does not exist, it uses File:No csgo map icon.png instead.
Parameters
- {{{1}}} - The map name, e.g.
de_mirage
. - {{{2}}} - The display text of the link. {{{1}}} by default.
- {{{game}}} - Switch links between CS2 and CS:GO.
- {{{game|cs2}}} (default) - If you click on a link with {{{csgo map}}} set to cs2, the link will leads to Counter-Strike 2/Maps.
- {{{game|csgo}}} - If you click on a link with {{{csgo map}}} set to csgo, the link will leads to Counter-Strike: Global Offensive/Maps.
- {{{name}}} - Displays map name (automatically translated) instead of {{{1}}} parameter.
Examples
{{csgo map|de_mirage}}
→de_mirage
{{csgo map|de_dust2|Dust II (de_dust2)}}
→Dust II (de_dust2)
{{csgo map|cs_italy}}
→cs_italy
{{csgo map|cs_italy|game=csgo}}
→cs_italy
{{csgo map|lobby_mapveto|name=1}}
→Pick/Ban
{{csgo map|de_fenestration}}
→de_fenestration
{{csgo map}}
→ No map selected! See Template:Csgo map