Template:Infobox class: Difference between revisions
Jump to navigation
Jump to search
Technochips (talk | contribs) (removing align=right; this should be automatic with the class) |
Technochips (talk | contribs) (replaced tab with switcher template) |
||
Line 6: | Line 6: | ||
{{!}}- | {{!}}- | ||
{{!}} class="infobox-image" colspan="2" {{!}} | {{!}} class="infobox-image" colspan="2" {{!}} | ||
{{Switcher | |||
| | |[[File:{{#if: {{{image|}}}|{{{image|}}}|{{PAGENAME}}}} RED.png|center|frameless|180px]] | ||
| | |RED | ||
| | |[[File:{{#if: {{{image|}}}|{{{image|}}}|{{PAGENAME}}}} BLU.png|center|frameless|180px]] | ||
|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.
Parameter | Description | Type | Status | |
---|---|---|---|---|
title | title | Name of the class. (only use when it doesn't match page name) | String | optional |
image | image | Prefix for the images of the class. (only use when it doesn't match page name) | File | optional |
class | class | Icon of the class. | File | suggested |
type | type | Type of the class. | String | suggested |
health | health | Health of the class. | Number | suggested |
overhealed | overhealed | Health of the class, when overhealed. | Number | suggested |
speed | speed | Speed of the class. | Number | suggested |
Infobox class | |
---|---|
Basic Information |