Template:Csgo map: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Made icon 16px by default (because otherwise it looks weird in a span with bg-color), made text not bold but italic, trying a different background color. In the recent state, they looked way too similar to game names imo. I'm unsure about bg-color at all.)
m (Changed background color to work on any background.)
Line 1: Line 1:
<onlyinclude><includeonly><!--
<onlyinclude><includeonly><!--


--><span style="white-space:nowrap; background-color:#333; 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}}}}}}]]<!--
   -->|[[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}}}}}}]]<!--

Revision as of 06:03, 25 August 2022

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}}de_mirage de_mirage
{{csgo map|de_dust2|Dust II (de_dust2)}}Dust II (de_dust2) Dust II (de_dust2)
{{csgo map|cs_italy}}cs_italy cs_italy
{{csgo map|cs_italy|game=csgo}}cs_italy cs_italy
{{csgo map|lobby_mapveto|name=1}}lobby_mapveto lobby_mapveto
{{csgo map|de_fenestration}}de_fenestration de_fenestration
{{csgo map}}No map selected! See Template:Csgo map