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"))
(more capitalization support for condition immunities)
Line 1: Line 1:
<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>
+
<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|{{lc:[[{{{1|conditions}}}]]}}[[Category:Creatures immune to the blinded condition]]}}{{#ifeq:{{lc:{{{1|}}}}}|charmed|{{lc:[[{{{1|conditions}}}]]}}[[Category:Creatures immune to the charmed condition]]}}{{#ifeq:{{lc:{{{1|}}}}}|deafened|{{lc:[[{{{1|conditions}}}]]}}[[Category:Creatures immune to the deafened condition]]}}{{#ifeq:{{lc:{{{1|}}}}}|exhaustion|{{lc:[[{{{1|conditions}}}]]}}[[Category:Creatures immune to the exhaustion condition]]}}{{#ifeq:{{lc:{{{1|}}}}}|frightened|{{lc:[[{{{1|conditions}}}]]}}[[Category:Creatures immune to the frightened condition]]}}{{#ifeq:{{lc:{{{1|}}}}}|frozen|{{lc:[[{{{1|conditions}}}]]}}[[Category:Creatures immune to the frozen condition]]}}{{#ifeq:{{lc:{{{1|}}}}}|grappled|{{lc:[[{{{1|conditions}}}]]}}[[Category:Creatures immune to the grappled condition]]}}{{#ifeq:{{lc:{{{1|}}}}}|ignited|{{lc:[[{{{1|conditions}}}]]}}[[Category:Creatures immune to the ignited condition]]}}{{#ifeq:{{lc:{{{1|}}}}}|incapacitated|{{lc:[[{{{1|conditions}}}]]}}[[Category:Creatures immune to the incapacitated condition]]}}{{#ifeq:{{lc:{{{1|}}}}}|paralyzed|{{lc:[[{{{1|conditions}}}]]}}[[Category:Creatures immune to the paralyzed condition]]}}{{#ifeq:{{lc:{{{1|}}}}}|poisoned|{{lc:[[{{{1|conditions}}}]]}}[[Category:Creatures immune to the poisoned condition]]}}{{#ifeq:{{lc:{{{1|}}}}}|prone|{{lc:[[{{{1|conditions}}}]]}}[[Category:Creatures immune to the prone condition]]}}{{#ifeq:{{lc:{{{1|}}}}}|restrained|{{lc:[[{{{1|conditions}}}]]}}[[Category:Creatures immune to the restrained condition]]}}{{#ifeq:{{lc:{{{1|}}}}}|stunned|{{lc:[[{{{1|conditions}}}]]}}[[Category:Creatures immune to the stunned condition]]}}{{#ifeq:{{lc:{{{1|}}}}}|unconscious|{{lc:[[{{{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:42, 3 February 2018

Usage

This template is to be used with Template:CreatureBox.

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