Template:Software: Difference between revisions
m (Now to get the color of the game, you need to enter "p=col". also added a new option) |
mNo edit summary |
||
Line 1: | Line 1: | ||
<onlyinclude><includeonly>{{#switch: {{{p}}} | <onlyinclude><includeonly>{{#switch:{{{p}}} | ||
|#default=[[File:{{{ico}}}|link={{{name}}}{{{suf|}}}|{{{name}}}]] | |#default=[[File:{{{ico}}}|link={{{name}}}{{{suf|}}}|{{{name}}}]] | ||
|1=[[{{{name}}}{{{suf|}}}|<span title="{{{name}}}">{{{name}}}</span>]] | |1=[[{{{name}}}{{{suf|}}}|<span title="{{{name}}}">{{{name}}}</span>]] |
Revision as of 13:23, 4 April 2022


Please follow the format on this subpage(s) to add translations.
Approximate status of translation:















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.
{{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}}} ► Click "Expand" to see more
Enter "col" (without quotes) to get the text color of the game/software.
Enter "in", "also", "only", "since", "removed" or "not" (without quotes) to get the icon displayed along with additional text, like "(also in ![]() ![]() |
{{{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).![]() |
![]() |
{{{bold}}} | Same as above, with bold text. | ![]() |
{{{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. |
![]() |
{{{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. |
![]() |
{{{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.![]() |
{{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}}.
![]() |
![]() |
{{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:
(04 April 2022)
20220404132308
0.832 kilobytes
0.000832 megabytes
Editors can experiment in this template's sandbox (edit) and testcases (create) pages.