Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Infobox class: Difference between revisions

Template page
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>