Template:Resistances: Difference between revisions
Jump to navigation
Jump to search
(DRAFT-WIP) |
No edit summary |
||
Line 1: | Line 1: | ||
<includeonly><table class="wikitable"> | <includeonly><table class="wikitable" style="width: 20%;"> | ||
<caption>Resistances</caption> {{#if:{{{Bludgeoning|}}}|<tr><td | <caption>Resistances</caption> | ||
</table></includeonly><noinclude> | {{#if:{{{Bludgeoning|}}}|<tr><td>{{DamageType|Bludgeoning}}</td><td>{{{Bludgeoning}}}</td></tr> | ||
|}}{{#if:{{{Piercing|}}}|<tr><td>{{DamageType|Piercing}}</td><td>{{{Piercing}}}</td></tr> | |||
|}}{{#if:{{{Slashing|}}}|<tr><td>{{DamageType|Slashing}}</td><td>{{{Slashing}}}</td></tr> | |||
|}}{{#if:{{{Acid|}}}|<tr><td>{{DamageType|Acid}}</td><td>{{{Acid}}}</td></tr> | |||
|}}{{#if:{{{Cold|}}}|<tr><td>{{DamageType|Cold}}</td><td>{{{Cold}}}</td></tr> | |||
|}}{{#if:{{{Fire|}}}|<tr><td>{{DamageType|Fire}}</td><td>{{{Fire}}}</td></tr> | |||
|}}{{#if:{{{Force|}}}|<tr><td>{{DamageType|Force}}</td><td>{{{Force}}}</td></tr> | |||
|}}{{#if:{{{Lightning|}}}|<tr><td>{{DamageType|Lightning}}</td><td>{{{Lightning}}}</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:{{{Radiant|}}}|<tr><td>{{DamageType|Radiant}}</td><td>{{{Radiant}}}</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> | |||
Example: | |||
<nowiki>{{Resistances|Slashing=Resistant|Fire=Immune|Cold=Vulnerable}}</nowiki> | |||
Result: | |||
{{Resistances|Slashing=Resistant|Fire=Immune|Cold=Vulnerable}} | {{Resistances|Slashing=Resistant|Fire=Immune|Cold=Vulnerable}} | ||
All possible damage types; accepts damage types in any order: | |||
<pre | <pre><nowiki>{{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 | |||
}}</nowiki></pre> | |||
Result: | Result: | ||
{{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}} | |||
{{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 | |||
}} |
Revision as of 14:53, 30 January 2023
Example:
{{Resistances|Slashing=Resistant|Fire=Immune|Cold=Vulnerable}}
Result:
Slashing | Resistant |
Cold | Vulnerable |
Fire | Immune |
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:
Bludgeoning | Immune |
Piercing | Resistant |
Slashing | Immune |
Acid | Resistant |
Cold | Resistant |
Fire | Resistant |
Force | Vulnerable |
Lightning | Resistant |
Necrotic | Resistant |
Poison | Resistant |
Radiant | Resistant |
Thunder | Resistant |
Psychic | Resistant |