Template:Half-Life 2/doc: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 16: Line 16:
| → {{ {{ROOTPAGENAME}} }}
| → {{ {{ROOTPAGENAME}} }}
|-
|-
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|p{{=}}1|suf{{=}}:es}}
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|1|suf{{=}}:es}}
| → {{{{ROOTPAGENAME}}|p=1|suf=:es}}
| → {{{{ROOTPAGENAME}}|1|suf=:es}}
|-
|-
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|p{{=}}2}}
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|2}}
| → {{{{ROOTPAGENAME}}|p=2}}
| → {{{{ROOTPAGENAME}}|2}}
|-
|-
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|p{{=}}3}}
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|3}}
| → {{{{ROOTPAGENAME}}|p=3}}
| → {{{{ROOTPAGENAME}}|3}}
|-
|-
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|p{{=}}4|suf{{=}}:zh-cn}}
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|4|suf{{=}}:zh-cn}}
| → {{{{ROOTPAGENAME}}|p=4|suf=:zh-cn}}
| → {{{{ROOTPAGENAME}}|4|suf=:zh-cn}}
|-
|-
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|p{{=}}col}}
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|col}}
| → {{{{ROOTPAGENAME}}|p=col}}
| → {{{{ROOTPAGENAME}}|col}}
|-
|-
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|p{{=}}since}}
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|since}}
| → {{{{ROOTPAGENAME}}|p=since}}
| → {{{{ROOTPAGENAME}}|since}}
|-
|-
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|p{{=}}removed|suf{{=}}:ru}}
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|removed|suf{{=}}:ru}}
| → {{{{ROOTPAGENAME}}|p=removed|suf=:ru}}
| → {{{{ROOTPAGENAME}}|removed|suf=:ru}}
|-
|-
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|p{{=}}also|suf{{=}}:de|addtext{{=}}{{tlf|csgo|suf{{=}}:de}} {{tlf|l4d2|suf{{=}}:de}}}}
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|also|suf{{=}}:de|addtext{{=}}{{tlf|csgo|suf{{=}}:de}} {{tlf|l4d2|suf{{=}}:de}}}}
| → {{{{ROOTPAGENAME}}|p=also|suf=:de|addtext={{csgo|suf=:de}} {{l4d2|suf=:de}}}}
| → {{{{ROOTPAGENAME}}|also|suf=:de|addtext={{csgo|suf=:de}} {{l4d2|suf=:de}}}}
|}
|}



Revision as of 11:34, 18 April 2022

Edit-copy.png
This is a documentation subpage for Template:Half-Life 2.
Don't forget to purge the contents of the base page upon creating or editing this subpage.

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

  • {{{p}}} - Optional: The representation, see the examples below. Can be set to: 1, 2, 3, 4, col, in, also, only, since, removed, not.
  • {{{suf}}} - Optional: The language suffix of the linked page, e.g. :es, see {{lang}}.
  • {{{addtext}}} - Optional: If {{{p}}} is set to in, then the value of this parameter is inserted right after the game icon. Useful for multiple game icons.

Examples

{{half-Life 2}} Half-Life 2
{{half-Life 2|1|suf=:es}} Half-Life 2
{{half-Life 2|2}} Half-Life 2 Half-Life 2
{{half-Life 2|3}} Half-Life 2
{{half-Life 2|4|suf=:zh-cn}} Half-Life 2 Half-Life 2
{{half-Life 2|col}} → #E6AC39
{{half-Life 2|since}} (in all games since Half-Life 2)
{{half-Life 2|removed|suf=:ru}} (removed since Half-Life 2)
{{half-Life 2|also|suf=:de|addtext={{csgo|suf=:de}} {{l4d2|suf=:de}}}} (also in Half-Life 2Counter-Strike: Global Offensive Left 4 Dead 2)