Template:Software/doc
Don't forget to purge the contents of the base page upon creating or editing this subpage.
With the higher resolution icon available, these will benefits most 4K and Apple Retina display, and won't look blurry. See File:Icon-HL2.png.
Template:Half-Life 2), and instead create redirects for short name or abbreviation of a game name (Template:hl2).For certain templates (such as {{This is a}}), do not use short names or abbreviated template redirect instead of full game name, since it will add the page into wrong category (Category:Hl2 point entities instead of Category:Half-Life 2 point entities).
{{Software}} is the template that underlies the icon templates. It has 8 main parameters:
| Parameter | Description | Value & Previews |
|---|---|---|
{{{1}}}
|
The way the icon will be displayed. Displays the icon only when not specified. |
{{{1}}} ► |
{{{name}}}
|
Simply display the name. However this param is also used to add the abbreviation of the game for example (when you create/edit this template). |
Half-Life 2 |
{{{ico}}}
|
The name of the icon is written here, but only the name itself, without "File:" and square brackets. This same param is also used to display the icon you have specified when you create a new {{Software}} template. If the icon doesn't exist, it simply shows red link. |
Hl2 icon.png |
{{{ico size}}}
|
Width of the icon. Should be 16px for most icons, unless it's double, like |
N/A |
{{{col}}}
|
The color of the game. If it is not specified, just do not enter this parameter, the standard color will be used: #ADD8E6. It's highly recommended that you use brighter color for better readability with dark/black pages, but not too bright or over-saturated. |
#E6AC39 |
{{{link}}}
|
Link to the article, if not specified, the link will use the {{{name}}} parameter. Write without the brackets. Underscores and spaces are interchangeable. |
N/A |
{{{extlink}}}
|
External link, for example: https://developer.valvesoftware.com/ |
N/A |
{{{addtext}}}
|
Additional text that will be written immediately after the icon. It is mainly needed to add other icons.| addtext = {{{addtext|}}} in the icon templates! |
{{hl2|4|addtext=®}} ► |
{{{nt}}}
|
This parameter will be used in the {{{name<number>}}} parameter, some software templates may also have {{{name<text>}}}, such as {{iOS}} and {{Mac}}.
| nt = {{{nt|}}} part must be included on the icon templates for it to work! This parameters requires text to be displayed using {{{1}}} to use. |
{{Software}} also supports 3 more icons:
| Parameter | Description | Value & Previews |
|---|---|---|
{{{ico1}}} ~ {{{ico3}}}
|
The name of the icon is written here, but only the name itself, without "File:" and square brackets. | N/A |
{{{ico1 size}}} ~ {{{ico3 size}}}
|
Width of the icon. | N/A |
{{{ico1 name}}} ~ {{{ico3 name}}}
|
Name of the icon. | N/A |
{{{IcoEnable1}}} ~ {{{IcoEnable3}}}
|
Show/Hide the icon, default is yes. | N/A |
Result & Copy and Paste
In the end, you should get something like this:
You can also copy and paste the code above to create a new icon template, or to convert old template ({{New icon}}) to {{Software}} and update {{Software}} templates.
Translations
Translations are handled on the /strings page.
How To Use
This is how the use of the template in articles will look like:
| Code | Result |
|---|---|
{{portal2}}
|
|
{{portal2|1}}
|
Portal 2 |
{{portal2|2}}
|
|
{{portal2|3}}
|
Portal 2 |
{{portal2|3.1}}
|
Portal 2 |
{{portal2|4}}
|
|
{{portal2|4.1}}
|
|
{{portal2|ico}}
|
Icon-Portal2.png |
{{portal2|col}}
|
#23B1E5 |
{{portal2|name}}
|
Portal 2 |
{{portal2|in}}
|
(in |
{{portal2|only}}
|
(only in |
{{portal2|since}}
|
(in all games since |
{{portal2|not}}
|
(not in |
{{portal2|also|addtext= {{csgo}} {{l4d2}}}}
|
(also in |
(04 April 2022)
20260301001019
9.151 kilobytes
0.009151 megabytes