Template:Half-Life 2/doc
Jump to navigation
Jump to search
Important:The template should not be used just because it looks "pretty" compared to a regular link.
This documentation subpage is used on many pages and changes may be widely noticed.
Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage.
Consider discussing changes on the talk page before implementing them.
Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage.
Consider discussing changes on the talk page before implementing them.
Creates a link icon and/or link text to
Half-Life 2. Also provides the ability to use raw template data for other purposes.
Usage
This template is usually written in a single line without spaces(?).
To use it, insert {{Half-Life 2}} into the desired page and specify the parameters described below to the right of the template name in the following format:
Here is a list of the most suitable places:
- The beginning of an article about the software linked to by this template (for example, PUNT);
- Tables with a list of software (such as the list of games released on Source or the Level Design category);
- Discussion page;
- User page.
- In regular link ("
1" text appearance) or icon-only mode in a in-line list of several games (e.g. saying something is (only in
))
| Parameter | Description | Example | Preview | |||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| No Parameters | Creates an icon with a link to the game. | {{Half-Life 2}}
|
||||||||||||||||||||||||||||||||||||||||
{{{1}}}
|
The appearance of the text, displaying info such as "also in" and getting data from the template.
Avaliable values:
|
{{Half-Life 2|bold}}
|
Half-Life 2 | |||||||||||||||||||||||||||||||||||||||
{{Half-Life 2|1}}
|
Half-Life 2 | |||||||||||||||||||||||||||||||||||||||||
{{Half-Life 2|1.bold}}
|
Half-Life 2 | |||||||||||||||||||||||||||||||||||||||||
{{Half-Life 2|2}}
|
||||||||||||||||||||||||||||||||||||||||||
{{Half-Life 2|2.bold}}
|
||||||||||||||||||||||||||||||||||||||||||
{{Half-Life 2|3}}
|
Half-Life 2 | |||||||||||||||||||||||||||||||||||||||||
{{Half-Life 2|3.1}}
|
Half-Life 2 | |||||||||||||||||||||||||||||||||||||||||
{{Half-Life 2|3.1.nolink}}
|
Half-Life 2 | |||||||||||||||||||||||||||||||||||||||||
{{Half-Life 2|3.2}}
|
Half-Life 2 | |||||||||||||||||||||||||||||||||||||||||
{{Half-Life 2|3}}
|
||||||||||||||||||||||||||||||||||||||||||
{{Half-Life 2|4.1}}
|
||||||||||||||||||||||||||||||||||||||||||
{{Half-Life 2|4.2}}
|
||||||||||||||||||||||||||||||||||||||||||
{{Half-Life 2|in}}
|
(in | |||||||||||||||||||||||||||||||||||||||||
{{Half-Life 2|also}}
|
(also in | |||||||||||||||||||||||||||||||||||||||||
{{Half-Life 2|only}}
|
(only in | |||||||||||||||||||||||||||||||||||||||||
{{Half-Life 2|since}}
|
(in all games since | |||||||||||||||||||||||||||||||||||||||||
{{Half-Life 2|removed}}
|
(removed since | |||||||||||||||||||||||||||||||||||||||||
{{Half-Life 2|not}}
|
(not in | |||||||||||||||||||||||||||||||||||||||||
{{Half-Life 2|name}}
|
Half-Life 2 | |||||||||||||||||||||||||||||||||||||||||
{{Half-Life 2|link}}
|
Half-Life 2 | |||||||||||||||||||||||||||||||||||||||||
{{Half-Life 2|extlink}}
|
No external link | |||||||||||||||||||||||||||||||||||||||||
{{Half-Life 2|col}}
|
#E6AC39 | |||||||||||||||||||||||||||||||||||||||||
{{Half-Life 2|ico}}
|
Hl2 icon.png | |||||||||||||||||||||||||||||||||||||||||
{{Half-Life 2|ico1}}
|
No icon 1 | |||||||||||||||||||||||||||||||||||||||||
{{Half-Life 2|ico2}}
|
No icon 2 | |||||||||||||||||||||||||||||||||||||||||
{{Half-Life 2|ico3}}
|
No icon 3 | |||||||||||||||||||||||||||||||||||||||||
{{Half-Life 2|ico1 name}}
|
No ico1 name | |||||||||||||||||||||||||||||||||||||||||
{{Half-Life 2|ico2 name}}
|
No ico2 name | |||||||||||||||||||||||||||||||||||||||||
{{Half-Life 2|ico2 name}}
|
No ico3 name | |||||||||||||||||||||||||||||||||||||||||
{{{addtext}}}
|
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.
|
{{Half-Life 2|also|addtext={{l4d}}{{csgo}}}}
|
(also in | |||||||||||||||||||||||||||||||||||||||
{{{link}}}
|
If overwritten, the link will lead to another page on this wiki. | {{Half-Life 2|link=SDK Docs}}
|
Components
- {{Software}} - the core of this template, without which it will not function.
- {{Software/strings}} - strings from the core template translated into other languages.