Difference between revisions of "Template:Hero Defense"

From Dungeon Defenders 2 Wiki
Jump to: navigation, search
(Related Passives)
(Defense is a more appropriate term, as Tower only applies to a specific subset of Defenses)
 
(38 intermediate revisions by 5 users not shown)
Line 1: Line 1:
<includeonly>{| border="0" cellpadding="1" cellspacing="1" class="article-table"
+
<includeonly>{| border="1" cellpadding="1" cellspacing="0" class="floatright" width="250"
|{{Datafield|{{PAGENAME}}/icon|icon}}
+
|-
|'''{{Datafield|{{PAGENAME}}/name}}''': {{Datafield|{{PAGENAME}}/description}}
+
| style="text-align: center;" |'''{{{Name}}}'''
|}</includeonly> __NOTOC__
+
|-
 
+
| style="text-align: center;" |[[File:{{{Icon}}}]]
==Overview==
+
|-
<noinclude>Shows stat table.</noinclude>
+
|{{{Description}}}
<includeonly>{{Datafield|{{PAGENAME}}|swap}}
+
|-
 
+
| style="text-align: center;" |'''Defense Statistics'''
 
+
|-
 
+
|
 
+
{| border="0" cellpadding="0" cellspacing="0" width="100%"
 
+
|-
 
+
| style="vertical-align:top;" |''Hero:''
 
+
| style="text-align: right;" |[[{{{Hero}}}]]{{#if: {{{Hero2|}}}|<br />[[{{{Hero2|}}}]]}}{{#if: {{{Hero3|}}}|<br />[[{{{Hero3|}}}]]}}{{#if: {{{Hero4|}}}|<br />[[{{{Hero4|}}}]]}}<br />
 +
|-
 +
|''Defense Type:''
 +
| style="text-align: right;" |{{{Type}}} <br />
 +
|-
 +
|''Level Required:''
 +
| style="text-align: right;" |{{{Level}}} <br />
 +
|-
 +
|''Mana Cost:''
 +
| style="text-align: right;" |{{{Mana}}} {{#if:{{{ISpeed|}}}|<br />
 +
{{!}}-
 +
{{!}}''Base Attack Rate:''
 +
{{!}} style="text-align: right;" {{!}}{{{ISpeed}}}}} {{#if:{{{MaxAttSpeed|}}}|<br />
 +
{{!}}-
 +
{{!}}''Max Attack Rate:''
 +
{{!}} style="text-align: right;" {{!}}{{{MaxAttSpeed}}}}} {{#if:{{{Dot|}}}{{{Hot|}}}|<br />
 +
{{!}}-
 +
{{!}}''Tick Rate:''
 +
{{!}} style="text-align: right;" {{!}}1.00s}} {{#if:{{{BaseRange|}}}|<br />
 +
{{!}}-
 +
{{!}}''Base Range/Radius:''
 +
{{!}} style="text-align: right;" {{!}}{{{BaseRange}}}}} {{#if:{{{MaxRange|}}}|<br />
 +
{{!}}-
 +
{{!}}''Max Range/Radius:''
 +
{{!}} style="text-align: right;" {{!}}{{{MaxRange}}}}} {{#if:{{{Trigger|}}}|<br />
 +
{{!}}-
 +
{{!}}''Trigger Radius:''
 +
{{!}} style="text-align: right;" {{!}}{{{Trigger}}}}} {{#if:{{{Element|}}}|<br />
 +
{{!}}-
 +
{{!}}''Damage Type:''
 +
{{!}} style="text-align: right;" {{!}}{{{Element}}}}} {{#if:{{{Status|}}}|<br />
 +
{{!}}-
 +
{{!}}''Status Effect:''
 +
{{!}} style="text-align: right;" {{!}}{{{Status}}}}} {{#if:{{{SCombo|}}}|<br />
 +
{{!}}-
 +
{{!}}''Combo Starter:''
 +
{{!}} style="text-align: right;" {{!}}{{{SCombo}}}}} {{#if:{{{FCombo|}}}|<br />
 +
{{!}}-
 +
{{!}}''Combo Finisher:''
 +
{{!}} style="text-align: right;" {{!}}{{{FCombo}}}}} <br />
 +
|}
 +
|} __NOTOC__
  
 +
{{{Overview}}}
  
{| border="0" cellspacing="1" cellpadding="1" class="article-table"
+
{| border="1" cellspacing="0" cellpadding="1" class="article-table" style="text-align: center;"
 
|-
 
|-
!  
+
! Attribute
! Base Value
+
! Tier One
! First Upgrade
+
! Tier Two
! Second Upgrade
+
! Tier Three
! Third Upgrade
+
! Tier Four
! Final Upgrade {{#if: {{{attack|}}}|<br />
+
! Tier Five {{#if: {{{Attack|}}}|<br />
 +
{{!}}-
 +
! style="text-align: center;" {{!}} {{{Attack}}} <br /> [[Defense#Power|Defense Power]] (x)
 +
{{!}} {{!}} {{{A1}}}
 +
{{!}} {{!}} {{{A2}}}
 +
{{!}} {{!}} {{{A3}}}
 +
{{!}} {{!}} {{{A4}}}
 +
{{!}} {{!}} {{{A5}}} }} {{#if: {{{Crit|}}}|<br />
 +
{{!}}-
 +
! style="text-align: center;" {{!}} {{{Crit}}} <br /> [[Defense#Crit|Defense Crit Damage]] (x)
 +
{{!}} {{!}} {{{C1}}}
 +
{{!}} {{!}} {{{C2}}}
 +
{{!}} {{!}} {{{C3}}}
 +
{{!}} {{!}} {{{C4}}}
 +
{{!}} {{!}} {{{C5}}} }} {{#if: {{{Dot|}}}|<br />
 
{{!}}-
 
{{!}}-
! style="text-align: center;" {{!}} {{{attack}}} <br /> [[Experience#Level|Level Based]] - [[Defense#Power|Defense Power]]
+
! style="text-align: center;" {{!}} {{{Dot}}} <br /> [[Defense#Power|Defense Power]] (x) }} {{#if: {{{Hot|}}}|<br />
{{!}} {{!}} {{Datafield|{{PAGENAME}}/power base}} DP(%)
 
{{!}} {{!}} {{Datafield|{{PAGENAME}}/power tier}} T:1-2
 
{{!}} {{!}} {{Datafield|{{PAGENAME}}/power tier2}} T:2-3
 
{{!}} {{!}} {{Datafield|{{PAGENAME}}/power tier3}} T:3-4
 
{{!}} {{!}} {{Datafield|{{PAGENAME}}/power tier4}} T:4-5 }} {{#if: {{{dot|}}}|<br />
 
 
{{!}}-
 
{{!}}-
! style="text-align: center;" {{!}} {{{dot}}} <br /> [[Experience#Level|Level Based]] - [[Defense#Power|Defense Power]]
+
! style="text-align: center;" {{!}} {{{Hot}}} <br /> [[Defense#Power|Defense Power]] (x) }} {{#if: {{{Dot|}}}{{{Hot|}}}|<br />
{{!}} {{!}} {{Datafield|{{PAGENAME}}/DoT base}} DP(%)  <br /> /{{Datafield|{{PAGENAME}}/DoT rate}}
+
{{!}} {{!}} {{{D1}}}
{{!}} {{!}} {{Datafield|{{PAGENAME}}/DoT tier}} T:1-2
+
{{!}} {{!}} {{{D2}}}
{{!}} {{!}} {{Datafield|{{PAGENAME}}/DoT tier2}} T:2-3
+
{{!}} {{!}} {{{D3}}}
{{!}} {{!}} {{Datafield|{{PAGENAME}}/DoT tier3}} T:3-4
+
{{!}} {{!}} {{{D4}}}
{{!}} {{!}} {{Datafield|{{PAGENAME}}/DoT tier4}} T:4-5 }} {{#if: {{{health|}}}|<br />
+
{{!}} {{!}} {{{D5}}} }} {{#if: {{{Health|}}}|<br />
 
{{!}}-
 
{{!}}-
! style="text-align: center;" {{!}} {{{health}}} <br /> [[Experience#Level|Level Based]] - [[Defense#Health|Defense Health]]
+
! style="text-align: center;" {{!}} {{{Health}}} <br /> [[Defense#Health|Defense Health]] (x)
{{!}} {{!}} {{Datafield|{{PAGENAME}}/health base}} DH(%)
+
{{!}} {{!}} {{{H1}}}
{{!}} {{!}} {{Datafield|{{PAGENAME}}/health tier}} T:1-2
+
{{!}} {{!}} {{{H2}}}
{{!}} {{!}} {{Datafield|{{PAGENAME}}/health tier2}} T:2-3
+
{{!}} {{!}} {{{H3}}}
{{!}} {{!}} {{Datafield|{{PAGENAME}}/health tier3}} T:3-4
+
{{!}} {{!}} {{{H4}}}
{{!}} {{!}} {{Datafield|{{PAGENAME}}/health tier4}} T:4-5 }} {{#if: {{{speed|}}}|<br />
+
{{!}} {{!}} {{{H5}}} }} {{#if: {{{Speed|}}}|<br />
 
{{!}}-
 
{{!}}-
! style="text-align: center;" {{!}} {{{speed}}} <br /> [[Experience#Level|Level Based]] - [[Defense#Speed|Defense Speed]]
+
! style="text-align: center;" {{!}} {{{Speed}}} <br /> [[Defense#Speed|Defense Speed]]
{{!}} {{!}} {{Datafield|{{PAGENAME}}/speed base}} DS(%)
+
{{!}} {{!}} {{{S1}}}
{{!}} {{!}} {{Datafield|{{PAGENAME}}/speed tier}} T:1-2
+
{{!}} {{!}} {{{S2}}}
{{!}} {{!}} {{Datafield|{{PAGENAME}}/speed tier2}} T:2-3
+
{{!}} {{!}} {{{S3}}}
{{!}} {{!}} {{Datafield|{{PAGENAME}}/speed tier3}} T:3-4
+
{{!}} {{!}} {{{S4}}}
{{!}} {{!}} {{Datafield|{{PAGENAME}}/speed tier4}} T:4-5 }} {{#if: {{{range|}}}|<br />
+
{{!}} {{!}} {{{S5}}} }} {{#if: {{{Range|}}}|<br />
 
{{!}}-
 
{{!}}-
! style="text-align: center;" {{!}} {{{range}}} <br /> [[Defense#Special|Special]] - [[Defense#Range|Defense Range]]
+
! style="text-align: center;" {{!}} {{{Range}}} <br /> [[Defense#Special|Special]]
{{!}} {{!}} {{Datafield|{{PAGENAME}}/range base}}
+
{{!}} {{!}} {{{R1}}}
{{!}} {{!}} {{Datafield|{{PAGENAME}}/range tier}} T:1-2
+
{{!}} {{!}} {{{R2}}}
{{!}} {{!}} {{Datafield|{{PAGENAME}}/range tier2}} T:2-3
+
{{!}} {{!}} {{{R3}}}
{{!}} {{!}} {{Datafield|{{PAGENAME}}/range tier3}} T:3-4
+
{{!}} {{!}} {{{R4}}}
{{!}} {{!}} {{Datafield|{{PAGENAME}}/range tier4}} T:4-5 }} {{#if: {{{reset|}}}|<br />
+
{{!}} {{!}} {{{R5}}} }} {{#if: {{{Boost|}}}|<br />
 
{{!}}-
 
{{!}}-
! style="text-align: center;" {{!}} {{{reset}}} <br /> [[Defense#Special|Special]] - [[Apprentice#Defenses|Wall Recharge]]
+
! style="text-align: center;" {{!}} {{{Boost}}} <br /> [[Defense#Special|Special]]
{{!}} {{!}} {{Datafield|{{PAGENAME}}/reset base}}
+
{{!}} {{!}} {{{B1}}}
{{!}} {{!}} {{Datafield|{{PAGENAME}}/reset tier}} T:1-2
+
{{!}} {{!}} {{{B2}}}
{{!}} {{!}} {{Datafield|{{PAGENAME}}/reset tier2}} T:2-3
+
{{!}} {{!}} {{{B3}}}
{{!}} {{!}} {{Datafield|{{PAGENAME}}/reset tier3}} T:3-4
+
{{!}} {{!}} {{{B4}}}
{{!}} {{!}} {{Datafield|{{PAGENAME}}/reset tier4}} T:4-5 }} {{#if: {{{trigger|}}}|<br />
+
{{!}} {{!}} {{{B5}}} }} {{#if: {{{Protect|}}}|<br />
 
{{!}}-
 
{{!}}-
! style="text-align: center;" {{!}} {{{trigger}}} <br /> [[Defense#Special|Special]] - [[Huntress#Defenses|Trap Proximity]]
+
! style="text-align: center;" {{!}} {{{Protect}}} <br /> [[Defense#Special|Special]]
{{!}} {{!}} {{Datafield|{{PAGENAME}}/trigger base}}
+
{{!}} {{!}} {{{P1}}}
{{!}} {{!}} {{Datafield|{{PAGENAME}}/trigger tier}} T:1-2
+
{{!}} {{!}} {{{P2}}}
{{!}} {{!}} {{Datafield|{{PAGENAME}}/trigger tier2}} T:2-3
+
{{!}} {{!}} {{{P3}}}
{{!}} {{!}} {{Datafield|{{PAGENAME}}/trigger tier3}} T:3-4
+
{{!}} {{!}} {{{P4}}}
{{!}} {{!}} {{Datafield|{{PAGENAME}}/trigger tier4}} T:4-5 }} {{#if: {{{protect|}}}|<br />
+
{{!}} {{!}} {{{P5}}} }} {{#if: {{{reset|}}}|<br />
 
{{!}}-
 
{{!}}-
! style="text-align: center;" {{!}} {{{protect}}} <br /> [[Defense#Special|Special]] - [[Monk#Defenses|Aura Protection]]
+
! style="text-align: center;" {{!}} {{{reset}}} <br /> [[Defense#Special|Special]] - [[:Category:Apprentice#Defenses|Wall Recharge]]
{{!}} {{!}} {{Datafield|{{PAGENAME}}/protect base}}
+
{{!}} {{!}} {{Data Field|{{PAGENAME}}/reset base}}
{{!}} {{!}} {{Datafield|{{PAGENAME}}/protect tier}} T:1-2
+
{{!}} {{!}} {{Data Field|{{PAGENAME}}/reset tier}} Each Tier }} {{#if: {{{pierce|}}}|<br />
{{!}} {{!}} {{Datafield|{{PAGENAME}}/protect tier2}} T:2-3
 
{{!}} {{!}} {{Datafield|{{PAGENAME}}/protect tier3}} T:3-4
 
{{!}} {{!}} {{Datafield|{{PAGENAME}}/protect tier4}} T:4-5 }} {{#if: {{{pierce|}}}|<br />
 
 
{{!}}-
 
{{!}}-
! style="text-align: center;" {{!}} {{{pierce}}} <br /> [[Defense#Special|Special]] - [[Squire#Defenses|Spear Penetration]]
+
! style="text-align: center;" {{!}} {{{pierce}}} <br /> [[Defense#Special|Special]] - [[:Category:Squire#Defenses|Spear Penetration]]
{{!}} {{!}} {{Datafield|{{PAGENAME}}/pierce base}}
+
{{!}} {{!}} {{Data Field|{{PAGENAME}}/pierce base}}
{{!}} {{!}} {{Datafield|{{PAGENAME}}/pierce tier}} T:1-2
+
{{!}} {{!}} {{Data Field|{{PAGENAME}}/pierce tier}} Each Tier }}
{{!}} {{!}} {{Datafield|{{PAGENAME}}/pierce tier2}} T:2-3
 
{{!}} {{!}} {{Datafield|{{PAGENAME}}/pierce tier3}} T:3-4
 
{{!}} {{!}} {{Datafield|{{PAGENAME}}/pierce tier4}} T:4-5 }}
 
 
|}
 
|}
  
===Effects===
+
</includeonly><noinclude><nowiki>
*''Initial Speed:'' {{Datafield|{{PAGENAME}}/speed init}} Seconds
+
{{{{#ifeq:{{PAGENAME}}|''Page Name''|Test_Defence|{{#ifeq:{{PAGENAME}}|Test Calc|:Test_Calc_Math|:Test_Table/Data}}}}</nowiki><br />
*''Basic APS:'' {{Datafield|{{PAGENAME}}/speed usage}} Attacks/Sec
+
|Hero=<br />
*''100% Speed:'' {{Datafield|{{PAGENAME}}/speed needed}} DS
+
|Page={{{1}}}<br />
*''Damage Type:'' {{Datafield|{{PAGENAME}}/element}}
+
|Type=<br />
*''Status Effect:'' {{Datafield|{{PAGENAME}}/status}} {{#ifeq: {{{combo|}}} | status |  
+
|Projectiles=<br />
*''Elemental Combo Starter:'' {{Datafield|{{PAGENAME}}/combo}} using {{Datafield|{{PAGENAME}}/status}} |}} {{#ifeq: {{{combo|}}} | element |  
+
|DPS=<br />
*''Elemental Combo Finisher:'' {{Datafield|{{PAGENAME}}/combo}} using {{Datafield|{{PAGENAME}}/element}} |}} {{#ifeq: {{{combo|}}} | mix |  
+
|Name=<br />
*''Elemental Combinations:'' {{Datafield|{{PAGENAME}}/combo}} using both {{Datafield|{{PAGENAME}}/status}} and {{Datafield|{{PAGENAME}}/element}} |}}
+
|Icon=<br />
 
+
|Description=<br />
===Requirements===
+
|Level=<br />
*''Level Required:'' {{Datafield|{{PAGENAME}}/level}}
+
|Mana=<br />
*''Mana Required:'' {{Datafield|{{PAGENAME}}/mana}}
+
|ISpeed=<br />
</includeonly>
+
|Element=<br />
 
+
|Status=<br />
==Related [[Passives]]==
+
|SCombo=<br />
Bow:
+
|FCombo=<br />
*"X% Increase in Poison Dart Tower poison attack rate."
+
|Overview=<br />
**While it says Increase in poison attack rate it is applied as a decrease in the Poison Rate stat 'Adjusted Rate = 1s - (X% from Passive)'. A 30% increase results in a 0.7s Poison Rate. The duration of the poison debuff is not reduced, rather more ticks of damage are added.
+
|Attack=<br />
 
+
|A1=<br />
<noinclude>[[Category:Templates/Visual]]
+
|A2=<br />
</noinclude>
+
|A3=<br />
 +
|A4=<br />
 +
|A5=<br />
 +
|CritC=<br />
 +
|Crit=<br />
 +
|C1=<br />
 +
|C2=<br />
 +
|C3=<br />
 +
|C4=<br />
 +
|C5=<br />
 +
|Dot=<br />
 +
|Hot=<br />
 +
|D1=<br />
 +
|D2=<br />
 +
|D3=<br />
 +
|D4=<br />
 +
|D5=<br />
 +
|Health=<br />
 +
|H1=<br />
 +
|H2=<br />
 +
|H3=<br />
 +
|H4=<br />
 +
|H5=<br />
 +
|Speed=<br />
 +
|S1=<br />
 +
|S2=<br />
 +
|S3=<br />
 +
|S4=<br />
 +
|S5=<br />
 +
|Range=<br />
 +
|R1=<br />
 +
|R2=<br />
 +
|R3=<br />
 +
|R4=<br />
 +
|R5=<br />
 +
|Boost=<br />
 +
|B1=<br />
 +
|B2=<br />
 +
|B3=<br />
 +
|B4=<br />
 +
|B5=<br />
 +
|Protect=<br />
 +
|P1=<br />
 +
|P2=<br />
 +
|P3=<br />
 +
|P4=<br />
 +
|P5=<br />
 +
}}
 +
[[Category:Templates/Visual]]{{Documentation}}</noinclude>

Latest revision as of 14:15, 29 September 2022

{{{{#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.