Template:Infobox class: Difference between revisions

From TF2 Classic Wiki
Jump to navigation Jump to search
(removing align=right; this should be automatic with the class)
(replaced tab with switcher template)
Line 6: Line 6:
{{!}}-
{{!}}-
{{!}} class="infobox-image" colspan="2" {{!}}
{{!}} class="infobox-image" colspan="2" {{!}}
<tabber>RED=[[File:{{#if: {{{image|}}}|{{{image|}}}|{{PAGENAME}}}} RED.png|center|frameless|180px]]
{{Switcher
|-|BLU=[[File:{{#if: {{{image|}}}|{{{image|}}}|{{PAGENAME}}}} BLU.png|center|frameless|180px]]
|[[File:{{#if: {{{image|}}}|{{{image|}}}|{{PAGENAME}}}} RED.png|center|frameless|180px]]
|-|GRN=[[File:{{#if: {{{image|}}}|{{{image|}}}|{{PAGENAME}}}} GRN.png|center|frameless|180px]]
|RED
|-|YLW=[[File:{{#if: {{{image|}}}|{{{image|}}}|{{PAGENAME}}}} YLW.png|center|frameless|180px]]
|[[File:{{#if: {{{image|}}}|{{{image|}}}|{{PAGENAME}}}} BLU.png|center|frameless|180px]]
</tabber>
|BLU
}}
|[[File:{{#if: {{{image|}}}|{{{image|}}}|{{PAGENAME}}}} GRN.png|center|frameless|180px]]
|GRN
|[[File:{{#if: {{{image|}}}|{{{image|}}}|{{PAGENAME}}}} YLW.png|center|frameless|180px]]
|YLW}}}}
|+
|+
! colspan="2" | Basic Information
! colspan="2" | Basic Information
Line 17: Line 20:
{{!}}-
{{!}}-
{{!}} Icon {{!!}} [[File:{{{class|}}}.png]]
{{!}} Icon {{!!}} [[File:{{{class|}}}.png]]
}}
}}{{#if: {{{type|}}} |
{{#if: {{{type|}}} |
{{!}}-
{{!}}-
{{!}} Type {{!!}} [[Classes#{{{type|}}}|{{{type|}}}]]
{{!}} Type {{!!}} [[Classes#{{{type|}}}|{{{type|}}}]]}}{{#if: {{{health|}}} |
}}
{{#if: {{{health|}}} |
{{!}}-
{{!}}-
{{!}} Health {{!!}} {{{health|}}} {{#if: {{{overhealed|}}} | ({{{overhealed|}}} with overheal)}}
{{!}} Health {{!!}} {{{health|}}} {{#if: {{{overhealed|}}} | ({{{overhealed|}}} with overheal)}}
}}
}}{{#if: {{{speed|}}} |
{{#if: {{{speed|}}} |
{{!}}-
{{!}}-
{{!}} Speed {{!!}} {{{speed|}}}%
{{!}} Speed {{!!}} {{{speed|}}}%
Line 74: Line 73:
</templatedata>
</templatedata>
[[Category:Infobox]]
[[Category:Infobox]]
{{infobox_class|image=Civilian}}
</noinclude>
</noinclude>

Revision as of 14:11, 25 May 2022

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
Infobox class
Civilian RED.png
Civilian BLU.png
Civilian GRN.png
Civilian YLW.png
Basic Information