This article relates to the software/tool "Counter-Strike 2 Workshop Tools". Click here for more information.

Template:Cs2wt topicon: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Cleanup template code and added strings translation. Added description switch aswell.)
(acategory)
 
(3 intermediate revisions by one other user not shown)
Line 1: Line 1:
<noinclude>{{Cs2wt topicon|nocat=1}} {{doc|docpage=Template:Artifact topicon/doc}} <!-- Add categories to the /doc subpage, not here -->
{{Cs2wt topicon|nocat=1}}
</noinclude>
{{doc|docpage=Template:Artifact topicon/doc}}
 
<includeonly>
<includeonly>
<onlyinclude>{{Top icon
<onlyinclude>{{Top icon
| id = cs2_wt
| id = cs2_wt
Line 8: Line 10:


| description = {{Top icon/strings|{{#switch:{{{desc}}}{{{description}}}
| description = {{Top icon/strings|{{#switch:{{{desc}}}{{{description}}}
|#default|Games|games=Games
|Games|games=Games
|doc|Doc=Doc
|doc|Doc=Doc
|SW|sw|Software|software|tool|tools=SW
|#default|SW|sw|Software|software|tool|tools=SW
|WT|wt|workshop|Workshop=WT
|engine|Engine=Engine}}|name={{Cs2tools|name}}}} <!-- Description are now handled by Top icon strings subpage.  
|engine|Engine=Engine}}|name={{Cs2tools|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. -->
For game name, you can use templates such as {{hl2}} with "name" parameters aswell, and the game name also get translated automatically. -->
Line 16: Line 19:
}}{{#if:{{{nocat|}}}
}}{{#if:{{{nocat|}}}
|
|
| [[Category:Counter-Strike 2]] <!-- Don't forget to change this if you are creating a new top icon templates. -->
| {{ACategory|Counter-Strike 2}} <!-- Don't forget to change this if you are creating a new top icon templates. -->
}}</onlyinclude>
}}</onlyinclude>


</includeonly> <!-- Add categories to the /doc subpage, not here -->
</includeonly>

Latest revision as of 13:28, 30 July 2024

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