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 84: Line 84:
| → {{{{ROOTPAGENAME}}|removed}}
| → {{{{ROOTPAGENAME}}|removed}}
|-
|-
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|also|addtext{{=}}{{tlf|{{#ifeq:{{FULLPAGENAME}}|Template:Csgo|portal2|csgo}}}} {{tlf|l4d2}}}}
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|also|addtext{{=}}{{tlf|{{#ifeq:{{FULLPAGENAME}}|Template:Csgo|portal2|csgo}}}} {{tlf|{{#ifeq:{{FULLPAGENAME}}|Template:L4d2|portal2|l4d2}}}}}}
| → {{{{ROOTPAGENAME}}|also|addtext={{#ifeq:{{FULLPAGENAME}}|Template:Csgo|{{portal2}}|{{csgo}}}} {{l4d2}}}}
| → {{{{ROOTPAGENAME}}|also|addtext={{#ifeq:{{FULLPAGENAME}}|Template:Csgo|{{portal2}}|{{csgo}}}} {{#ifeq:{{FULLPAGENAME}}|Template:L4d2|{{portal2}}|{{l4d2}}}}}}
|}
|}



Revision as of 10:34, 20 September 2023

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 abbreviation. Can also obtain the game color.

This template is based on {{Software}}.

Parameters

  • {{{1}}} – Optional: The representation, see the examples below. Can be set to: 1, 2, 3, 3.1, 4, 4.1, col, in, also, only, since, removed, not;
  • {{{nt}}} – Optional: This option allows you to select a custom game and software name if it is specified in the template. 0 is most often a game abbreviation. You can click on "Edit" to view the available game/software names.
  • {{{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.

Translations

Some Translations are handled by the {{In text}} Template. Others (such as game title/software title, etc...) will use {{Autolang}}.

Examples

Note.pngNote:Some of the examples given may lead to non-existent pages.
{{half-Life 2}} Half-Life 2
{{half-Life 2|1}} Half-Life 2
{{half-Life 2|2}} Half-Life 2 Half-Life 2
{{half-Life 2|3}} Half-Life 2
{{half-Life 2|3.1}} Half-Life 2
{{half-Life 2|3.1.nolink}}
(Same as above, without links to the article.)
Half-Life 2
{{half-Life 2|3.2}} Half-Life 2
{{half-Life 2|4}} Half-Life 2 Half-Life 2
{{half-Life 2|4.1}} Half-Life 2 Half-Life 2
{{half-Life 2|4.2}} Half-Life 2 Half-Life 2
{{half-Life 2|4|nt=0}} Half-Life 2 HL2
{{half-Life 2|4|nt=1}} Half-Life 2 Half-Life 2
{{half-Life 2|4|nt=2}} Half-Life 2 Half-Life 2
{{half-Life 2|4|nt=3}} Half-Life 2 Half-Life 2
{{half-Life 2|4|nt=4}} Half-Life 2 Half-Life 2
{{half-Life 2|4|nt=hl2}}
(Custom name using text instead of number, not all template have this however.
This example will only works with Half-Life 2 Half-Life 2.)
Half-Life 2 HL2
{{half-Life 2|col}} → #E6AC39
{{half-Life 2|in}} (in Half-Life 2)
{{half-Life 2|only}} (only in Half-Life 2)
{{half-Life 2|since}} (in all games since Half-Life 2)
{{half-Life 2|not}} (not in Half-Life 2)
{{half-Life 2|removed}} (removed since Half-Life 2)
{{half-Life 2|also|addtext={{csgo}} {{l4d2}}}} (also in Half-Life 2Counter-Strike: Global Offensive Left 4 Dead 2)