Difference between revisions of "Template:Hero Ability"

From Dungeon Defenders 2 Wiki
Jump to: navigation, search
(Making {{{Element}}} the default option and removing if)
Line 22: Line 22:
 
|-
 
|-
 
|''Damage Type:''  
 
|''Damage Type:''  
| style="text-align: right;" | {{{Element}}} <br/>
+
| style="text-align: right;" |
{{#if: {{{Element|}}} |
+
{{#switch: {{lc:{{{Element}}}}}
  {{#switch: {{lc:{{{Element}}}}}
+
  | magical = [[Magical]]
      | magical = [[Magical]]
+
  | physical = [[Physical]]
      | physical = [[Physical]]
+
  | poison = [[Elements#Poison|Magical Poison]]
      | poison = [[Elements#Poison|Magical Poison]]
+
  | fire = [[Elements#Fire|Magical Fire]]
      | fire = [[Elements#Fire|Magical Fire]]
+
  | water = [[Elements#Water|Magical Water]]
      | water = [[Elements#Water|Magical Water]]
+
  | storm = [[Elements#Storm|Magical Storm]]
      | storm = [[Elements#Storm|Magical Storm]]
+
  | frost = [[Elements#Frost|Magical Frost]]
      | frost = [[Elements#Frost|Magical Frost]]
+
  | #default = {{{Element}}}  
      | {{{Element}}} <br/>
 
  }}
 
 
}}
 
}}
 
|-
 
|-

Revision as of 14:44, 14 December 2024

{{{Name}}}
[[File:{{{Icon}}}|256px]]
{{{Description}}}
Ability Statistics
Hero: [[{{{Hero}}}]]
Mana Cost: {{{Mana}}}
Base Recharge: {{{ISpeed}}}
Damage Type:

{{{Element}}}

Damage Scalar: {{{Damage}}}
Status Effect: {{{Status}}}


{{{Overview}}}

Template documentation follows
Note: the template above may sometimes be partially or fully invisible.
Visit Template:Hero_Ability/doc to edit this documentation. (How does this work?)
Description
This template will apply constant formatting for each Hero Ability. This Template is a Master Template, and will require sub data templates for each data element.
Syntax
Type Template:T on the article at the location of the table.