{{resistance}}
is used to insert damage type resistance icons, along with optional accompanying colored resistance amount values.
Usage
{{resistance|damage_type|value (optional)}}
Accepted damage types:
- fire
- frost
- electricity
- explosive
- radiation
- poison
- melee
- corrosive
- radial
Damage type name is case sensitive; parameter should be all lower-case, or first letter uppercase only.
Value is the damage resistance in percent, it can be negative for weaknesses. Optional.
Examples
{{resistance|fire|66}}
creates
66%
{{resistance|frost|-50}}
creates
-50%
{{resistance|radiation|0}}
creates
0%
{{resistance|melee}}
creates <span style="color:Expression error: Unexpected < operator.">
{{{2}}}%