Template:Inline icon link core
- In the articles, replace all regular links created by IILC (for example,
{{cs2|1}}or{{cs2|3}}) with interwiki links on English pages (for example,[[Counter-Strike 2]]) or automatic links on translations of English pages (for example,{{L|Counter-Strike 2}}) - In templates, use the new
template-only-linkparameter (for example, replace{{cs2|1}}or{{cs2|3}}with{{cs2|template-only-link}}) - Replace all
{{gmod|also}},{{csgo|in}}, and others with{{also| {{gmod}} }},{{in| {{csgo}} }}, and so on. Duplicating templates (especially their code) in other templates makes no sense when the benefit is almost negligible. - After completing the work above, begin removing
addtextandnt. - Merge {{Advanced link}} with IILC.
To discuss these changes, see Template talk:Inline icon link core#About Simplifying the Template
To view pages that use deprecated parameters, see the following categories: Pages using deprecated IILC parameter (1), Pages using deprecated IILC parameter (3) and Pages using deprecated IILC parameters (in, also, only, since, removed)
To view templates that use IILC, see this page: Valve Developer Community:List of Templates that use IILC
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).
Usage
This template is usually written in a column. To use it, insert {{Inline icon link core}} on the desired page and specify the parameters described below under the template name in the following format:
| Parameter | Description | Value & Previews |
|---|---|---|
{{{1}}}
|
The way the icon will be displayed. Displays the icon only when not specified. |
{{hl2}} ► |
{{{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). | |
{{{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 {{Inline icon link core}} 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 |
{{{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. |
Getting data and links for templates:
| Parameter | Description | Value & Previews |
|---|---|---|
template-only-data-ico
|
Icon name as plain text. | {{hl2|template-only-data-ico}} ► hl2 icon.png |
template-only-data-name
|
Display name as plain text. | {{hl2|template-only-data-name}} ► Half-Life 2 |
template-only-data-extlink
|
External link as plain text. | {{win11|template-only-data-extlink}} ► https://en.wikipedia.org/wiki/Microsoft_Windows |
template-only-data-link
|
Interwiki link as plain text. | {{hl2|template-only-data-link}} ► Half-Life 2 |
template-only-extlink
|
External link. | {{win11|template-only-extlink}} ► Windows |
template-only-link
|
Interwiki link. | {{hl2|template-only-link}} ► Half-Life 2 |
Inline icon link core 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 |
Copy and Paste
The code for the inline icon link must be consistent, so copy the code below, paste it into your template, and replace the desired values.
Translations
The translation of Inline icon link core is handled via the strings subpage.
See also
- {{Advanced link}}