Template:Resist

From HorizonXI Wiki
Revision as of 06:42, 19 August 2022 by Romidiant (Fandom) (talk | contribs) (Created page with "{{#switch:{{lc:{{{1|}}}}}|fire|earth|water|wind|ice|lightning|light|dark = [[File:{{ucfirst:{{lc:{{{1|}}}}}}}Icon.png|Resistance to {{ucfirst:{{lc:{{{1|}}}}}}}]]}}{{#iferror:{{#expr:{{{2}}}}}||{{#ifexpr:{{{2}}} >= 0|+}}{{#expr:{{formatnum:{{{2}}}}}}}}}<noinclude> Category:Templates ==Usage== <pre>{{Resist|<element>|<resistance>}}</pre> :'''element:''' The elemental resistance to be represented: fire, earth, water, wind, ice, lightning, light, or dark. Case insensitiv...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Usage

{{Resist|<element>|<resistance>}}
element: The elemental resistance to be represented: fire, earth, water, wind, ice, lightning, light, or dark. Case insensitive.
resistance: The numerical resistance modifier to be represented.

Examples

Code Result
{{Resist|Fire}}
Resistance to Fire
{{Resist|wAteR}}
Resistance to Water
{{Resist|Dark|10}}
Resistance to Dark+10
{{Resist|Lightning|+5}}
Resistance to Lightning+5
{{Resist|Wind|-5}}
Resistance to Wind-5