Template:Infobox class: Difference between revisions

From TF2 Classic Wiki
Jump to navigation Jump to search
(automatic categories)
(use template data)
Line 30: Line 30:
}}
}}
|}
|}
<includeonly>
<includeonly>
[[Category:Classes]]
[[Category:Classes]]
{{#if: {{{type|}}} | [[Category:{{{type|}}} classes]]}}
{{#if: {{{type|}}} | [[Category:{{{type|}}} classes]]}}
</includeonly>
</includeonly>
 
<noinclude> <templatedata>
<noinclude>
{
Example usage:
"params": {
<pre>
"title": {
{{Infobox class
"description": "Name of the class. (only use when it doesn't match page name)",
| title=Scout
"type": "string"
| image=Scout
},
| class=Leaderboard_class_scout
"image": {
| type=Offensive
"description": "Prefix for the images of the class. (only use when it doesn't match page name)",
| health=125
"type": "wiki-file-name"
| overhealed=125
},
| speed=133
"class": {
}}
"description": "Icon of the class.",
</pre>
"type": "wiki-file-name",
"suggested": true
},
"type": {
"description": "Type of the class.",
"type": "string",
"suggested": true
},
"health": {
"description": "Health of the class.",
"type": "number",
"suggested": true
},
"overhealed": {
"description": "Health of the class, when overhealed.",
"type": "number",
"suggested": true
},
"speed": {
"description": "Speed of the class.",
"type": "number",
"suggested": true
}
},
"description": "Infobox for class pages."
}
</templatedata>
[[Category:Infobox]]
[[Category:Infobox]]
</noinclude>
</noinclude>

Revision as of 16:26, 14 April 2022

Infobox class
Basic Information



Infobox for class pages.

Template parameters

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