|
|
Line 1: |
Line 1: |
− | <noinclude>{{Doc/subpage}}</noinclude>
| + | {{delete|useless}} |
− | == Usage ==
| |
− | {{tocright}}
| |
− | Delivers the icon and/or a link of the game that has this abbreviation. Can also obtain the game color.
| |
− | | |
− | This template is based on {{tl2|Software}}. Document on how to create the icon templates can be found there.
| |
− | | |
− | === Parameters ===
| |
− | * {{Param}} – Optional: The representation, see the examples below. Can be set to: {{Code|1}}, {{Code|2}}, {{Code|3}}, {{Code|3.1}}, {{Code|4}}, {{Code|4.1}}, {{Code|col}}, {{Code|in}}, {{Code|also}}, {{Code|only}}, {{Code|since}}, {{Code|removed}}, {{Code|not}};
| |
− | * {{Param|nt}} – Optional: This option allows you to select a custom game and software name if it is specified in the template. 0 is most often a game abbreviation. You can click on "Edit" to view the available game/software names. Support both text and numbers, aswell as spacing between text/numbers.
| |
− | * {{Param|addtext}} – Optional: If {{Param}} is set to {{Code|in}}, {{Code|also}}, {{Code|only}}, {{Code|since}}, {{Code|removed}} or {{Code|not}}, then the value of this parameter is inserted right after the game icon. Useful for multiple game icons.
| |
− | | |
− | === Icons ===
| |
− | This template now natively supports icons with larger than 16px. The full-res icon (or 32px and higher) will not be sent to client automatically unless the user had a 4K+ or Apple Retina displays, which benefits the most.
| |
− | | |
− | For uploading new icons, it is recommended (but not required) that the icon filename should be kept consistent with the {{code|Icon-}} prefix at the beginning (example: {{code|[[:File:IMG-0113.png|File:icon-hl2.png]]}}).
| |
− | | |
− | === Translations ===
| |
− | Some Translations are handled by the {{tl2|In text}} Template. Others (such as game title/software title, etc...) will use {{tl2|Autolang}}. {{Param|suf}} parameters used for translations have been deprecated, but are currently being used in some pages for many reasons.
| |
− | | |
− | === Examples ===
| |
− | {{Note|Some of the examples given may lead to non-existent pages.}}
| |
− | {| class="wikitable"
| |
− | |-
| |
− | | {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}}}
| |
− | | → {{ {{ROOTPAGENAME}} }}
| |
− | |-
| |
− | | {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|1}}
| |
− | | → {{{{ROOTPAGENAME}}|1}}
| |
− | |-
| |
− | | {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|2}}
| |
− | | → {{{{ROOTPAGENAME}}|2}}
| |
− | |-
| |
− | | {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|3}}
| |
− | | → {{{{ROOTPAGENAME}}|3}}
| |
− | |-
| |
− | | {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|3.1}}
| |
− | | → {{{{ROOTPAGENAME}}|3.1}}
| |
− | |-
| |
− | | {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|3.1.nolink}}<br><small>(Same as above, without links to the article.)</small>
| |
− | | → {{{{ROOTPAGENAME}}|3.1.nolink}}
| |
− | |-
| |
− | | {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|3.2}}
| |
− | | → {{{{ROOTPAGENAME}}|3.2}}
| |
− | |-
| |
− | | {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|4}}
| |
− | | → {{{{ROOTPAGENAME}}|4}}
| |
− | |-
| |
− | | {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|4.1}}
| |
− | | → {{{{ROOTPAGENAME}}|4.1}}
| |
− | |-
| |
− | | {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|4.2}}
| |
− | | → {{{{ROOTPAGENAME}}|4.2}}
| |
− | |-
| |
− | | {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|4|nt{{=}}0}}
| |
− | | → {{{{ROOTPAGENAME}}|4|nt=0}}
| |
− | |-
| |
− | | {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|4|nt{{=}}1}}
| |
− | | → {{{{ROOTPAGENAME}}|4|nt=1}}
| |
− | |-
| |
− | | {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|4|nt{{=}}2}}
| |
− | | → {{{{ROOTPAGENAME}}|4|nt=2}}
| |
− | |-
| |
− | | {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|4|nt{{=}}3}}
| |
− | | → {{{{ROOTPAGENAME}}|4|nt=3}}
| |
− | |-
| |
− | | {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|4|nt{{=}}4}}
| |
− | | → {{{{ROOTPAGENAME}}|4|nt=4}}
| |
− | |-
| |
− | | {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|4|nt{{=}}hl2}}<br><small>(Custom name using text instead of number, not all template have this however. <br>This example will only work with {{hl2|4}}.)</small>
| |
− | | → {{{{ROOTPAGENAME}}|4|nt=hl2}}
| |
− | |-
| |
− | | {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|col}}
| |
− | | → {{{{ROOTPAGENAME}}|col}}
| |
− | |-
| |
− | | {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|in}}
| |
− | | → {{{{ROOTPAGENAME}}|in}}
| |
− | |-
| |
− | | {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|only}}
| |
− | | → {{{{ROOTPAGENAME}}|only}}
| |
− | |-
| |
− | | {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|since}}
| |
− | | → {{{{ROOTPAGENAME}}|since}}
| |
− | |-
| |
− | | {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|not}}
| |
− | | → {{{{ROOTPAGENAME}}|not}}
| |
− | |-
| |
− | | {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|removed}}
| |
− | | → {{{{ROOTPAGENAME}}|removed}}
| |
− | |-
| |
− | | {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|also|addtext{{=}}{{tlf|{{#ifeq:{{FULLPAGENAME}}|Template:Csgo|portal2|csgo}}}} {{tlf|{{#ifeq:{{FULLPAGENAME}}|Template:L4d2|portal2|l4d2}}}}}}
| |
− | | → {{{{ROOTPAGENAME}}|also|addtext={{#ifeq:{{FULLPAGENAME}}|Template:Csgo|{{portal2}}|{{csgo}}}} {{#ifeq:{{FULLPAGENAME}}|Template:L4d2|{{portal2}}|{{l4d2}}}}}}
| |
− | |}
| |
− | | |
− | {{Doc/Sandbox other|
| |
− | [[Category:Software icons]]
| |
− | }} | |