Difference between revisions of "Template:Pf2/doc"

From Valve Developer Community
Jump to: navigation, search
m (Replaced content with "{{delete|useless}}")
(Tag: Replaced)
 
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}}}}}}
 
| &rarr; {{ {{ROOTPAGENAME}} }}
 
|-
 
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|1}}
 
| &rarr; {{{{ROOTPAGENAME}}|1}}
 
|-
 
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|2}}
 
| &rarr; {{{{ROOTPAGENAME}}|2}}
 
|-
 
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|3}}
 
| &rarr; {{{{ROOTPAGENAME}}|3}}
 
|-
 
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|3.1}}
 
| &rarr; {{{{ROOTPAGENAME}}|3.1}}
 
|-
 
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|3.1.nolink}}<br><small>(Same as above, without links to the article.)</small>
 
| &rarr; {{{{ROOTPAGENAME}}|3.1.nolink}}
 
|-
 
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|3.2}}
 
| &rarr; {{{{ROOTPAGENAME}}|3.2}}
 
|-
 
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|4}}
 
| &rarr; {{{{ROOTPAGENAME}}|4}}
 
|-
 
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|4.1}}
 
| &rarr; {{{{ROOTPAGENAME}}|4.1}}
 
|-
 
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|4.2}}
 
| &rarr; {{{{ROOTPAGENAME}}|4.2}}
 
|-
 
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|4|nt{{=}}0}}
 
| &rarr; {{{{ROOTPAGENAME}}|4|nt=0}}
 
|-
 
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|4|nt{{=}}1}}
 
| &rarr; {{{{ROOTPAGENAME}}|4|nt=1}}
 
|-
 
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|4|nt{{=}}2}}
 
| &rarr; {{{{ROOTPAGENAME}}|4|nt=2}}
 
|-
 
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|4|nt{{=}}3}}
 
| &rarr; {{{{ROOTPAGENAME}}|4|nt=3}}
 
|-
 
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|4|nt{{=}}4}}
 
| &rarr; {{{{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>
 
| &rarr; {{{{ROOTPAGENAME}}|4|nt=hl2}}
 
|-
 
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|col}}
 
| &rarr; {{{{ROOTPAGENAME}}|col}}
 
|-
 
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|in}}
 
| &rarr; {{{{ROOTPAGENAME}}|in}}
 
|-
 
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|only}}
 
| &rarr; {{{{ROOTPAGENAME}}|only}}
 
|-
 
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|since}}
 
| &rarr; {{{{ROOTPAGENAME}}|since}}
 
|-
 
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|not}}
 
| &rarr; {{{{ROOTPAGENAME}}|not}}
 
|-
 
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|removed}}
 
| &rarr; {{{{ROOTPAGENAME}}|removed}}
 
|-
 
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}|also|addtext{{=}}{{tlf|{{#ifeq:{{FULLPAGENAME}}|Template:Csgo|portal2|csgo}}}} {{tlf|{{#ifeq:{{FULLPAGENAME}}|Template:L4d2|portal2|l4d2}}}}}}
 
| &rarr; {{{{ROOTPAGENAME}}|also|addtext={{#ifeq:{{FULLPAGENAME}}|Template:Csgo|{{portal2}}|{{csgo}}}} {{#ifeq:{{FULLPAGENAME}}|Template:L4d2|{{portal2}}|{{l4d2}}}}}}
 
|}
 
 
 
{{Doc/Sandbox other|
 
[[Category:Software icons]]
 
}}
 

Latest revision as of 09:42, 10 October 2023

Warning icon.png
This template has been marked as a candidate for speedy deletion for the following reason:
useless
If you object to this decision, then please discuss why hereIf this page doesn't meet the criteria for speedy deletion, then please remove this notice, but do not remove it from pages that you have created yourself
Administrators - Remember to check if anything links here and the page history (last edit) before deleting.