Template:Resistance: Difference between revisions

From bg3.wiki
Jump to navigation Jump to search
No edit summary
(Remove links and ARIA labels from icons, just use alt text.)
Line 76: Line 76:
| Immune NM = Immunity NM
| Immune NM = Immunity NM
}}.png }}
}}.png }}
}}<span style="display: inline-block;" aria-label="{{#lvar:wording}}">[[File:{{#lvar:filename}}|alt={{#lvar:wording}}|{{{3|28px}}}|link=Resistances]]</span>{{#if:{{{nocat|}}}||{{Main only|[[Category:{{#lvar:wording}}]]}}}}</includeonly><noinclude>[[Category:Templates]]
}}[[File:{{#lvar:filename}}|link=|{{{3|28px}}}|{{#lvar:wording}}]]{{#if:{{{nocat|}}}||{{Main only|[[Category:{{#lvar:wording}}]]}}}}</includeonly><noinclude>[[Category:Templates]]
Example:
Example:



Revision as of 05:20, 7 April 2024

Example:

{{Resistance|Psychic|resistant}}
{{Resistance|Fire|double}}
{{Resistance|Magic|magical}}
{{Resistance|Thunder|immune}}
{{Resistance|Radiant|vulnerable}}
{{Resistance|Slashing|immune nm}}

Resistant to non-magical Psychic Resistant to all Fire Resistant to magical Magic Immune to all Thunder Vulnerable to Radiant Immune to non-magical Slashing

The immune nm stands for non-magical immunity which e.g. werewolves have.

You can also use {{Resistance|Acid|immune|40px}} to make it bigger 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