Template:Half-Life 2/doc: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
(Added examples. First 5 should not use suf imo but this also doesn't look the best.) |
||
Line 7: | Line 7: | ||
===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: | * {{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|addtext}} - Optional: If {{param|1}} is set to <code>in</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=== | ||
Line 16: | Line 16: | ||
| → {{ {{ROOTPAGENAME}} }} | | → {{ {{ROOTPAGENAME}} }} | ||
|- | |- | ||
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|1 | | {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|1}} | ||
| → {{{{ROOTPAGENAME}}|1 | | → {{{{ROOTPAGENAME}}|1}} | ||
|- | |- | ||
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|2}} | | {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|2}} | ||
Line 24: | Line 24: | ||
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|3}} | | {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|3}} | ||
| → {{{{ROOTPAGENAME}}|3}} | | → {{{{ROOTPAGENAME}}|3}} | ||
|- | |||
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|4}} | |||
| → {{{{ROOTPAGENAME}}|4}} | |||
|- | |||
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|1|suf{{=}}:es}} | |||
| → {{{{ROOTPAGENAME}}|1|suf=:es}} ''(may not exist)'' | |||
|- | |- | ||
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|4|suf{{=}}:zh-cn}} | | {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|4|suf{{=}}:zh-cn}} | ||
| → {{{{ROOTPAGENAME}}|4|suf=:zh-cn}} | | → {{{{ROOTPAGENAME}}|4|suf=:zh-cn}} ''(may not exist)'' | ||
|- | |- | ||
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|col}} | | {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|col}} | ||
| → {{{{ROOTPAGENAME}}|col}} | | → {{{{ROOTPAGENAME}}|col}} | ||
|- | |||
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|in}} | |||
| → {{{{ROOTPAGENAME}}|in}} | |||
|- | |||
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|only}} | |||
| → {{{{ROOTPAGENAME}}|only}} | |||
|- | |- | ||
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|since}} | | {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|since}} | ||
| → {{{{ROOTPAGENAME}}|since}} | | → {{{{ROOTPAGENAME}}|since}} | ||
|- | |||
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|not}} | |||
| → {{{{ROOTPAGENAME}}|not}} | |||
|- | |- | ||
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|removed|suf{{=}}:ru}} | | {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|removed|suf{{=}}:ru}} |
Revision as of 12:24, 18 April 2022

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}}} - Optional: To link to a specific language, set this to the appropriate language suffix, e.g.
:es
, see {{lang}}. - {{{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|1|suf=:es}}
|
→ Half-Life 2 (may not exist) |
{{half-Life 2|4|suf=:zh-cn}}
|
→ ![]() |
{{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 ![]() ![]() ![]() |