Template:Infobox class: Difference between revisions

From TF2 Classified Wiki
Jump to navigation Jump to search
VivaRomania (talk | contribs)
mNo edit summary
VivaRomania (talk | contribs)
m French translations, some Google translate, others like "with overheal" being guessed at.
Line 19: Line 19:
[[File:{{{image|{{PAGENAME}}}}}.png|center|frameless|256px]]}}}}
[[File:{{{image|{{PAGENAME}}}}}.png|center|frameless|256px]]}}}}
|+
|+
! colspan="2" | Basic Information
! colspan="2" | {{Lang
| en = Basic Information
| fr = Informations de base
}}
{{#if: {{{class|}}} |
{{#if: {{{class|}}} |
{{!}}-
{{!}}-
{{!}} Icon {{!!}} [[File:{{{class}}}.png]]
{{!}} {{Lang
| en = Icon  
| fr = Icône
}} {{!!}} [[File:{{{class}}}.png]]
}}
}}
{{#if: {{{type|}}} |
{{#if: {{{type|}}} |
{{!}}-
{{!}}-
{{!}} Type {{!!}} [[Classes#{{{type}}}|{{{type}}}]]}}
{{!}} {{Lang
| en = Type
| fr = Type
}} {{!!}} [[Classes#{{{type}}}|{{{type}}}]]}}
{{#if: {{{health|}}} |
{{#if: {{{health|}}} |
{{!}}-
{{!}}-
{{!}} Health {{!!}} {{{health}}} {{#if: {{{overhealed|}}} | ({{{overhealed}}} with overheal)}}
{{!}} {{Lang
| en = Health
| fr = Santé
}} {{!!}} {{{health}}} {{#if: {{{overhealed|}}} | ({{{overhealed}}} {{Lang
| en = with overheal
| fr = avec overheal
}} )}}
}}
}}
{{#if: {{{speed|}}} |
{{#if: {{{speed|}}} |
{{!}}-
{{!}}-
{{!}} Speed {{!!}} {{{speed}}}%
{{!}} {{Lang
| en = Speed
| fr = Vitesse
}} {{!!}} {{{speed}}}%
}}
}}
|}{{#if: {{{nocategory|{{NAMESPACE}}}}}||
|}
{{#if: {{{nocategory|{{NAMESPACE}}}}}||
[[Category:Classes{{#ifeq:{{PAGELANGUAGE}}|en||/{{PAGELANGUAGE}}}}]]
[[Category:Classes{{#ifeq:{{PAGELANGUAGE}}|en||/{{PAGELANGUAGE}}}}]]
[[Category:{{{title|{{PAGENAME}}}}}{{#ifeq:{{PAGELANGUAGE}}|en||/{{PAGELANGUAGE}}}}]]
[[Category:{{{title|{{PAGENAME}}}}}{{#ifeq:{{PAGELANGUAGE}}|en||/{{PAGELANGUAGE}}}}]]

Revision as of 22:58, 25 June 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