Difference between revisions of "Template:Hero Ability"
From Dungeon Defenders 2 Wiki
(Trying a basic switch option because templates are a pain.) |
(Quick test, using code from earlier which should do the same thing) |
||
Line 24: | Line 24: | ||
| style="text-align: right;" | {{{Element}}} <br/> | | style="text-align: right;" | {{{Element}}} <br/> | ||
{{#if: {{{Element|}}} | | {{#if: {{{Element|}}} | | ||
− | {{# | + | {{#ifeq: {{lc:{{{Element}}}}} | magical | [[Magical]] }} |
− | + | {{#ifeq: {{lc:{{{Element}}}}} | physical | [[Physical]] }} | |
− | + | {{#ifeq: {{lc:{{{Element}}}}} | poison | [[Elements#Poison|Magical Poison]]}} | |
− | + | {{#ifeq: {{lc:{{{Element}}}}} | fire | [[Elements#Fire|Magical Fire]]}} | |
− | + | {{#ifeq: {{lc:{{{Element}}}}} | water | [[Elements#Water|Magical Water]]}} | |
− | + | {{#ifeq: {{lc:{{{Element}}}}} | storm | [[Elements#Storm|Magical Storm]]}} | |
− | + | {{#ifeq: {{lc:{{{Element}}}}} | frost | [[Elements#Frost|Magical Frost]]}} | |
− | + | {{{Element}}} | |
− | |||
− | |||
}} | }} | ||
|- | |- |
Revision as of 14:20, 14 December 2024
{{{Name}}} | ||||||||||||
[[File:{{{Icon}}}|256px]] | ||||||||||||
{{{Description}}} | ||||||||||||
Ability Statistics | ||||||||||||
|
{{{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.