Template:Artifact topicon/doc: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
 
(23 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Documentation subpage}}
<noinclude>{{Doc|0}}</noinclude>
{{translate}}
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.
<!-- Please place categories where indicated at the bottom of this page.) -->
 
== Usage ==
To add tooltip translations, edit the template. Some templates now support strings-based translation located in [[Template:Top icon/strings|Template:Top icon/strings subpage.]]
Add {{para|suf|:lang}} when calling it to have it link to the translated version of the page if possible.
 
== Parameters ==
{| class="standard-table plainlinks" style="width:100%"
! Parameters
! Description
|-
| style="background:#282828; padding-inline:.5em; text-align:center;" | {{param|nocat}}
| Prevents category being added to the page. Not all topicon templates will have this however.
|-
| style="background:#282828; padding-inline:.5em; text-align:center;" | {{param|desc}}<br>(experimental)
| Changes the descriptions to tell that this article is about a game, software, engines or documentation page for games/software. Default depends on the template itself (some are {{code|Games}} by default, while others are {{Code|WT}}), etc...<Br>This parameters only works on recently updated templates for now.<br>
<br> '''Available values:'''
* {{code|Games}} = {{Top icon/strings|Games|name=Example}}
* {{code|SW}} = {{Top icon/strings|SW|name=Example}}
* {{code|Doc}} = {{Top icon/strings|Doc|name=Example}}
* {{code|Engine}} = {{Top icon/strings|Engine|name=Example}}
* {{code|WT}} = {{Top icon/strings|WT|name=Example}}
|-
|}


The description will self-translate based on {{param|suf}} if possible, but this translation is limited at the moment.
<includeonly>{{sandbox other||
<includeonly>{{sandbox other||
<!-- Categories below this line, please -->
[[Category:Top icon templates]]
[[Category:Top icon templates]]
}}</includeonly>
}}</includeonly>

Latest revision as of 00:07, 20 June 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)
Edit-copy.png
This is a documentation subpage for Template:Artifact topicon.
Don't forget to purge the contents of the base page upon creating or editing this subpage.

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