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

From Valve Developer Community
Jump to navigation Jump to search
m (Resolved double redirect.)
Tag: Redirect target changed
m (Removed redirect to Category:Game icons/doc)
Tag: Removed redirect
Line 1: Line 1:
#REDIRECT [[Category:Game icons/doc]]
{{Documentation subpage}}
==Usage==
Delivers the icon and/or a link of the game that has this abreviation. Can also obtain the {{tl2|game color}}.
 
This template is based on {{tl2|new icon}}.
 
===Parameters===
* {{param|p}} - Optional: The representation, see the examples below. Can be set to: <code>1, 2, 3, 4, col, in</code>.
* {{param|suf}} - Optional: The language suffix of the linked page, e.g. <code>:es</code>, see {{tl2|lang}}.
* {{param|type}} - Optional: If {{param|p}} is set to <code>in</code>, then this can be set to <code>also, only, since, removed, not</code>. If you need <code>in</code> then don't enter this parameter.
* {{param|addtext}} - Optional: If {{param|p}} is set to <code>in</code>, then the value of this parameter is inserted right after the game icon. Useful for multiple game icons.
 
===Examples===
{| class=wikitable
|-
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}}}
| &rarr; {{ {{ROOTPAGENAME}} }}
|-
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|p{{=}}1|suf{{=}}:es}}
| &rarr; {{{{ROOTPAGENAME}}|p=1|suf=:es}}
|-
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|p{{=}}2}}
| &rarr; {{{{ROOTPAGENAME}}|p=2}}
|-
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|p{{=}}3}}
| &rarr; {{{{ROOTPAGENAME}}|p=3}}
|-
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|p{{=}}4|suf{{=}}:zh-cn}}
| &rarr; {{{{ROOTPAGENAME}}|p=4|suf=:zh-cn}}
|-
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|p{{=}}col}}
| &rarr; {{{{ROOTPAGENAME}}|p=col}}
|-
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|p{{=}}in|type{{=}}since}}
| &rarr; {{{{ROOTPAGENAME}}|p=in|type=since}}
|-
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|p{{=}}in|suf{{=}}:ru|type{{=}}removed}}
| &rarr; {{{{ROOTPAGENAME}}|p=in|suf=:ru|type=removed}}
|-
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|p{{=}}in|suf{{=}}:de|type{{=}}also|addtext{{=}}{{tlf|csgo|suf{{=}}:de}} {{tlf|l4d2|suf{{=}}:de}}}}
| &rarr; {{{{ROOTPAGENAME}}|p=in|suf=:de|type=also|addtext={{csgo|suf=:de}} {{l4d2|suf=:de}}}}
|}
 
<includeonly>{{sandbox other||
[[Category:Game icons]]
}}</includeonly>

Revision as of 13:19, 6 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.
  • {{{suf}}} - Optional: The language suffix of the linked page, e.g. :es, see {{lang}}.
  • {{{type}}} - Optional: If {{{p}}} is set to in, then this can be set to also, only, since, removed, not. If you need in then don't enter this parameter.
  • {{{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|p=1|suf=:es}} Half-Life 2
{{half-Life 2|p=2}} Half-Life 2
{{half-Life 2|p=3}} Half-Life 2
{{half-Life 2|p=4|suf=:zh-cn}} Half-Life 2
{{half-Life 2|p=col}} Half-Life 2
{{half-Life 2|p=in|type=since}} Half-Life 2
{{half-Life 2|p=in|suf=:ru|type=removed}} Half-Life 2
{{half-Life 2|p=in|suf=:de|type=also|addtext={{csgo|suf=:de}} {{l4d2|suf=:de}}}} Half-Life 2Counter-Strike: Global Offensive Left 4 Dead 2