Template:Infobox class: Difference between revisions

From TF2 Classified Wiki
Jump to navigation Jump to search
if no title tag, use page title
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|}}} classes]]}}
{{#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.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
titletitle

Name of the class. (only use when it doesn't match page name)

Stringoptional
imageimage

Prefix for the images of the class. (only use when it doesn't match page name)

Fileoptional
classclass

Icon of the class.

Filesuggested
typetype

Type of the class.

Stringsuggested
healthhealth

Health of the class.

Numbersuggested
overhealedoverhealed

Health of the class, when overhealed.

Numbersuggested
speedspeed

Speed of the class.

Numbersuggested
nocategorynocategory

Disables categories.

Booleanoptional