Template:Hl2/doc

From Valve Developer Community
Jump to: navigation, search

Usage

Delivers the icon and/or a link of the game that has this abreviation. Can also obtain the game color.

This template is based on {{new icon}}.

Parameters

  • {{{1}}} - Optional: The representation, see the examples below. Can be set to: 1, 2, 3, 4, col, in, also, only, since, removed, not.
  • {{{suf}}} - Optional: To link to a specific language, set this to the appropriate language suffix, e.g. :es, see {{lang}}.
  • {{{nt}}} - Optional: This option allows you to select a custom game name if it is specified in the template. 0 is most often a game abbreviation.
  • {{{addtext}}} - Optional: If {{{1}}} is set to in, also, only, since, removed or not, then the value of this parameter is inserted right after the game icon. Useful for multiple game icons.

Examples

Note.png Note: Some of the examples given may lead to non-existent pages.
{{hl2}} Half-Life 2
{{hl2|1}} Half-Life 2
{{hl2|2}} Half-Life 2 Half-Life 2
{{hl2|3}} Half-Life 2
{{hl2|4}} Half-Life 2 Half-Life 2
{{hl2|1|suf=:es}} Half-Life 2
{{hl2|4|suf=:zh-cn}} 半衰期 2 半衰期 2
{{hl2|4|nt=0}} Half-Life 2 hl2
{{hl2|4|nt=1}} Half-Life 2 Half-Life 2
{{hl2|col}} → #FFCC14
{{hl2|in}} (in Half-Life 2)
{{hl2|only}} (only in Half-Life 2)
{{hl2|since}} (in all games since Half-Life 2)
{{hl2|not}} (not in Half-Life 2)
{{hl2|removed|suf=:ru}} (удалено начиная с Half-Life 2)
{{hl2|also|suf=:de|addtext={{csgo|suf=:de}} {{l4d2|suf=:de}}}} (auch in Half-Life 2 Counter-Strike: Global Offensive Left 4 Dead 2)