Template:Infobox class: Difference between revisions

From TF2 Classic Wiki
Jump to navigation Jump to search
mNo edit summary
m (Testing something. May return it when done testing.)
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>
<includeonly>
{| class="infobox" width=200px
{| class="infobox" width=320px
|+
|+
! class="infobox-title" colspan="2" | {{#if: {{{title|}}} | {{{title|}}} | {{PAGENAME}}}}
! class="infobox-title" colspan="2" | {{{title|{{PAGENAME}}}}}
{{#ifexist: File:{{#if: {{{image|}}}|{{{image|}}}|{{PAGENAME}}}} RED.png |
{{#ifexist: File:{{{image|{{PAGENAME}}}}} RED.png |
{{!}}-
{{!}}-
{{!}} class="infobox-image" colspan="2" {{!}}
{{!}} class="infobox-image" colspan="2" {{!}}
{{Switcher
{{Switcher
|[[File:{{#if: {{{image|}}}|{{{image|}}}|{{PAGENAME}}}} RED.png|center|frameless|180px]]
|[[File:{{{image|{{PAGENAME}}}}} RED.png|center|frameless|256px]]
|RED
|RED
|[[File:{{#if: {{{image|}}}|{{{image|}}}|{{PAGENAME}}}} BLU.png|center|frameless|180px]]
|[[File:{{{image|{{PAGENAME}}}}} BLU.png|center|frameless|256px]]
|BLU
|BLU
|[[File:{{#if: {{{image|}}}|{{{image|}}}|{{PAGENAME}}}} GRN.png|center|frameless|180px]]
|[[File:{{{image|{{PAGENAME}}}}} GRN.png|center|frameless|256px]]
|GRN
|GRN
|[[File:{{#if: {{{image|}}}|{{{image|}}}|{{PAGENAME}}}} YLW.png|center|frameless|180px]]
|[[File:{{{image|{{PAGENAME}}}}} YLW.png|center|frameless|256px]]
|YLW}}|{{#ifexist: File:{{#if: {{{image|}}}|{{{image|}}}|{{PAGENAME}}}}.png |
|YLW}}|{{#ifexist: File:{{{image|{{PAGENAME}}}}}.png |
{{!}}-
{{!}}-
{{!}} class="infobox-image" colspan="2" {{!}}
{{!}} class="infobox-image" colspan="2" {{!}}
[[File:{{#if: {{{image|}}}|{{{image|}}}|{{PAGENAME}}}}.png|center|frameless|180px]]}}}}
[[File:{{{image|{{PAGENAME}}}}}.png|center|frameless|256px]]}}}}
|+
|+
! colspan="2" | Basic Information
! colspan="2" | Basic Information
{{#if: {{{class|}}} |
{{#if: {{{class|}}} |
{{!}}-
{{!}}-
{{!}} 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}}}%
}}
}}
|}
|}
[[Category:Classes]]
[[Category:{{{title|{{PAGENAME}}}}}]]
{{#if: {{{type|}}} | [[Category:{{{type|}}} classes]]}} </includeonly>
{{#if: {{{type|}}} | [[Category:{{{type|}}} classes]]}} </includeonly>
<noinclude> <templatedata>
<noinclude> <templatedata>

Latest revision as of 00:27, 27 June 2024

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