Template:Pre-Fortress 2: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
<noinclude>{{Doc/subpage}}</noinclude>
{{Doc}}
== Usage ==
<includeonly><onlyinclude>{{Software
{{tocright}}
| {{{1|}}}
Delivers the icon and/or a link of the game that has this abbreviation. Can also obtain the game color.
| ico = Icon-HL2.png
 
| ico size = 18px
This template is based on {{tl2|Software}}. Document on how to create the icon templates can be found there.
| link = {{{link|Pre fortress 2}}}
 
| name = {{Autolang
=== Parameters ===
| Half-Life 2
* {{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}};
| eo = Duonvivo 2
* {{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.
| ko = 하프라이프 2
* {{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.
| zh = 半衰期2
 
}}
=== Icons ===
| name0 = {{Autolang
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.
| HL2
 
| eo = Dv2
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:Icon-HL2.png|Icon-HL2.png]]}}).
}}
 
| namehl2 = {{Autolang
=== Translations ===
| HL2
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.
| eo = Dv2
 
}}
=== Examples ===
| namereg = Half-Life® 2<!-- same as above but registered trademark. -->
{{Note|Some of the examples given may lead to non-existent pages.}}
| col = #FFCC14
{| class="wikitable"
| addtext-front={{{addtext-front|}}}
|-
| addtext={{{addtext|}}}
| {{tlc|{{lcfirst:{{ROOTPAGENAME}}}}}}
| nt={{{nt|}}}
| &rarr; {{ {{ROOTPAGENAME}} }}
}}</onlyinclude></includeonly>
|-
| {{tlc|{{lcfirst

Revision as of 08:46, 9 October 2023

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)
Curly brackets white.pngTemplate Documentation [view] [create]
Icon-translate.png Available doc translations
Info.png
The Template:Pre-Fortress 2/doc documentation page does not exist.
English documentation will be displayed instead, which you can translate using Google Translate (or similar software). If there is nothing after this message, most likely the documentation does not exist even in English.
Template:Pre-Fortress 2/doc