Template:Resistance: Difference between revisions

From bg3.wiki
Jump to navigation Jump to search
No edit summary
(Support non-magic immunity.)
Line 24: Line 24:
| Double = Resistance Full
| Double = Resistance Full
| immunity
| immunity
| Immunity
| immune
| immune
| Immunity
| Immune = Immunity
| Immune = Immunity
| immunity nm
| Immunity NM
| immune nm
| Immune NM = Immunity NM
}}.png }}
}}.png }}
}}<span style="display: inline-block;" aria-label="{{#lvar:degree}} to {{{1}}}">[[File:{{#lvar:filename}}|{{{3|28px}}}|link=Resistances]]</span>{{#if:{{{nocat|}}}||{{Main only|[[Category:{{#lvar:degree}} to {{{1}}}]]}}}}</includeonly><noinclude>[[Category:Templates]]
}}<span style="display: inline-block;" aria-label="{{#lvar:degree}} to {{{1}}}">[[File:{{#lvar:filename}}|{{{3|28px}}}|link=Resistances]]</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}}
 
{{InfoBlob|<nowiki>{{Resistance|Psychic|resistant}}{{Resistance|Fire|double}}{{Resistance|Magic|magical}}{{Resistance|Thunder|immune}}{{Resistance|Radiant|vulnerable}}</nowiki>}}
<pre>
{{Resistance|Psychic|resistant}}
{{Resistance|Fire|double}}
{{Resistance|Magic|magical}}
{{Resistance|Thunder|immune}}
{{Resistance|Radiant|vulnerable}}
{{Resistance|Slashing|immune nm}}
</pre>
 
{{Resistance|Psychic|resistant}}
{{Resistance|Fire|double}}
{{Resistance|Magic|magical}}
{{Resistance|Thunder|immune}}
{{Resistance|Radiant|vulnerable}}
{{Resistance|Slashing|immune nm}}


You can also use {{InfoBlob|<nowiki>{{Resistance|Acid|immune|40px}}</nowiki>}} to make it bigger {{Resistance|Acid|immune|40px}}
You can also use {{InfoBlob|<nowiki>{{Resistance|Acid|immune|40px}}</nowiki>}} to make it bigger {{Resistance|Acid|immune|40px}}

Revision as of 04:11, 7 April 2024

Example:

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

Psychic Resistance NM.png Fire Resistance Full.png Magic Resistance M.png Thunder Immunity.png Radiant Vulnerability.png Slashing Immunity NM.png

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