Difference between revisions of "Template:Hero Ability"

From Dungeon Defenders 2 Wiki
Jump to: navigation, search
(Test implementation of the hero ability template. Copy pasted from former wiki. Lanie may need to look at this if it doesn't work. She is wiki master.)
 
(Renaming the "Damage" field as "Damage Scalar" and moving it under "Ability Statistics". It makes more sense that the damage scalar should also be listed under the statistics rather than added after the overview.)
 
(17 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<includeonly>{| border="0" cellpadding="1" cellspacing="1" class="article-table"
+
{| border="1" cellpadding="1" cellspacing="0" class="floatright" width="250"
|{{Data Field|{{PAGENAME}}/icon|icon}}
+
|-
|'''{{Data Field|{{PAGENAME}}/name}}''': {{Data Field|{{PAGENAME}}/description}}
+
| style="text-align: center;" |'''{{{Name}}}'''
|}</includeonly>
+
|-
 +
| style="text-align: center;" |[[File:{{{Icon}}}]]
 +
|-
 +
|{{{Description}}}
 +
|-
 +
| style="text-align: center;" |'''Ability 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|}}}]]}}{{#if: {{{Hero5|}}}|<br />[[{{{Hero5|}}}]]}}{{#if: {{{Hero6|}}}|<br />[[{{{Hero6|}}}]]}} <br />
 +
|-
 +
|''Mana Cost:''
 +
| style="text-align: right;" |{{{Mana}}} <br />
 +
|-
 +
|''Base Recharge:''
 +
| style="text-align: right;" |{{{ISpeed}}} <br />
 +
|-
 +
|''Damage Type:''
 +
| style="text-align: right;" |{{{Element}}} <br />
 +
|-
 +
|''Damage Scalar:''
 +
| style="text-align: right;" |{{{Damage}}} <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==
+
{{{Overview}}}
<noinclude>Shows ability data.</noinclude>
 
<includeonly>{{Data Field|{{PAGENAME}}|swap}}</includeonly>
 
  
<noinclude>Format ability data section here.</noinclude>
+
<noinclude>[[Category:Templates/Visual]]{{Documentation}}</noinclude>
 
 
<includeonly>
 
===Effects===
 
*''Ability Damage:'' {{Data Field|{{PAGENAME}}/damage}} of Ability Power.
 
*''Damage Type:'' {{Data Field|{{PAGENAME}}/element}}
 
*''Status Effect:'' {{Data Field|{{PAGENAME}}/status}} {{#ifeq: {{{combo|}}} | status |
 
*''Elemental Combo Starter:'' {{Data Field|{{PAGENAME}}/combo}} using {{Data Field|{{PAGENAME}}/status}} |}} {{#ifeq: {{{combo|}}} | element |
 
*''Elemental Combo Finisher:'' {{Data Field|{{PAGENAME}}/combo}} using {{Data Field|{{PAGENAME}}/element}} |}} {{#ifeq: {{{combo|}}} | mix |
 
*''Elemental Combinations:'' {{Data Field|{{PAGENAME}}/combo}} using both {{Data Field|{{PAGENAME}}/element}} and {{Data Field|{{PAGENAME}}/status}} |}}
 
 
 
===Requirements===
 
*''Level Required:'' {{Data Field|{{PAGENAME}}/level}}
 
*''Mana Required:'' {{Data Field|{{PAGENAME}}/mana}}
 
*''Cooldown Required:'' {{Data Field|{{PAGENAME}}/cooldown}}
 
</includeonly>
 
 
 
<noinclude>[[Category:Templates/Visual]]
 
{{documentation}}</noinclude>
 

Latest revision as of 15:46, 2 August 2022

{{{Name}}}
[[File:{{{Icon}}}]]
{{{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.