Template:Software link core

From Valve Developer Community
Jump to navigation Jump to search
Warning icon.png
This template is used on approximately 10,000 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.
Icon-Important.pngImportant: Colored links have been removed, but some old code remains for backward compatibility. Please do not bring back colored links just because they looked better in some places. Links to games, tools, and other software are clearly not what users should be focusing on when reading about a shader or something else.
Todo: Replace the old name with the current name in all child templates (as in Template:Half-Life 2).
Todo: Remove name, 3.1 and 4.1 from the wiki pages (darn, manually).
English (en)Deutsch (de)Esperanto (eo)Español (es)Français (fr)Suomi (fi)Hrvatski (hr)Magyar (hu)Italiano (it)日本語 (ja)한국어 (ko)Nederlands (nl)Polski (pl)Português (pt)Português do Brasil (pt-br)Русский (ru)Slovenčina (sk)Svenska (sv)Türkçe (tr)Українська (uk)Tiếng Việt (vi)中文 (zh)中文(臺灣) (zh-tw)
Template Documentation



Icon-translate.pngDocumentation language
...
Tip.pngTip: This template now supports icons with 32px or larger, this meant that users can upload a large icon (128px for example) directly, without having to downscale the icon to 16px, as the MediaWiki software will do this automatically.
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.
Warning.pngWarning: When creating icon templates, the page title must include the full name of the game (example: 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.

{{hl2}}Half-Life 2 (without specifying numbers)
{{hl2|1}}Half-Life 2
{{hl2|2}}Half-Life 2 Half-Life 2
{{hl2|3}}Half-Life 2
{{hl2|4}}Half-Life 2 Half-Life 2
{{hl2|imageonly}}Half-Life 2
Enter "in", "also", "only", "since", "removed" or "not" (without quotes) to get the icon displayed along with additional text, like "(also in Half-Life 2)".

Note.pngNote: However, the {{{1}}} parameter cannot be touched, it should always be "{{{1}}}" in the icon templates!
{{{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).
Note.pngNote: it is strongly recommended to write the abbreviation of the game in the parameter {{{name0}}}, {{{name1}}}, etc... or {{{nameiPadOS}}} (if supported, in templates such as {{iOS}}.
{{{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 Half-Life: Source, in which case it should be 32px, or more. Experimentation may be necessary for non-square icons.
Tip.pngTip: The software icon should be scaled to be in-line with the text size (using {{{ico size}}}). While this is nominally "16 pixels tall", high-DPI displays (particulary such as Apple Retina display, or 4K+ displays) will benefit from the file being higher resolutions; 32 or 64 pixels tall is generally sufficient, although any resolution can be used (MediaWiki will downscale the image automatically and only deliver the necessary resolution).
N/A
{{{link}}} Link to the article, if not specified, the link will use the {{{name}}} parameter.
Write without the brackets. Underscores and spaces are interchangeable.
Tip.pngTip: For Wikipedia links, prepend "WP:" (short for Wikipedia) to the page name (ex: WP:Gabe Newell, or Wikipedia:Gabe Newell) For external links, use {{{extlink}}}.
N/A
{{{extlink}}} External link, for example: https://developer.valvesoftware.com/
Icon-Important.pngImportant: This param can not be used with {{{link}}}!
N/A
{{{addtext}}} Additional text that will be written immediately after the icon. It is mainly needed to add other icons.
Note.pngNote: Make sure to include | addtext = {{{addtext|}}} in the icon templates!
{{hl2|4|addtext=®}}Half-Life 2 Half-Life 2®
{{{nt}}} This parameter will be used in the {{{name<number>}}} parameter, some software templates may also have {{{name<text>}}}, such as {{iOS}} and {{Mac}}.
Note.pngNote: Make sure that the | 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.
Half-Life 2 HL2

{{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:

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.  
  10.  
  11.  
  12.  
  13.  
  14.  
  15.  
  16.  
  17.  
  18.  
  19.  
  20.  
{{Documentation|docpage = Template:Half-Life 2/doc}} <includeonly> <onlyinclude>{{Software link core | {{{1|}}} | ico = Icon-Portal2.png | ico size = 16px | link = Portal 2 | name = {{#switch:{{language}} | #default = Portal 2 | ko = 포탈 2 | zh = 传送门2 | zh-tw = 傳送門 2 }} | name0 = portal2 | addtext = {{{addtext|}}} | nt = {{{nt|}}} }}</onlyinclude> </includeonly>

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}} Portal 2
{{portal2|1}} Portal 2
{{portal2|2}} Portal 2 Portal 2
{{portal2|3}} Portal 2
{{portal2|4}} Portal 2 Portal 2
{{portal2|in}} (in Portal 2)
{{portal2|only}} (only in Portal 2)
{{portal2|since}} (in all games since Portal 2)
{{portal2|not}} (not in Portal 2)
{{portal2|also|addtext=&nbsp;{{csgo}} {{l4d2}}}} (also in Portal 2 Counter-Strike: Global Offensive Left 4 Dead 2)
Template:Software link core
Logo-template.png
Summary
Aids in the creation of icon templates
Type
Metatemplate
Contributors
N/A
Creation date
04/04/2022
(04 April 2022)
Notes
N/A
Subpages
Documentation
Preload
N/A
Sandbox
Strings
Testcases
N/A
Other
N/A
Revision information
Latest editor
THE OWL
Last edited
12/06/2026
20260612052532
Revision size
4323 bytes
4.323 kilobytes
0.004323 megabytes
Technical information
Page identifier
46330
Contains translations
Yes
Uses parser functions?
Yes
Uses variables?
Yes
Icon-translate.png
This template uses a strings subpage
Please follow the format on this subpage(s) to add translations.
Number of strings:6
Approximate status of translation:English (en) 100% Deutsch (de) 100% Español (es) 66.67% Esperanto (eo) 100% Français (fr) 100% Hrvatski (hr) 100% 日本語 (ja) 16.67% 한국어 (ko) 16.67% Ქართული (ka) 16.67% Português do Brasil (pt-br) 100% Русский (ru) 100% Slovenčina (sk) 100% Tiếng Việt (vi) 100% 中文 (zh) 100%