Difference between revisions of "Template:Hero Ability"

From Dungeon Defenders 2 Wiki
Jump to: navigation, search
(Damage Type: Adding a trans background, no padding and margin and the code executes only if element exists. Testing br after each if condition)
Line 22: Line 22:
 
|-
 
|-
 
|''Damage Type:''
 
|''Damage Type:''
| style="text-align: right;" |
+
| style="text-align: right; background-color: transparent; padding: 0; margin: 0;" |{{{Element}}} <br/>
{{#ifeq: {{lc:{{{Element}}}}} | magical | [[Magical]] }}
+
{{#if: {{{Element|}}} |
{{#ifeq: {{lc:{{{Element}}}}} | physical | [[Physical]] }}
+
  {{#ifeq: {{lc:{{{Element}}}}} | magical | [[Magical]] }}<br />
{{#ifeq: {{lc:{{{Element}}}}} | poison | [[Elements#Poison| Magical Poison]]}}
+
  {{#ifeq: {{lc:{{{Element}}}}} | physical | [[Physical]] }}<br />
{{#ifeq: {{lc:{{{Element}}}}} | fire | [[Elements#Fire|Magical Fire]]}}
+
  {{#ifeq: {{lc:{{{Element}}}}} | poison | [[Elements#Poison| Magical Poison]]}}<br />
{{#ifeq: {{lc:{{{Element}}}}} | water | [[Elements#Water|Magical Water]]}}
+
  {{#ifeq: {{lc:{{{Element}}}}} | fire | [[Elements#Fire|Magical Fire]]}}<br />
{{#ifeq: {{lc:{{{Element}}}}} | storm | [[Elements#Storm|Magical Storm]]}}
+
  {{#ifeq: {{lc:{{{Element}}}}} | water | [[Elements#Water|Magical Water]]}}<br />
{{#ifeq: {{lc:{{{Element}}}}} | frost | [[Elements#Frost|Magical Frost]]}}
+
  {{#ifeq: {{lc:{{{Element}}}}} | storm | [[Elements#Storm|Magical Storm]]}}<br />
 +
  {{#ifeq: {{lc:{{{Element}}}}} | frost | [[Elements#Frost|Magical Frost]]}}<br />
 +
}}
 
|-
 
|-
 
|''Damage Scalar:''
 
|''Damage Scalar:''

Revision as of 13:55, 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.