Template:Infobox class: Difference between revisions
Jump to navigation
Jump to search
Technochips (talk | contribs) mNo edit summary |
Technochips (talk | contribs) m optimization attempt? |
||
| Line 3: | Line 3: | ||
|+ | |+ | ||
! class="infobox-title" colspan="2" | {{{title|{{PAGENAME}}}}} | ! class="infobox-title" colspan="2" | {{{title|{{PAGENAME}}}}} | ||
{{#ifexist: File | {{#ifexist: File:{{{image|{{PAGENAME}}}}} RED.png | | ||
{{!}}- | {{!}}- | ||
{{!}} class="infobox-image" colspan="2" {{!}} | {{!}} class="infobox-image" colspan="2" {{!}} | ||
{{Switcher | {{Switcher | ||
|[[File | |[[File:{{{image|{{PAGENAME}}}}} RED.png|center|frameless|180px]] | ||
|RED | |RED | ||
|[[File | |[[File:{{{image|{{PAGENAME}}}}} BLU.png|center|frameless|180px]] | ||
|BLU | |BLU | ||
|[[File | |[[File:{{{image|{{PAGENAME}}}}} GRN.png|center|frameless|180px]] | ||
|GRN | |GRN | ||
|[[File | |[[File:{{{image|{{PAGENAME}}}}} YLW.png|center|frameless|180px]] | ||
|YLW}}|{{#ifexist: File | |YLW}}|{{#ifexist: File:{{{image|{{PAGENAME}}}}}.png | | ||
{{!}}- | {{!}}- | ||
{{!}} class="infobox-image" colspan="2" {{!}} | {{!}} class="infobox-image" colspan="2" {{!}} | ||
[[File | [[File:{{{image|{{PAGENAME}}}}}.png|center|frameless|180px]]}}}} | ||
|+ | |+ | ||
! colspan="2" | Basic Information | ! colspan="2" | Basic Information | ||
{{#if: {{{class|}}} | | {{#if: {{{class|}}} | | ||
{{!}}- | {{!}}- | ||
{{!}} Icon {{!!}} [[File:{{{class | {{!}} Icon {{!!}} [[File:{{{class}}}.png]] | ||
}} | }} | ||
{{#if: {{{type|}}} | | {{#if: {{{type|}}} | | ||
{{!}}- | {{!}}- | ||
{{!}} Type {{!!}} [[Classes#{{{type | {{!}} Type {{!!}} [[Classes#{{{type}}}|{{{type}}}]]}} | ||
{{#if: {{{health|}}} | | {{#if: {{{health|}}} | | ||
{{!}}- | {{!}}- | ||
{{!}} Health {{!!}} {{{health | {{!}} Health {{!!}} {{{health}}} {{#if: {{{overhealed|}}} | ({{{overhealed}}} with overheal)}} | ||
}} | }} | ||
{{#if: {{{speed|}}} | | {{#if: {{{speed|}}} | | ||
{{!}}- | {{!}}- | ||
{{!}} Speed {{!!}} {{{speed | {{!}} Speed {{!!}} {{{speed}}}% | ||
}} | }} | ||
|} | |} | ||
Revision as of 16:51, 28 July 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 |