Difference between revisions of "Template:Immunity"

From Legends of Hyrule
Jump to navigationJump to search
(This should enable functionality even if the variable is capitalized (e.g., "fire" vs "Fire"))
Line 1: Line 1:
<includeonly>{{#ifeq:{{{1|}}}|acid|[[Damage|acid]][[Category:Creatures immune to acid damage]]}}{{#ifeq:{{{1|}}}|bludgeoning|[[Damage|bludgeoning]][[Category:Creatures immune to bludgeoning damage]]}}{{#ifeq:{{{1|}}}|cold|[[Damage|cold]][[Category:Creatures immune to cold damage]]}}{{#ifeq:{{{1|}}}|fire|[[Damage|fire]][[Category:Creatures immune to fire damage]]}}{{#ifeq:{{{1|}}}|force|[[Damage|force]][[Category:Creatures immune to force damage]]}}{{#ifeq:{{{1|}}}|lightning|[[Damage|lightning]][[Category:Creatures immune to lightning damage]]}}{{#ifeq:{{{1|}}}|necrotic|[[Damage|necrotic]][[Category:Creatures immune to necrotic damage]]}}{{#ifeq:{{{1|}}}|piercing|[[Damage|piercing]][[Category:Creatures immune to piercing damage]]}}{{#ifeq:{{{1|}}}|poison|[[Damage|poison]][[Category:Creatures immune to poison damage]]}}{{#ifeq:{{{1|}}}|psychic|[[Damage|psychic]][[Category:Creatures immune to psychic damage]]}}{{#ifeq:{{{1|}}}|radiant|[[Damage|radiant]][[Category:Creatures immune to radiant damage]]}}{{#ifeq:{{{1|}}}|slashing|[[Damage|slashing]][[Category:Creatures immune to slashing damage]]}}{{#ifeq:{{{1|}}}|thunder|[[Damage|thunder]][[Category:Creatures immune to thunder damage]]}}{{#ifeq:{{{1|}}}|blinded|[[{{{1|conditions}}}]][[Category:Creatures immune to the blinded condition]]}}{{#ifeq:{{{1|}}}|charmed|[[{{{1|conditions}}}]][[Category:Creatures immune to the charmed condition]]}}{{#ifeq:{{{1|}}}|deafened|[[{{{1|conditions}}}]][[Category:Creatures immune to the deafened condition]]}}{{#ifeq:{{{1|}}}|exhaustion|[[{{{1|conditions}}}]][[Category:Creatures immune to the exhaustion condition]]}}{{#ifeq:{{{1|}}}|frightened|[[{{{1|conditions}}}]][[Category:Creatures immune to the frightened condition]]}}{{#ifeq:{{{1|}}}|frozen|[[{{{1|conditions}}}]][[Category:Creatures immune to the frozen condition]]}}{{#ifeq:{{{1|}}}|grappled|[[{{{1|conditions}}}]][[Category:Creatures immune to the grappled condition]]}}{{#ifeq:{{{1|}}}|ignited|[[{{{1|conditions}}}]][[Category:Creatures immune to the ignited condition]]}}{{#ifeq:{{{1|}}}|incapacitated|[[{{{1|conditions}}}]][[Category:Creatures immune to the incapacitated condition]]}}{{#ifeq:{{{1|}}}|paralyzed|[[{{{1|conditions}}}]][[Category:Creatures immune to the paralyzed condition]]}}{{#ifeq:{{{1|}}}|poisoned|[[{{{1|conditions}}}]][[Category:Creatures immune to the poisoned condition]]}}{{#ifeq:{{{1|}}}|prone|[[{{{1|conditions}}}]][[Category:Creatures immune to the prone condition]]}}{{#ifeq:{{{1|}}}|restrained|[[{{{1|conditions}}}]][[Category:Creatures immune to the restrained condition]]}}{{#ifeq:{{{1|}}}|stunned|[[{{{1|conditions}}}]][[Category:Creatures immune to the stunned condition]]}}{{#ifeq:{{{1|}}}|unconscious|[[{{{1|conditions}}}]][[Category:Creatures immune to the unconscious condition]]}}</includeonly><noinclude>
+
<includeonly>{{#ifeq:{{lc:{{{1|}}}}}|acid|[[Damage|acid]][[Category:Creatures immune to acid damage]]}}{{#ifeq:{{lc:{{{1|}}}}}|bludgeoning|[[Damage|bludgeoning]][[Category:Creatures immune to bludgeoning damage]]}}{{#ifeq:{{lc:{{{1|}}}}}|cold|[[Damage|cold]][[Category:Creatures immune to cold damage]]}}{{#ifeq:{{lc:{{{1|}}}}}|fire|[[Damage|fire]][[Category:Creatures immune to fire damage]]}}{{#ifeq:{{lc:{{{1|}}}}}|force|[[Damage|force]][[Category:Creatures immune to force damage]]}}{{#ifeq:{{lc:{{{1|}}}}}|lightning|[[Damage|lightning]][[Category:Creatures immune to lightning damage]]}}{{#ifeq:{{lc:{{{1|}}}}}|necrotic|[[Damage|necrotic]][[Category:Creatures immune to necrotic damage]]}}{{#ifeq:{{lc:{{{1|}}}}}|piercing|[[Damage|piercing]][[Category:Creatures immune to piercing damage]]}}{{#ifeq:{{lc:{{{1|}}}}}|poison|[[Damage|poison]][[Category:Creatures immune to poison damage]]}}{{#ifeq:{{lc:{{{1|}}}}}|psychic|[[Damage|psychic]][[Category:Creatures immune to psychic damage]]}}{{#ifeq:{{lc:{{{1|}}}}}|radiant|[[Damage|radiant]][[Category:Creatures immune to radiant damage]]}}{{#ifeq:{{lc:{{{1|}}}}}|slashing|[[Damage|slashing]][[Category:Creatures immune to slashing damage]]}}{{#ifeq:{{lc:{{{1|}}}}}|thunder|[[Damage|thunder]][[Category:Creatures immune to thunder damage]]}}{{#ifeq:{{lc:{{{1|}}}}}|blinded|[[{{{1|conditions}}}]][[Category:Creatures immune to the blinded condition]]}}{{#ifeq:{{lc:{{{1|}}}}}|charmed|[[{{{1|conditions}}}]][[Category:Creatures immune to the charmed condition]]}}{{#ifeq:{{lc:{{{1|}}}}}|deafened|[[{{{1|conditions}}}]][[Category:Creatures immune to the deafened condition]]}}{{#ifeq:{{lc:{{{1|}}}}}|exhaustion|[[{{{1|conditions}}}]][[Category:Creatures immune to the exhaustion condition]]}}{{#ifeq:{{lc:{{{1|}}}}}|frightened|[[{{{1|conditions}}}]][[Category:Creatures immune to the frightened condition]]}}{{#ifeq:{{lc:{{{1|}}}}}|frozen|[[{{{1|conditions}}}]][[Category:Creatures immune to the frozen condition]]}}{{#ifeq:{{lc:{{{1|}}}}}|grappled|[[{{{1|conditions}}}]][[Category:Creatures immune to the grappled condition]]}}{{#ifeq:{{lc:{{{1|}}}}}|ignited|[[{{{1|conditions}}}]][[Category:Creatures immune to the ignited condition]]}}{{#ifeq:{{lc:{{{1|}}}}}|incapacitated|[[{{{1|conditions}}}]][[Category:Creatures immune to the incapacitated condition]]}}{{#ifeq:{{lc:{{{1|}}}}}|paralyzed|[[{{{1|conditions}}}]][[Category:Creatures immune to the paralyzed condition]]}}{{#ifeq:{{lc:{{{1|}}}}}|poisoned|[[{{{1|conditions}}}]][[Category:Creatures immune to the poisoned condition]]}}{{#ifeq:{{lc:{{{1|}}}}}|prone|[[{{{1|conditions}}}]][[Category:Creatures immune to the prone condition]]}}{{#ifeq:{{lc:{{{1|}}}}}|restrained|[[{{{1|conditions}}}]][[Category:Creatures immune to the restrained condition]]}}{{#ifeq:{{lc:{{{1|}}}}}|stunned|[[{{{1|conditions}}}]][[Category:Creatures immune to the stunned condition]]}}{{#ifeq:{{lc:{{{1|}}}}}|unconscious|[[{{{1|conditions}}}]][[Category:Creatures immune to the unconscious condition]]}}</includeonly><noinclude>
 
==Usage==
 
==Usage==
 
This template is to be used with [[:Template:CreatureBox]].
 
This template is to be used with [[:Template:CreatureBox]].

Revision as of 10:41, 3 February 2018

Usage

This template is to be used with Template:CreatureBox.

Examples of usage:
{{Immunity|fire}}
{{Immunity|grappled}}
{{CI|fire}}
{{CI|grappled}}