Template:Infobox class: Difference between revisions
Jump to navigation
Jump to search
Technochips (talk | contribs) mNo edit summary |
m (Testing something. May return it when done testing.) |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly> | <includeonly> | ||
{| class="infobox" width= | {| class="infobox" width=320px | ||
|+ | |+ | ||
! 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|256px]] | ||
|RED | |RED | ||
|[[File | |[[File:{{{image|{{PAGENAME}}}}} BLU.png|center|frameless|256px]] | ||
|BLU | |BLU | ||
|[[File | |[[File:{{{image|{{PAGENAME}}}}} GRN.png|center|frameless|256px]] | ||
|GRN | |GRN | ||
|[[File | |[[File:{{{image|{{PAGENAME}}}}} YLW.png|center|frameless|256px]] | ||
|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|256px]]}}}} | ||
|+ | |+ | ||
! 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}}}% | ||
}} | }} | ||
|} | |} | ||
[[Category:{{{title|{{PAGENAME}}}}}]] | [[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.
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 |