This article relates to the game "Half-Life 2". Click here for more information.

Template:Hl2 topicon: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (fixed ifexist)
No edit summary
 
(9 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{Top icon
{{ {{FULLPAGENAME}} |nocat=1}} <!-- Used for preview. -->
|imagename = Icon_HL2_full.png
 
|wikilink = {{#ifexist: Half-Life 2{{{suf|}}} | Half-Life 2{{{suf|}}} | Half-Life 2 }}
{{doc|docpage=Template:Artifact topicon/doc}} <!-- Add categories to the /doc subpage, not here -->
|description = {{#switch: {{{suf}}}<!--
<includeonly>
-->| :es = Este artículo se relaciona al juego "Half-Life 2". Haga clic aquí para más información.<!--
 
-->| This article relates to the game "Half-Life 2." Click here for more information. }}
<onlyinclude>{{Top icon
|id = game_hl2
| id = hl2
}}<noinclude>
| wikilink = Half-Life 2
{{documentation|Template:Artifact topicon/doc}}
| imagename = hl2 icon.png
<!-- Add categories to the /doc subpage, not here -->
 
</noinclude>
| description = {{Top icon/strings|{{#switch:{{{desc}}}{{{description}}}
|#default|Games|games=Games
|doc|Doc=Doc
|SW|sw|Software|software|tool|tools=SW
|WT|wt|workshop|Workshop=WT
|engine|Engine=Engine}}|name={{hl2|name}}}} <!-- Description are now handled by Top icon strings subpage.
For game name, you can use templates such as {{hl2}} with "name" parameters aswell, and the game name also get translated automatically. -->
 
}}{{#if:{{{nocat|}}}
|
| {{ACategory|Half-Life 2}} <!-- Don't forget to change this if you are creating a new top icon templates. -->
}}</onlyinclude>
 
</includeonly> <!-- Add categories to the /doc subpage, not here -->

Latest revision as of 00:55, 31 May 2025

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] [edit]
Icon-translate.png Available doc translations
View
Page history

Adds a game/tool/software icon to the upper-right corner of the article, this will also add a category based off game name (example: Category:Half-Life 2). Hovering the icon for more information.

To add tooltip translations, edit the template. Some templates now support strings-based translation located in Template:Top icon/strings subpage.

Parameters