Template:Half-Life 2/doc: Difference between revisions
Jump to navigation
Jump to search
Note:Some of the examples given may lead to non-existent pages.
m (Undo revision 264315 by Mailmanmickey (talk)) Tag: Undo |
mNo edit summary |
||
Line 1: | Line 1: | ||
{{Documentation subpage}} | {{Documentation subpage}} | ||
==Usage== | == Usage == | ||
Delivers the icon and/or a link of the game that has this abreviation. Can also obtain the game color. | 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 {{tl2|new icon}}. | This template is based on {{tl2|new icon}}. | ||
===Parameters=== | === Parameters === | ||
* {{param|1}} - Optional: The representation, see the examples below. Can be set to: <code>1, 2, 3, 4, col, in, also, only, since, removed, not</code>. | * {{param|1}} - Optional: The representation, see the examples below. Can be set to: <code>1, 2, 3, 4, col, in, also, only, since, removed, not</code>. | ||
* {{param|suf}} - Optional: To link to a specific language, set this to the appropriate language suffix, e.g. <code>:es</code>, see {{tl2|lang}}. | * {{param|suf}} (Deprecated) - Optional: To link to a specific language, set this to the appropriate language suffix, e.g. <code>:es</code>, see {{tl2|lang}}. | ||
* {{param|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. | * {{param|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. | ||
* {{param|addtext}} - Optional: If {{param|1}} is set to <code>in, also, only, since, removed</code> or <code>not</code>, then the value of this parameter is inserted right after the game icon. Useful for multiple game icons. | * {{param|addtext}} - Optional: If {{param|1}} is set to <code>in, also, only, since, removed</code> or <code>not</code>, then the value of this parameter is inserted right after the game icon. Useful for multiple game icons. | ||
===Examples=== | === Examples === | ||
{{note|Some of the examples given may lead to non-existent pages.}} | {{note|Some of the examples given may lead to non-existent pages.}} | ||
{| class=wikitable | {| class=wikitable | ||
Line 29: | Line 29: | ||
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|4}} | | {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|4}} | ||
| → {{{{ROOTPAGENAME}}|4}} | | → {{{{ROOTPAGENAME}}|4}} | ||
|- | |- | ||
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|4|nt{{=}}0}} | | {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|4|nt{{=}}0}} |
Revision as of 09:11, 4 March 2023

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.
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
- {{{1}}} - Optional: The representation, see the examples below. Can be set to:
1, 2, 3, 4, col, in, also, only, since, removed, not
. - {{{suf}}} (Deprecated) - 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
ornot
, 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|1}}
|
→ Half-Life 2 |
{{half-Life 2|2}}
|
→ ![]() |
{{half-Life 2|3}}
|
→ Half-Life 2 |
{{half-Life 2|4}}
|
→ ![]() |
{{half-Life 2|4|nt=0}}
|
→ ![]() |
{{half-Life 2|4|nt=1}}
|
→ ![]() |
{{half-Life 2|col}}
|
→ #E6AC39 |
{{half-Life 2|in}}
|
→ (in ![]() |
{{half-Life 2|only}}
|
→ (only in ![]() |
{{half-Life 2|since}}
|
→ (in all games since ![]() |
{{half-Life 2|not}}
|
→ (not in ![]() |
{{half-Life 2|removed|suf=:ru}}
|
→ (removed since ![]() |
{{half-Life 2|also|suf=:de|addtext={{csgo|suf=:de}} {{l4d2|suf=:de}}}}
|
→ (also in ![]() ![]() ![]() |