Category:Top icon templates: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
No edit summary
Line 2: Line 2:
List of top icon templates.
List of top icon templates.


== Copy + Paste / Create a new icon template here ==
{{Expand|title=Click "Expand" to reveal the code|
{{Codeblock|<nowiki><noinclude>{{Hl2 topicon|nocat=1}} {{doc|docpage=Template:Artifact topicon/doc}} <!-- Add categories to the /doc subpage, not here -->
</noinclude>
<includeonly>
<onlyinclude>{{Top icon
| id = <moddir name>
| wikilink = <link to a page, example: Half-Life 2>
| imagename = <icon name>.png
| description = {{Top icon/strings|{{#switch:{{{desc}}}{{{description}}}
|#default|Games|games=Games
|doc|Doc=Doc
|SW|sw|Software|software|tool|tools=SW
|engine|Engine=Engine}}|name={{game name|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|}}}
|
| [[Category:Game name here]] <!-- 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 -->
</nowiki>}}
}}
[[Category:Templates]]
[[Category:Templates]]

Revision as of 00:35, 12 January 2024

Todo: Update others top icon templates that still uses the old suf translations to newer one that use {{Autolang}} and have support for nocat (which would prevent adding pages to category if this template is used).

List of top icon templates.

Copy + Paste / Create a new icon template here

Click "Expand" to reveal the code
<noinclude>{{Hl2 topicon|nocat=1}} {{doc|docpage=Template:Artifact topicon/doc}} <!-- Add categories to the /doc subpage, not here --> </noinclude> <includeonly> <onlyinclude>{{Top icon | id = <moddir name> | wikilink = <link to a page, example: Half-Life 2> | imagename = <icon name>.png | description = {{Top icon/strings|{{#switch:{{{desc}}}{{{description}}} |#default|Games|games=Games |doc|Doc=Doc |SW|sw|Software|software|tool|tools=SW |engine|Engine=Engine}}|name={{game name|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|}}} | | [[Category:Game name here]] <!-- 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 -->

Pages in category "Top icon templates"

The following 75 pages are in this category, out of 75 total.