Template:Resistance: Difference between revisions

From bg3.wiki
Jump to navigation Jump to search
(Category only in main)
(add tooltip)
Line 1: Line 1:
<includeonly>[[File:{{{1}}} {{#switch: {{{2|}}}| magical = M | vulnerable = V | double = R | immunity = Immunity | immune = Immunity | resistant = NM | Magical = M | Vulnerable = V | Double = R | Immunity = Immunity | Immune = Immunity | Resistant = NM}}.png|{{{3|28px}}}|link=Damage Types]]{{#if:{{{nocat|}}}||{{Main only|[[Category:{{#switch: {{{2|}}}| magical = Resistant | vulnerable = Vulnerable | double = Resistant | immunity = Immune | immune = Immune | resistant = Resistant | Magical = Resistant | Vulnerable = Vulnerable | Double = Resistant | Immunity = Immune | Immune = Immune | Resistant = Resistant}} to {{{1}}}]]}}}}</includeonly><noinclude>[[Category:Templates]]
<includeonly>{{#lvardef:degree|{{#switch: {{{2|}}}| magical = Resistant | vulnerable = Vulnerable | double = Resistant | immunity = Immune | immune = Immune | resistant = Resistant | Magical = Resistant | Vulnerable = Vulnerable | Double = Resistant | Immunity = Immune | Immune = Immune | Resistant = Resistant}}
}}<span aria-label="{{#lvar:degree}} to {{{1}}}">[[File:{{{1}}} {{#switch: {{{2|}}}| magical = M | vulnerable = V | double = R | immunity = Immunity | immune = Immunity | resistant = NM | Magical = M | Vulnerable = V | Double = R | Immunity = Immunity | Immune = Immunity | Resistant = NM}}.png|{{{3|28px}}}|link=Damage Types]]</span>{{#if:{{{nocat|}}}||{{Main only|[[Category:{{#lvar:degree}} to {{{1}}}]]}}}}</includeonly><noinclude>[[Category:Templates]]
Example:
Example:
{{Resistance|Psychic|resistant|nocat=1}}{{Resistance|Fire|double}}{{Resistance|Magic|magical}}{{Resistance|Thunder|immune}}{{Resistance|Radiant|vulnerable}}
{{Resistance|Psychic|resistant|nocat=1}}{{Resistance|Fire|double}}{{Resistance|Magic|magical}}{{Resistance|Thunder|immune}}{{Resistance|Radiant|vulnerable}}

Revision as of 21:01, 18 October 2023

Example: Psychic NM.pngFire R.pngMagic M.pngThunder Immunity.pngRadiant V.png {{Resistance|Psychic|resistant}}{{Resistance|Fire|double}}{{Resistance|Magic|magical}}{{Resistance|Thunder|immune}}{{Resistance|Radiant|vulnerable}}

You can also use {{Resistance|Acid|immune|40px}} to make it bigger Acid Immunity.png

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