Template:Infobox class: Difference between revisions
Jump to navigation
Jump to search
Technochips (talk | contribs) if no title tag, use page title |
Technochips (talk | contribs) added "nocategory" setting |
||
| Line 35: | Line 35: | ||
{{!}} Speed {{!!}} {{{speed}}}% | {{!}} Speed {{!!}} {{{speed}}}% | ||
}} | }} | ||
|} | |}{{#if: {{{nocategory|}}}|| | ||
[[Category:Classes]] | [[Category:Classes]] | ||
[[Category:{{{title|{{PAGENAME}}}}}]] | [[Category:{{{title|{{PAGENAME}}}}}]] | ||
{{#if: {{{type|}}} | [[Category:{{{type | {{#if: {{{type|}}} | [[Category:{{{type}}} classes]]}} | ||
{{#switch: {{{title|{{PAGENAME}}}}} | {{#switch: {{{title|{{PAGENAME}}}}} | ||
| Civilian = [[Category:Special classes]] | | Civilian = [[Category:Special classes]] | ||
| Line 52: | Line 52: | ||
| Sniper = [[Category:Regular classes]] | | Sniper = [[Category:Regular classes]] | ||
| Spy = [[Category:Regular classes]] | | Spy = [[Category:Regular classes]] | ||
}} | }}}} | ||
</includeonly> | </includeonly> | ||
<noinclude> <templatedata> | <noinclude> <templatedata> | ||
| Line 89: | Line 89: | ||
"type": "number", | "type": "number", | ||
"suggested": true | "suggested": true | ||
}, | |||
"nocategory": { | |||
"description": "Disables categories.", | |||
"type": "boolean" | |||
} | } | ||
}, | }, | ||
Revision as of 21:14, 10 March 2025
Infobox for class pages.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| title | title | Name of the class. (only use when it doesn't match page name) | String | optional |
| image | image | Prefix for the images of the class. (only use when it doesn't match page name) | File | optional |
| class | class | Icon of the class. | File | suggested |
| type | type | Type of the class. | String | suggested |
| health | health | Health of the class. | Number | suggested |
| overhealed | overhealed | Health of the class, when overhealed. | Number | suggested |
| speed | speed | Speed of the class. | Number | suggested |
| nocategory | nocategory | Disables categories. | Boolean | optional |