Template:Resistances: Difference between revisions

From bg3.wiki
Jump to navigation Jump to search
No edit summary
mNo edit summary
Tags: Mobile edit Mobile web edit Advanced mobile edit
 
(3 intermediate revisions by one other user not shown)
Line 1: Line 1:
<includeonly><table class="wikitable" style="width: 20%;">
<includeonly><table class="wikitable" style="width: 62%;">
<caption>Resistances</caption>
<caption>Resistances</caption>
{{#if:{{{Bludgeoning|}}}|<tr><td>{{DamageType|Bludgeoning}}</td><td>{{{Bludgeoning}}}</td></tr>
{{#if:{{{Bludgeoning|}}}|<tr><td>{{DamageType|Bludgeoning}}</td><td>{{{Bludgeoning}}}</td></tr>
Line 11: Line 11:
|}}{{#if:{{{Necrotic|}}}|<tr><td>{{DamageType|Necrotic}}</td><td>{{{Necrotic}}}</td></tr>
|}}{{#if:{{{Necrotic|}}}|<tr><td>{{DamageType|Necrotic}}</td><td>{{{Necrotic}}}</td></tr>
|}}{{#if:{{{Poison|}}}|<tr><td>{{DamageType|Poison}}</td><td>{{{Poison}}}</td></tr>
|}}{{#if:{{{Poison|}}}|<tr><td>{{DamageType|Poison}}</td><td>{{{Poison}}}</td></tr>
|}}{{#if:{{{Psychic|}}}|<tr><td>{{DamageType|Psychic}}</td><td>{{{Psychic}}}</td></tr>
|}}{{#if:{{{Radiant|}}}|<tr><td>{{DamageType|Radiant}}</td><td>{{{Radiant}}}</td></tr>
|}}{{#if:{{{Radiant|}}}|<tr><td>{{DamageType|Radiant}}</td><td>{{{Radiant}}}</td></tr>
|}}{{#if:{{{Thunder|}}}|<tr><td>{{DamageType|Thunder}}</td><td>{{{Thunder}}}</td></tr>
|}}{{#if:{{{Thunder|}}}|<tr><td>{{DamageType|Thunder}}</td><td>{{{Thunder}}}</td></tr>
|}}{{#if:{{{Psychic|}}}|<tr><td>{{DamageType|Psychic}}</td><td>{{{Psychic}}}</td></tr>
|}}</table></includeonly><noinclude>
|}}</table></includeonly><noinclude>
Generate a table of resistances for a creature or object. All parameter names (e.g. Fire) and values (e.g. Vulnerable) '''must be Capitalized'''.
Example:
Example:



Latest revision as of 15:00, 17 May 2023

Generate a table of resistances for a creature or object. All parameter names (e.g. Fire) and values (e.g. Vulnerable) must be Capitalized.

Example:

{{Resistances|Slashing=Resistant|Fire=Immune|Cold=Vulnerable}}

Result:

Resistances
Damage TypesSlashingResistant
Damage TypesColdVulnerable
Damage TypesFireImmune

All possible damage types; accepts damage types in any order:

{{Resistances
| Bludgeoning = Immune
| Slashing = Immune
| Piercing = Resistant
| Acid = Resistant
| Cold = Resistant
| Fire = Resistant
| Force = Vulnerable
| Lightning = Resistant
| Necrotic = Resistant
| Poison = Resistant
| Radiant = Resistant
| Thunder = Resistant
| Psychic = Resistant
}}

Result:

Resistances
Damage TypesBludgeoningImmune
Damage TypesPiercingResistant
Damage TypesSlashingImmune
Damage TypesAcidResistant
Damage TypesColdResistant
Damage TypesFireResistant
Damage TypesForceVulnerable
Damage TypesLightningResistant
Damage TypesNecroticResistant
Damage TypesPoisonResistant
Damage TypesPsychicResistant
Damage TypesRadiantResistant
Damage TypesThunderResistant