Template:Game icon: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Not deprecated, it's currently the only way to map a game name to the corresponding game template besides the more annoying {{game icon name}}. For example, in {{this is a|console command|game=Portal}}, the game name is displayed as {{game icon|Portal}}.)
({{game icon}} no longer has a {{{suf}}} parameter.)
Line 2: Line 2:


-->{{#if: {{game icon name|{{{1|}}}}}
-->{{#if: {{game icon name|{{{1|}}}}}
   | {{ {{game icon name|{{{1}}}}} | suf={{{suf|}}} | {{{2|}}} }}
   | {{ {{game icon name|{{{1}}}}} | {{{2|}}} }}
   }}<!--
   }}<!--



Revision as of 14:12, 31 May 2024

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

This template takes the full game name and delivers the game's icon, if existent.

Parameters

  • {{{1}}} - The full name of the game. See {{Game icon name}} for a list of available names. Unsupported names generate nothing, so this template can be used carelessly without breaking anything.
  • {{{2}}} - The first unnamed parameter of the corresponding game icon template; see examples.

Examples

Example Equivalent template Preview
{{game icon|Half-Life 2}} {{hl2}} Half-Life 2
{{game icon|Half-Life 2|4}} {{hl2|4}} Half-Life 2 Half-Life 2
{{game icon|hl2}} N/A

See also

{{Game icon name}}