Template:Infobox class: Difference between revisions

From TF2 Classified Wiki
Jump to navigation Jump to search
H0rr0rH0g (talk | contribs)
m Testing something. May return it when done testing.
Ryo567 (talk | contribs)
added /es
 
(25 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<includeonly>
{| class="infobox" width=320px
{| class="infobox" width=320px
|+
|+
! class="infobox-title" colspan="2" | {{{title|{{PAGENAME}}}}}
! class="infobox-title" colspan="2" | {{{title|{{PAGENAME}}}}}
{{#ifexist: File:{{{image|{{PAGENAME}}}}} RED.png |
{{#ifexist: File:{{{image|{{PAGENAME}}}}}_red.png |
{{!}}-
{{!}}-
{{!}} class="infobox-image" colspan="2" {{!}}
{{!}} class="infobox-image" colspan="2" {{!}}
{{Switcher
{{Switcher
|[[File:{{{image|{{PAGENAME}}}}} RED.png|center|frameless|256px]]
|[[File:{{{image|{{PAGENAME}}}}}_red.png|center|frameless|256px]]
|RED
|RED
|[[File:{{{image|{{PAGENAME}}}}} BLU.png|center|frameless|256px]]
|[[File:{{{image|{{PAGENAME}}}}}_blue.png|center|frameless|256px]]
|BLU
|BLU
|[[File:{{{image|{{PAGENAME}}}}} GRN.png|center|frameless|256px]]
|[[File:{{{image|{{PAGENAME}}}}}_yellow.png|center|frameless|256px]]
|YLW
|[[File:{{{image|{{PAGENAME}}}}}_green.png|center|frameless|256px]]
|GRN
|GRN
|[[File:{{{image|{{PAGENAME}}}}} YLW.png|center|frameless|256px]]
|[[File:{{{image|{{PAGENAME}}}}}_global.png|center|frameless|256px]]
|YLW}}|{{#ifexist: File:{{{image|{{PAGENAME}}}}}.png |
|Global}}|{{#ifexist: File:{{{image|{{PAGENAME}}}}}.png |
{{!}}-
{{!}}-
{{!}} class="infobox-image" colspan="2" {{!}}
{{!}} class="infobox-image" colspan="2" {{!}}
[[File:{{{image|{{PAGENAME}}}}}.png|center|frameless|256px]]}}}}
[[File:{{{image|{{PAGENAME}}}}}.png|center|frameless|256px]]}}}}
|+
|+
! colspan="2" | Basic Information
! colspan="2" | {{Lang
| en = Basic Information
| es = Información básica
| fr = Informations de base
| zh-hans = 基本信息
}}
{{#if: {{{class|}}} |
{{#if: {{{class|}}} |
{{!}}-
{{!}}-
{{!}} Icon {{!!}} [[File:{{{class}}}.png]]
{{!}} {{Lang
| en = Icon
| es = Icono
| fr = Icône
| zh-hans = 图标
}} {{!!}} [[File:{{{class}}}.png]]
}}
}}
{{#if: {{{type|}}} |
{{#if: {{{type|}}} |
{{!}}-
{{!}}-
{{!}} Type {{!!}} [[Classes#{{{type}}}|{{{type}}}]]}}
{{!}} {{Lang
| en = Type
| es = Tipo
| fr = Type
| zh-hans = 类型
}} {{!!}} {{ #switch: {{{type}}}
| Offensive = {{Lang
| en = [[Classes#Offense|Offensive]]
| es = [[Classes/es#Ataque|Ataque]]
| fr = [[Classes/fr#Attaque|Offensif]]
| zh-hans = [[Classes/zh-hans#Offense|进攻型]]
}}
| Defensive = {{Lang
| en = [[Classes#Defense|Defensive]]
| es = [[Classes/es#Defensa|Defensa]]
| fr = [[Classes/fr#Défense|Défensif]]
| zh-hans = [[Classes/zh-hans#Defense|防守型]]
}}
| Support = {{Lang
| en = [[Classes#Support|Support]]
| es = [[Classes/es#Apoyo|Apoyo]]
| fr = [[Classes/fr#Support|Support]]
| zh-hans = [[Classes/zh-hans#Support|支援型]]
}}
| Special = {{Lang
| en = [[Classes#Special|Special]]
| es = [[Classes/es#Especial|Especial]]
| fr = [[Classes/fr#Spécial|Spécial]]
| zh-hans = [[Classes/zh-hans#Special|特殊兵种]]
}}
}}
}}
{{#if: {{{health|}}} |
{{#if: {{{health|}}} |
{{!}}-
{{!}}-
{{!}} Health {{!!}} {{{health}}} {{#if: {{{overhealed|}}} | ({{{overhealed}}} with overheal)}}
{{!}} {{Lang
| en = Health
| es = Salud
| fr = Santé
| zh-hans = 生命值
}} {{!!}} {{{health}}} {{#if: {{{overhealed|}}} | ({{{overhealed}}} {{Lang
| en = with overheal
| es = con exceso de curación
| fr = avec overheal
| zh-hans = 超量治疗
}})}}
}}
}}
{{#if: {{{speed|}}} |
{{#if: {{{speed|}}} |
{{!}}-
{{!}}-
{{!}} Speed {{!!}} {{{speed}}}%
{{!}} {{Lang
| en = Speed
| es = Velocidad
| fr = Vitesse
| zh-hans = 速度
}} {{!!}} {{{speed}}}%
}}
}}
|}
|}
[[Category:{{{title|{{PAGENAME}}}}}]]
<includeonly>
{{#if: {{{type|}}} | [[Category:{{{type|}}} classes]]}} </includeonly>
{{#if: {{{nocategory|{{NAMESPACE}}}}}||[[Category:Classes{{#ifeq:{{PAGELANGUAGE}}|en||/{{PAGELANGUAGE}}}}]]
{{#if: {{{type|}}}|[[Category:{{{type}}} classes{{#ifeq:{{PAGELANGUAGE}}|en||/{{PAGELANGUAGE}}}}]]}}}}</includeonly>
<noinclude> <templatedata>
<noinclude> <templatedata>
{
{
Line 73: Line 131:
"type": "number",
"type": "number",
"suggested": true
"suggested": true
},
"nocategory": {
"description": "Disables categories.",
"type": "boolean"
}
}
},
},
Line 78: Line 140:
}
}
</templatedata>
</templatedata>
[[Category:Infobox]]
[[Category:Infobox templates]]
</noinclude>
</noinclude>

Latest revision as of 21:33, 12 April 2026

Infobox class
Basic Information



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