Template:Resistance

From bg3.wiki
Jump to navigation Jump to search
Template documentation

Displays a resistance icon.

Markup Renders as
{{resistance|acid|vuln}}
Vulnerable to Acid
{{resistance|cold|resist nm}}
Resistant to Non-Magical Cold
{{resistance|fire|resist m}}
Resistant to Magical Fire
{{resistance|force|resist full}}
Resistant to all Force
{{resistance|thunder|immune}}
Immune to all Thunder
{{resistance|piercing|immune nm}}
Immune to Non-Magical Piercing
{{resistance|slashing|immune nm plus}}
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:

Markup Renders as
{{resistance|acid|immune|40px}}
Immune to all Acid

This template also adds automatic resistance categories. If you are using this template on a non-creature page, please add |nocat=1 so that page doesn't get included in the respective resistance category.

Template data

No description.

Template parameters[Edit template data]

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