Difference between revisions of "Template:Hero Ability"

From Dungeon Defenders 2 Wiki
Jump to: navigation, search
 
(14 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#set: lcElement = {{lc:{{{Element}}}}}}}
 
 
 
{| border="1" cellpadding="1" cellspacing="0" class="floatright" width="250"
 
{| border="1" cellpadding="1" cellspacing="0" class="floatright" width="250"
 
|-
 
|-
Line 25: Line 23:
 
|''Damage Type:''  
 
|''Damage Type:''  
 
| style="text-align: right;" |
 
| style="text-align: right;" |
{{#switch: {{{lcElement}}}}
+
{{#switch: {{lc:{{{Element}}}}}
 
   | magical = [[Magical]]
 
   | magical = [[Magical]]
 
   | physical = [[Physical]]
 
   | physical = [[Physical]]
Line 33: Line 31:
 
   | storm = [[Elements#Storm|Magical Storm]]
 
   | storm = [[Elements#Storm|Magical Storm]]
 
   | frost = [[Elements#Frost|Magical Frost]]
 
   | frost = [[Elements#Frost|Magical Frost]]
   | #default = {{{Element}}}  
+
  | earth = [[Elements#Earth|Magical Earth]]
 +
   | #default = {{{Element}}} <!-- {{{Element}}} can be replaced with {{ucfirst:{{{Element}}}}} when there is any situation where the damage type doesn't fit in the list above  -->
 
}}
 
}}
 
|-
 
|-
Line 49: Line 48:
 
|}
 
|}
 
|}
 
|}
 +
{{{Overview}}}
 
__NOTOC__
 
__NOTOC__
 
{{{Overview}}}
 
  
 
<noinclude>[[Category:Templates/Visual]]{{Documentation}}</noinclude>
 
<noinclude>[[Category:Templates/Visual]]{{Documentation}}</noinclude>

Latest revision as of 18:31, 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.