Template:Resistance

From bg3.wiki
Revision as of 21:34, 2 June 2024 by Taylan (talk | contribs) (Cleanup & support "immune to non-magical and resistant to magical".)
Jump to navigation Jump to search

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
immune magic vulnerable resistant
Stringrequired
size3

Size of the icon.

Default
28
Numberoptional
nocatnocat

If specified, does not insert categories.

Unknownoptional