Template:Csgo map: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Changed background color to work on any background.)
mNo edit summary
Line 3: Line 3:
--><span style="white-space:nowrap; background-color:rgba(255,255,255,0.04); font-style:italic; padding:2px; {{border-radius|4px}}"><!--
--><span style="white-space:nowrap; background-color:rgba(255,255,255,0.04); font-style:italic; padding:2px; {{border-radius|4px}}"><!--
  -->{{#if:{{{1|}}}<!--
  -->{{#if:{{{1|}}}<!--
   -->|[[File:{{#ifexist: File:{{{1}}}.png |{{{1}}}|No csgo map icon}}.png |{{{size|16px}}}|text-bottom|link=List of CS:GO Maps#{{{1}}}|{{{2|{{{1}}}}}}]] [[List of CS:GO Maps#{{{1}}}|{{{2|{{{1}}}}}}]]<!--
   -->|[[{{CsgoMapDictionary|{{{1}}}|2}}|{{{size|16px}}}|text-bottom|link=List of CS:GO Maps#{{{1}}}|{{{2|{{{1}}}}}}]] [[List of CS:GO Maps#{{{1}}}|{{{2|{{#if:{{{name|}}}|{{CsgoMapDictionary|{{{1}}}|1}}|{{{1}}}}}}}}]]<!--
   -->|<span style="color:red">No map selected! See [[Template:Csgo map]] </span><!--
   -->|<span style="color:red">No map selected! See [[Template:Csgo map]] </span><!--
  -->}}<!--
  -->}}<!--

Revision as of 11:08, 17 August 2023

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

Usage

This is a template for Counter-Strike: Global Offensive Counter-Strike: Global Offensive and Counter-Strike 2 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.
  • {{{name}}} - Displays map name (automatically translated) instead of {{{1}}} parameter.

Examples

{{csgo map|de_mirage}}16px|text-bottom|link=List of CS:GO Maps#de_mirage|de_mirage de_mirage
{{csgo map|de_dust2|Dust II (de_dust2)}}16px|text-bottom|link=List of CS:GO Maps#de_dust2|Dust II (de_dust2) Dust II (de_dust2)
{{csgo map|cs_italy}}16px|text-bottom|link=List of CS:GO Maps#cs_italy|cs_italy cs_italy
{{csgo map|cs_italy|game=csgo}}16px|text-bottom|link=List of CS:GO Maps#cs_italy|cs_italy cs_italy
{{csgo map|lobby_mapveto|name=1}}16px|text-bottom|link=List of CS:GO Maps#lobby_mapveto|lobby_mapveto Pick/Ban
{{csgo map|de_fenestration}}16px|text-bottom|link=List of CS:GO Maps#de_fenestration|de_fenestration de_fenestration
{{csgo map}}No map selected! See Template:Csgo map