This template (and its redirect) is  Deprecated. Its use is not recommended and its functionality may be compromised. You can help our editors by replacing or deleting this template on the Pages that use this template. Once no more pages use this template, it should be Marked for deletion. Additional notes: Use #switch parser function instead. Example {{#switch: {{language}}<br>| #default = English<br>| ja = 日本語<br>| zh-tw = 中文(台灣)<br>‎}}

Template:Tf2 topicon: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (fixed ifexist)
No edit summary
Line 1: Line 1:
{{Top icon
<onlyinclude>{{#switch:{{{1|}}}
|imagename = Icon_TF2_full.png
 
|wikilink = {{#ifexist: Team Fortress 2{{{suf|}}} | Team Fortress 2{{{suf|}}} | Team Fortress 2 }}
| {{Top icon
|description = {{#switch: {{{suf}}}<!--
| imagename = Icon_TF2_full.png
-->| :es = Este artículo se relaciona al juego "Team Fortress 2". Haga clic aquí para más información.<!--
| wikilink = {{#ifexist: Team Fortress 2{{{suf|}}} | Team Fortress 2{{{suf|}}} | Team Fortress 2 }}
-->| This article relates to the game "Team Fortress 2." Click here for more information. }}
| description = {{Autolang
|id = game_tf2
| This article relates to the game "Team Fortress 2." Click here for more information.
}}<noinclude>
| es = Este artículo se relaciona al juego "Team Fortress 2". Haga clic aquí para más información. }}
{{documentation|Template:Artifact topicon/doc}}
| id = game_tf2
<!-- Add categories to the /doc subpage, not here -->
  }}
</noinclude>
 
| docs = {{Top icon
| imagename = icon-tf2_docs.png
| wikilink = {{#ifexist: Team Fortress 2{{{suf|}}} | Team Fortress 2{{{suf|}}} | Team Fortress 2 }}
| description = {{Autolang
| This article relates to the game "Team Fortress 2." Click here for more information. }}
| id = game_tf2
  }}
 
}}</onlyinclude>
{{TF2 topicon|docs}}
{{Doc|docpage = Template:Artifact topicon/doc}}

Revision as of 10:01, 11 May 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] [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