Difference between revisions of "Template:Hero Defense"

From Dungeon Defenders 2 Wiki
Jump to: navigation, search
(Adding capital letter to make the redirect work)
 
(55 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
+
<includeonly>
 
+
{| border="1" cellpadding="1" cellspacing="0" class="floatright" width="250"
 
 
<includeonly>{| border="1" cellpadding="1" cellspacing="0" class="floatright" width="250"
 
 
|-
 
|-
 
| style="text-align: center;" |'''{{{Name}}}'''
 
| style="text-align: center;" |'''{{{Name}}}'''
 
|-
 
|-
| style="text-align: center;" |[[File:{{{Icon}}}]]
+
| style="text-align: center;" |[[File:{{{Icon}}}|256px]]
 
|-
 
|-
 
|{{{Description}}}
 
|{{{Description}}}
Line 45: Line 43:
 
{{!}} style="text-align: right;" {{!}}{{{Trigger}}}}} {{#if:{{{Element|}}}|<br />
 
{{!}} style="text-align: right;" {{!}}{{{Trigger}}}}} {{#if:{{{Element|}}}|<br />
 
{{!}}-
 
{{!}}-
{{!}}''Damage Type:''  
+
{{!}}''Damage Type:''
 
{{!}} style="text-align: right;" {{!}}
 
{{!}} style="text-align: right;" {{!}}
{{#if: {{{Element}}} |
+
{{#switch: {{lc:{{{Element}}}}}
{{#ifeq: {{{Element}}} | magical | [[Magical]] }}
+
  | magical = [[Magical]]
{{#ifeq: {{{Element}}} | poison | [[Elements#Poison|Magical Poison]] }}
+
  | physical = [[Physical]]
{{#ifeq: {{{Element}}} | water | [[Elements#Water|Magical Water]] }}
+
  | poison = [[Elements#Poison|Magical Poison]]
{{#ifeq: {{{Element}}} | fire | [[Elements#Fire|Magical Fire]] }}
+
  | fire = [[Elements#Fire|Magical Fire]]
{{#ifeq: {{{Element}}} | storm | [[Elements#Storm|Magical Storm]] }}
+
  | water = [[Elements#Water|Magical Water]]
{{#ifeq: {{{Element}}} | frost | [[Elements#Frost|Magical Frost]] }}
+
  | storm = [[Elements#Storm|Magical Storm]]
{{#ifeq: {{{Element}}} | physical | [[Physical]] }} }}  
+
  | frost = [[Elements#Frost|Magical Frost]]
 +
  | earth = [[Elements#Earth|Magical Earth]]
 +
  | #default = {{ucfirst:{{{Element}}}}}
 +
}} }}
 
{{#if:{{{Status|}}}|<br />
 
{{#if:{{{Status|}}}|<br />
 
{{!}}-
 
{{!}}-
Line 66: Line 67:
 
{{!}} style="text-align: right;" {{!}}{{{FCombo}}}}} <br />
 
{{!}} style="text-align: right;" {{!}}{{{FCombo}}}}} <br />
 
|}
 
|}
|} __NOTOC__
+
|}  
 +
{{{Overview}}}
  
{{{Overview}}}
 
  
 
{| border="1" cellspacing="0" cellpadding="1" class="article-table" style="text-align: center;"
 
{| border="1" cellspacing="0" cellpadding="1" class="article-table" style="text-align: center;"
Line 215: Line 216:
 
|P5=<br />
 
|P5=<br />
 
}}
 
}}
 +
__NOTOC__
 
[[Category:Templates/Visual]]{{Documentation}}</noinclude>
 
[[Category:Templates/Visual]]{{Documentation}}</noinclude>

Latest revision as of 18:27, 14 December 2024

{{{{#ifeq:{{PAGENAME}}|''Page Name''|Test_Defence|{{#ifeq:{{PAGENAME}}|Test Calc|:Test_Calc_Math|:Test_Table/Data}}}}
|Hero=
|Page={{{1}}}
|Type=
|Projectiles=
|DPS=
|Name=
|Icon=
|Description=
|Level=
|Mana=
|ISpeed=
|Element=
|Status=
|SCombo=
|FCombo=
|Overview=
|Attack=
|A1=
|A2=
|A3=
|A4=
|A5=
|CritC=
|Crit=
|C1=
|C2=
|C3=
|C4=
|C5=
|Dot=
|Hot=
|D1=
|D2=
|D3=
|D4=
|D5=
|Health=
|H1=
|H2=
|H3=
|H4=
|H5=
|Speed=
|S1=
|S2=
|S3=
|S4=
|S5=
|Range=
|R1=
|R2=
|R3=
|R4=
|R5=
|Boost=
|B1=
|B2=
|B3=
|B4=
|B5=
|Protect=
|P1=
|P2=
|P3=
|P4=
|P5=
}}

Template documentation follows
Note: the template above may sometimes be partially or fully invisible.
Visit Template:Hero_Defense/doc to edit this documentation. (How does this work?)
Description
This template will apply constant formatting for each Hero Defense. 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. Additional parameters include the table data to be generated.