Category:Top icon templates: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
(→Copy + Paste / Create a new top icon template here: - Updated example.) |
||
(13 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{Todo|Update others top icon templates that still uses the old {{code|suf}} translations to newer one that use {{t|Autolang}} and have support for {{code|nocat}} (which would prevent adding pages to category if this template is used). | {{Todo|Update others top icon templates that still uses the old {{code|suf}} translations to newer one that use {{t|Autolang}} and have support for {{code|nocat}} (which would prevent adding pages to category if this template is used).}} | ||
[[Category:Templates]] | List of top icon templates. See the section below for instructions on creating a new top icon template. | ||
== Copy + Paste / Create a new top icon template here == | |||
Simply create a new page, then paste the following contents: | |||
{{Expand|title=Click "Expand" to reveal the code| | |||
{{Codeblock|<nowiki><noinclude>{{ {{FULLPAGENAME}} |nocat=1}} <!-- Used for preview. --> {{doc|docpage=Template:Artifact topicon/doc}} <!-- Add categories to the /doc subpage, not here --> | |||
</noinclude> | |||
<includeonly> | |||
<onlyinclude>{{Top icon | |||
| id = <short game name/abbreviation, moddir or executable 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 | |||
|WT|wt|workshop|Workshop=WT | |||
|engine|Engine=Engine}}|name={{<!--TEMPLATE 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|}}} | |||
| | |||
| {{ACategory|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>}} | |||
}} | |||
After that, change the game name and icon, then click "Save page". You can also use the template above to update the existing topicon. | |||
[[Category:Templates]][[Category:Icons]] |
Latest revision as of 00:04, 20 June 2025
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. See the section below for instructions on creating a new top icon template.
Copy + Paste / Create a new top icon template here
Simply create a new page, then paste the following contents:
After that, change the game name and icon, then click "Save page". You can also use the template above to update the existing topicon.
Pages in category "Top icon templates"
The following 75 pages are in this category, out of 75 total.