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"))
(added falling damage immunity)
 
(9 intermediate revisions by the same user not shown)
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|<span style="color:#{{BoxTextColor}}; font-size:16px; font-family:'scalysans';">acid</span>]][[Category:Creatures immune to acid damage]]}}{{#ifeq:{{lc:{{{1|}}}}}|bludgeoning|[[Damage|<span style="color:#{{BoxTextColor}}; font-size:16px; font-family:'scalysans';">bludgeoning</span>]][[Category:Creatures immune to bludgeoning damage]]}}{{#ifeq:{{lc:{{{1|}}}}}|cold|[[Damage|<span style="color:#{{BoxTextColor}}; font-size:16px; font-family:'scalysans';">cold</span>]][[Category:Creatures immune to cold damage]]}}{{#ifeq:{{lc:{{{1|}}}}}|falling |[[Falling|<span style="color:#{{BoxTextColor}}; font-size:16px; font-family:'scalysans';">falling</span>]][[Category:Creatures immune to falling damage]]}}{{#ifeq:{{lc:{{{1|}}}}}|fire|[[Damage|<span style="color:#{{BoxTextColor}}; font-size:16px; font-family:'scalysans';">fire</span>]][[Category:Creatures immune to fire damage]]}}{{#ifeq:{{lc:{{{1|}}}}}|force|[[Damage|<span style="color:#{{BoxTextColor}}; font-size:16px; font-family:'scalysans';">force</span>]][[Category:Creatures immune to force damage]]}}{{#ifeq:{{lc:{{{1|}}}}}|lightning|[[Damage|<span style="color:#{{BoxTextColor}}; font-size:16px; font-family:'scalysans';">lightning</span>]][[Category:Creatures immune to lightning damage]]}}{{#ifeq:{{lc:{{{1|}}}}}|necrotic|[[Damage|<span style="color:#{{BoxTextColor}}; font-size:16px; font-family:'scalysans';">necrotic</span>]][[Category:Creatures immune to necrotic damage]]}}{{#ifeq:{{lc:{{{1|}}}}}|piercing|[[Damage|<span style="color:#{{BoxTextColor}}; font-size:16px; font-family:'scalysans';">piercing</span>]][[Category:Creatures immune to piercing damage]]}}{{#ifeq:{{lc:{{{1|}}}}}|poison|[[Damage|<span style="color:#{{BoxTextColor}}; font-size:16px; font-family:'scalysans';">poison</span>]][[Category:Creatures immune to poison damage]]}}{{#ifeq:{{lc:{{{1|}}}}}|psychic|[[Damage|<span style="color:#{{BoxTextColor}}; font-size:16px; font-family:'scalysans';">psychic</span>]][[Category:Creatures immune to psychic damage]]}}{{#ifeq:{{lc:{{{1|}}}}}|radiant|[[Damage|<span style="color:#{{BoxTextColor}}; font-size:16px; font-family:'scalysans';">radiant</span>]][[Category:Creatures immune to radiant damage]]}}{{#ifeq:{{lc:{{{1|}}}}}|slashing|[[Damage|<span style="color:#{{BoxTextColor}}; font-size:16px; font-family:'scalysans';">slashing</span>]][[Category:Creatures immune to slashing damage]]}}{{#ifeq:{{lc:{{{1|}}}}}|thunder|[[Damage|<span style="color:#{{BoxTextColor}}; font-size:16px; font-family:'scalysans';">thunder</span>]][[Category:Creatures immune to thunder damage]]}}{{#ifeq:{{lc:{{{1|}}}}}|blinded|[[conditions|<span style="color:#{{BoxTextColor}}; font-size:16px; font-family:'scalysans';">{{lc:{{{1|conditions}}}}}</span>]][[Category:Creatures immune to the blinded condition]]}}{{#ifeq:{{lc:{{{1|}}}}}|charmed|[[conditions|<span style="color:#{{BoxTextColor}}; font-size:16px; font-family:'scalysans';">{{lc:{{{1|conditions}}}}}</span>]][[Category:Creatures immune to the charmed condition]]}}{{#ifeq:{{lc:{{{1|}}}}}|deafened|[[conditions|<span style="color:#{{BoxTextColor}}; font-size:16px; font-family:'scalysans';">{{lc:{{{1|conditions}}}}}</span>]][[Category:Creatures immune to the deafened condition]]}}{{#ifeq:{{lc:{{{1|}}}}}|exhaustion|[[conditions|<span style="color:#{{BoxTextColor}}; font-size:16px; font-family:'scalysans';">{{lc:{{{1|conditions}}}}}</span>]][[Category:Creatures immune to the exhaustion condition]]}}{{#ifeq:{{lc:{{{1|}}}}}|frightened|[[conditions|<span style="color:#{{BoxTextColor}}; font-size:16px; font-family:'scalysans';">{{lc:{{{1|conditions}}}}}</span>]][[Category:Creatures immune to the frightened condition]]}}{{#ifeq:{{lc:{{{1|}}}}}|frozen|[[conditions|<span style="color:#{{BoxTextColor}}; font-size:16px; font-family:'scalysans';">{{lc:{{{1|conditions}}}}}</span>]][[Category:Creatures immune to the frozen condition]]}}{{#ifeq:{{lc:{{{1|}}}}}|grappled|[[conditions|<span style="color:#{{BoxTextColor}}; font-size:16px; font-family:'scalysans';">{{lc:{{{1|conditions}}}}}</span>]][[Category:Creatures immune to the grappled condition]]}}{{#ifeq:{{lc:{{{1|}}}}}|ignited|[[conditions|<span style="color:#{{BoxTextColor}}; font-size:16px; font-family:'scalysans';">{{lc:{{{1|conditions}}}}}</span>]][[Category:Creatures immune to the ignited condition]]}}{{#ifeq:{{lc:{{{1|}}}}}|incapacitated|[[conditions|<span style="color:#{{BoxTextColor}}; font-size:16px; font-family:'scalysans';">{{lc:{{{1|conditions}}}}}</span>]][[Category:Creatures immune to the incapacitated condition]]}}{{#ifeq:{{lc:{{{1|}}}}}|paralyzed|[[conditions|<span style="color:#{{BoxTextColor}}; font-size:16px; font-family:'scalysans';">{{lc:{{{1|conditions}}}}}</span>]][[Category:Creatures immune to the paralyzed condition]]}}{{#ifeq:{{lc:{{{1|}}}}}|petrified|[[conditions|<span style="color:#{{BoxTextColor}}; font-size:16px; font-family:'scalysans';">{{lc:{{{1|conditions}}}}}</span>]][[Category:Creatures immune to the petrified condition]]}}{{#ifeq:{{lc:{{{1|}}}}}|poisoned|[[conditions|<span style="color:#{{BoxTextColor}}; font-size:16px; font-family:'scalysans';">{{lc:{{{1|conditions}}}}}</span>]][[Category:Creatures immune to the poisoned condition]]}}{{#ifeq:{{lc:{{{1|}}}}}|prone|[[conditions|<span style="color:#{{BoxTextColor}}; font-size:16px; font-family:'scalysans';">{{lc:{{{1|conditions}}}}}</span>]][[Category:Creatures immune to the prone condition]]}}{{#ifeq:{{lc:{{{1|}}}}}|restrained|[[conditions|<span style="color:#{{BoxTextColor}}; font-size:16px; font-family:'scalysans';">{{lc:{{{1|conditions}}}}}</span>]][[Category:Creatures immune to the restrained condition]]}}{{#ifeq:{{lc:{{{1|}}}}}|stunned|[[conditions|<span style="color:#{{BoxTextColor}}; font-size:16px; font-family:'scalysans';">{{lc:{{{1|conditions}}}}}</span>]][[Category:Creatures immune to the stunned condition]]}}{{#ifeq:{{lc:{{{1|}}}}}|unconscious|[[conditions|<span style="color:#{{BoxTextColor}}; font-size:16px; font-family:'scalysans';">{{lc:{{{1|conditions}}}}}</span>]][[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]].

Latest revision as of 11:41, 21 December 2020

Usage

This template is to be used with Template:CreatureBox.

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