Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Resistance

Template page
Revision as of 20:44, 16 June 2024 by Taylan (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Example:

{{resistance|acid|vuln}}
{{resistance|cold|resist nm}}
{{resistance|fire|resist m}}
{{resistance|force|resist full}}
{{resistance|thunder|immune}}
{{resistance|piercing|immune nm}}
{{resistance|slashing|immune nm plus}}

Vulnerable to Acid Resistant to Non-Magical Cold Resistant to Magical Fire Resistant to all Force Immune to all Thunder Immune to Non-Magical Piercing Immune to Non-Magical and Resistant to Magical Slashing

Here are the "keys" for the resistance/vulnerability/immunity type:

  • vuln: Self-explanatory
  • resist nm: Resistant to non-magical
  • resist m: Resistant to magical only
  • resist full: Resistant to all (non-magical and magical)
  • immune nm: Immune to non-magical
  • immune full: Immune to all (non-magical and magical)
  • immune nm plus: Immune to non-magical and resistant to magical

The abbreviations "vuln", "resist", and "immune" can be written out in full as well, like "vulnerable", "vulnerability", "resistant", "resistance", or "immunity". The template will recognize all ways to write these words.

You can also make the icon bigger like so:

{{resistance|acid|immune|40px}}

Result:

Immune to all Acid

Template data

No description.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
type1

The damage type

Stringrequired
resistance2

How resistant?

Suggested values
vuln resist nm resist m resist full immune nm immune full immune nm plus
Stringrequired
size3

Size of the icon.

Default
28
Numberoptional
nocatnocat

If specified, does not insert categories.

Unknownoptional