Template:Infobox item: Difference between revisions

TheMilkMan (talk | contribs)
Added Charge-Up and Ability_Cooldown#Item_Cooldown links to the relevant icons
TheMilkMan (talk | contribs)
Removing hasPassive and hasActive booleans
Line 109: Line 109:
  | background-color: #80550F;}}" {{!}} {{{item_stat7|}}}}}
  | background-color: #80550F;}}" {{!}} {{{item_stat7|}}}}}
|-
|-
{{#ifeq:{{{has_passive1|}}}|true|
{{#if:{{{passive1_description|}}}|
! colspan={{#expr:4 - ({{#if:{{{passive1_chargeup|}}}|1|0}} + {{#if:{{{passive1_cooldown|}}}|1|0}}) }} class="passive-header" style="text-align:left; padding:2px 12px; {{
! colspan={{#expr:4 - ({{#if:{{{passive1_chargeup|}}}|1|0}} + {{#if:{{{passive1_cooldown|}}}|1|0}}) }} class="passive-header" style="text-align:left; padding:2px 12px; {{
#switch: {{{item_type|{{#invoke:ItemData|get_type|{{#var:item_key_or_en}}|raw=true}}}}}
#switch: {{{item_type|{{#invoke:ItemData|get_type|{{#var:item_key_or_en}}|raw=true}}}}}
Line 154: Line 154:
}}
}}
|-<!--start of passive2 section-->
|-<!--start of passive2 section-->
{{#ifeq:{{{has_passive2|}}}|true|
{{#if:{{{passive2_description|}}}|
! colspan={{#expr:4-{{#if:{{{passive2_cooldown|}}}|1|0}}}} class="passive-header" style="text-align:left; padding:2px 12px; {{
! colspan={{#expr:4-{{#if:{{{passive2_cooldown|}}}|1|0}}}} class="passive-header" style="text-align:left; padding:2px 12px; {{
#switch: {{{item_type|{{#invoke:ItemData|get_type|{{#var:item_key_or_en}}|raw=true}}}}}
#switch: {{{item_type|{{#invoke:ItemData|get_type|{{#var:item_key_or_en}}|raw=true}}}}}
Line 192: Line 192:
}}
}}
|-<!--start of active 1 section-->
|-<!--start of active 1 section-->
{{#ifeq:{{{has_active1|}}}|true|
{{#if:{{{active1_description|}}}|
! colspan={{#expr:4-{{#if:{{{active1_cooldown|}}}|1|0}}}} class="active-header" style="text-align:left; padding:2px 12px; {{
! colspan={{#expr:4-{{#if:{{{active1_cooldown|}}}|1|0}}}} class="active-header" style="text-align:left; padding:2px 12px; {{
#switch: {{{item_type|{{#invoke:ItemData|get_type|{{#var:item_key_or_en}}|raw=true}}}}}
#switch: {{{item_type|{{#invoke:ItemData|get_type|{{#var:item_key_or_en}}|raw=true}}}}}