Template:Resistance: Difference between revisions

From bg3.wiki
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 37: Line 37:
| immune nm
| immune nm
| Immune NM = Immune to non-magical
| Immune NM = Immune to non-magical
}} }}
}} {{{1}}} }}
{{#lvardef: filename | {{{1}}} {{#switch: {{{2|}}}
{{#lvardef: filename | {{{1}}} {{#switch: {{{2|}}}
| vulnerable
| vulnerable
Line 76: Line 76:
| Immune NM = Immunity NM
| Immune NM = Immunity NM
}}.png }}
}}.png }}
}}<span style="display: inline-block;" aria-label="{{#lvar:wording}} {{{1}}}">[[File:{{#lvar:filename}}|{{{3|28px}}}|link=Resistances]]</span>{{#if:{{{nocat|}}}||{{Main only|[[Category:{{#lvar:wording}} to {{{1}}}]]}}}}</includeonly><noinclude>[[Category:Templates]]
}}<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]]
Example:
Example:



Revision as of 06:16, 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