Template:Hammer
From Valve Developer Community
Jump to navigation
Jump to search
Hammer icon templates:
{{hammer3}} ▶ {{hammer}} ▶ {{hammer5}}
{{worldcraft}} • {{hammer4}}
Creates a link icon and/or link text to
Hammer. 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 {{Hammer}} into the desired page and specify the parameters described below to the right of the template name in the following format:
{{Hammer|parameter1=value|parameter2=value}}
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. | {{Hammer}}
|
|||||||||||||||||||||||||||||||||||||
{{{1}}}
|
The appearance of the text, displaying info such as "also in" and getting data from the template.
Avaliable values:
|
{{Hammer|1}}
|
Hammer | ||||||||||||||||||||||||||||||||||||
{{Hammer|2}}
|
|||||||||||||||||||||||||||||||||||||||
{{Hammer|3}}
|
Hammer | ||||||||||||||||||||||||||||||||||||||
{{Hammer|3.1}}
|
Hammer | ||||||||||||||||||||||||||||||||||||||
{{Hammer|4}}
|
|||||||||||||||||||||||||||||||||||||||
{{Hammer|4.1}}
|
|||||||||||||||||||||||||||||||||||||||
{{Hammer|in}}
|
(in | ||||||||||||||||||||||||||||||||||||||
{{Hammer|also}}
|
(also in | ||||||||||||||||||||||||||||||||||||||
{{Hammer|only}}
|
(only in | ||||||||||||||||||||||||||||||||||||||
{{Hammer|since}}
|
(in all games since | ||||||||||||||||||||||||||||||||||||||
{{Hammer|removed}}
|
(removed since | ||||||||||||||||||||||||||||||||||||||
{{Hammer|not}}
|
(not in | ||||||||||||||||||||||||||||||||||||||
{{Hammer|name}}
|
Hammer | ||||||||||||||||||||||||||||||||||||||
{{Hammer|link}}
|
Valve Hammer Editor | ||||||||||||||||||||||||||||||||||||||
{{Hammer|extlink}}
|
No external link | ||||||||||||||||||||||||||||||||||||||
{{Hammer|col}}
|
#6165AD | ||||||||||||||||||||||||||||||||||||||
{{Hammer|ico}}
|
Icon-Hammer 4.x.png | ||||||||||||||||||||||||||||||||||||||
{{Hammer|ico1}}
|
No icon 1 | ||||||||||||||||||||||||||||||||||||||
{{Hammer|ico2}}
|
No icon 2 | ||||||||||||||||||||||||||||||||||||||
{{Hammer|ico3}}
|
No icon 3 | ||||||||||||||||||||||||||||||||||||||
{{Hammer|ico1 name}}
|
No ico1 name | ||||||||||||||||||||||||||||||||||||||
{{Hammer|ico2 name}}
|
No ico2 name | ||||||||||||||||||||||||||||||||||||||
{{Hammer|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.
|
{{Hammer|also|addtext={{l4d}}{{csgo}}}}
|
(also in | ||||||||||||||||||||||||||||||||||||
{{{link}}}
|
If overwritten, the link will lead to another page on this wiki. | {{Hammer|link=SDK Docs}}
|
|||||||||||||||||||||||||||||||||||||
{{{nt}}}
|
Another name for this software, for example: for Hl2 template, using reg shows the registered trademark symbol.
| ||||||||||||||||||||||||||||||||||||||
{{Hammer|nt=Hammer Editor}}
|
|||||||||||||||||||||||||||||||||||||||
{{Hammer|nt=VHE}}
|
Components
- {{Software}} - the core of this template, without which it will not function.
- {{Software/strings}} - strings from the core template translated into other languages.
The above documentation is transcluded from Template:Half-Life 2/doc. (Edit | Page history)
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Hidden category: