Template:Portal 2

From Valve Developer Community
(Redirected from Template:Portal2)
Jump to: navigation, search
Curly brackets white.pngTemplate Documentation
Icon-translate.png
View
Edit
Page history

Usage

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 {{Software}}. Document on how to create the icon templates can be found there.

Parameters

  • {{{1}}} – Optional: The representation, see the examples below. Can be set to: bold, 1, 1.bold, 2, 2.bold, 3, 3.1, 4, 4.1, col, in, also, only, since, removed, not;
  • {{{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.
  • {{{addtext}}} – Optional: If {{{1}}} is set to in, also, only, since, removed or 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 template name, followed by the word "icon" (example: File:Hl2 icon.png for {{hl2}}).

Translations

Some Translations are handled by the {{In text}} Template. Others (such as game title/software title, etc...) will use {{Autolang}}. {{{suf}}} parameters used for translations have been deprecated, but are currently being used in some pages for many reasons.

Examples

Note.pngNote:Some of the examples given may lead to non-existent pages.
{{Portal 2}} Portal 2
{{Portal 2|bold}} Portal 2
{{Portal 2|1}} Portal 2
{{Portal 2|1.bold}} Portal 2
{{Portal 2|2}} Portal 2 Portal 2
{{Portal 2|2.bold}} Portal 2 Portal 2
{{Portal 2|3}} Portal 2
{{Portal 2|3.1}} Portal 2
{{Portal 2|3.1.nolink}}
(Same as above, without links to the article.)
Portal 2
{{Portal 2|3.2}} Portal 2
{{Portal 2|4}} Portal 2 Portal 2
{{Portal 2|4.1}} Portal 2 Portal 2
{{Portal 2|4.2}} Portal 2 Portal 2
{{Portal 2|4|nt=0}} Portal 2 portal2
{{Portal 2|4|nt=1}} Portal 2 Portal 2
{{Portal 2|4|nt=2}} Portal 2 Portal 2
{{Portal 2|4|nt=3}} Portal 2 Portal 2
{{Portal 2|4|nt=4}} Portal 2 Portal 2
{{Portal 2|4|nt=hl2}}
(Custom name using text instead of number, not all templates have this however.
This example will only work with Half-Life 2 Half-Life 2.)
Portal 2 Portal 2
{{Portal 2|col}} → #23B1E5
{{Portal 2|in}} (in Portal 2)
{{Portal 2|only}} (only in Portal 2)
{{Portal 2|since}} (in all games since Portal 2)
{{Portal 2|not}} (not in Portal 2)
{{Portal 2|removed}} (removed since Portal 2)
{{Portal 2|also|addtext={{Csgo}} {{L4d2}}}} (also in Portal 2Counter-Strike: Global Offensive Left 4 Dead 2)