Open main menu
Changes
Template:Hero Defense
586 bytes added
,
14 December
Trying to separate each condition to make sure if none if executed, the last one will.
{{!}} style="text-align: right;" {{!}}
{{#if: {{{Element}}} |
{{#ifeq: {{lc:{{{Element}}}}} | magical | [[Magical]] }}
{{#else:
{{#ifeq: {{lc:{{{Element}}}}} | poison | [[Elements#Poison|Magical Poison]] }}
{{#else:
{{#ifeq: {{lc:{{{Element}}}}} | water | [[Elements#Water|Magical Water]] }}
{{#else:
{{#ifeq: {{lc:{{{Element}}}}} | fire | [[Elements#Fire|Magical Fire]] }}
{{#else:
{{#ifeq: {{lc:{{{Element}}}}} | storm | [[Elements#Storm|Magical Storm]] }}
{{#else:
{{#ifeq: {{lc:{{{Element}}}}} | frost | [[Elements#Frost|Magical Frost]] }}
{{#else:
{{#ifeq: {{lc:{{{Element}}}}} | earth | [[Elements#Earth|Magical Earth]] }}
{{#else:
{{#ifeq: {{lc:{{{Element}}}}} | physical | [[Physical]] }
}
{{#else}}
{{{Element
} }}
{{
#
/else}}
{{/else}}
{{/else}}
{{/
else}}
{
{
/else}}
{{
Element
/else}
}
{{/else
}}
{{/else}}
}}
← Older edit
Newer edit →
Sab
WikiDefender
716
edits