Template:Infobox/WeaponEx: Difference between revisions

From Inkipedia, the Splatoon wiki
m (troubleshoot brackets)
m (will show subheaders if level and alt1 are present (for the hero and grizzco infoboxes))
Line 58: Line 58:
{{InfoboxProperty|color={{{color}}}|Durability|{{#if:{{{durability|}}}|{{Infobox/Meter|color={{{color}}}|{{{durability}}}}}}}|style=line-height: 100%;}}
{{InfoboxProperty|color={{{color}}}|Durability|{{#if:{{{durability|}}}|{{Infobox/Meter|color={{{color}}}|{{{durability}}}}}}}|style=line-height: 100%;}}
{{InfoboxProperty|color={{{color}}}|Handling|{{#if:{{{handling|}}}|{{Infobox/Meter|color={{{color}}}|{{{handling}}}}}}}|style=line-height: 100%;}}
{{InfoboxProperty|color={{{color}}}|Handling|{{#if:{{{handling|}}}|{{Infobox/Meter|color={{{color}}}|{{{handling}}}}}}}|style=line-height: 100%;}}
{{#ifeq:{{{category|}}}|Main|
{{#ifeq:{{{category|}}}|Main|{{#if:{{{level}}}|
{{!}}-
{{!}}-
!style="background-color: rgba({{{color}}}, 0.5); text-align: center;" colspan="2"|}}| Acquirement
!style="background-color: rgba({{{color}}}, 0.5); text-align: center;" colspan="2"|}}}}| Acquirement
{{InfoboxProperty|color={{{color}}}|{{color-link|Level|black}}|{{#if:{{{level|}}}|{{{level}}}}}}}
{{InfoboxProperty|color={{{color}}}|{{color-link|Level|black}}|{{#if:{{{level|}}}|{{{level}}}}}}}
{{InfoboxProperty|color={{{color}}}|{{color-link|Cash|black|Cost}}|{{#if:{{{cost|}}}|{{Cost|{{#switch:{{{game|}}}
{{InfoboxProperty|color={{{color}}}|{{color-link|Cash|black|Cost}}|{{#if:{{{cost|}}}|{{Cost|{{#switch:{{{game|}}}
Line 81: Line 81:
{{#ifeq:{{{category|}}}|Main|
{{#ifeq:{{{category|}}}|Main|
{{!}}-
{{!}}-
!style="background-color: rgba({{{color}}}, 0.5); text-align: center;" colspan="2"|}}| {{#ifeq:{{{category|}}}|Main|Specifications|}}
!style="background-color: rgba({{{color}}}, 0.5); text-align: center;" colspan="2"|}}| Specifications
{{InfoboxProperty|color={{{color}}}|[[Mobility#Weight_classes|<span style="color:black;">Weight</span>]]|{{#if:{{{weight|}}}|{{{weight}}}}}}}
{{InfoboxProperty|color={{{color}}}|[[Mobility#Weight_classes|<span style="color:black;">Weight</span>]]|{{#if:{{{weight|}}}|{{{weight}}}}}}}
{{InfoboxProperty|color={{{color}}}|Base&nbsp;{{color-link|damage|black}}|{{#if:{{{base|}}}|{{{base}}}}}}}
{{InfoboxProperty|color={{{color}}}|Base&nbsp;{{color-link|damage|black}}|{{#if:{{{base|}}}|{{{base}}}}}}}
Line 89: Line 89:
{{InfoboxProperty|color={{{color}}}|Rate of fire|{{{rate|}}}}}
{{InfoboxProperty|color={{{color}}}|Rate of fire|{{{rate|}}}}}
{{InfoboxProperty|color={{{color}}}|Muzzle&nbsp;velocity|{{{velocity|}}}}}
{{InfoboxProperty|color={{{color}}}|Muzzle&nbsp;velocity|{{{velocity|}}}}}
{{#ifeq:{{{category}}}|Main|{{#if:{{{alt1}}}|
{{!}}-
{{!}}-
! colspan="2"{{!}}
! <hr>|}}|}}
{{#ifeq:{{{category}}}|Main|<hr>|}}
{{InfoboxProperty|color={{{color}}}|{{color-link|Main Power Up|black|MPU}} effect|{{#if:{{{mpueffect|}}}|{{{mpueffect}}}}}}}
{{InfoboxProperty|color={{{color}}}|{{color-link|Main Power Up|black|MPU}} effect|{{#if:{{{mpueffect|}}}|{{{mpueffect}}}}}}}
{{InfoboxProperty|color={{{color}}}|{{color-link|Sub Power Up|black|SPU}} effect|{{#if:{{{subpueffect|}}}|{{{subpueffect}}}}}}}
{{InfoboxProperty|color={{{color}}}|{{color-link|Sub Power Up|black|SPU}} effect|{{#if:{{{subpueffect|}}}|{{{subpueffect}}}}}}}

Revision as of 13:09, 6 February 2022

Displays an infobox for a weapon. This is a chained template intended to be used only by Infobox/Weapon.