Template:Resistances: Difference between revisions
Jump to navigation
Jump to search
(DRAFT-WIP) |
mNo edit summary Tags: Mobile edit Mobile web edit Advanced mobile edit |
||
(4 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly><table class="wikitable"> | <includeonly><table class="wikitable" style="width: 62%;"> | ||
<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:{{{Psychic|}}}|<tr><td>{{DamageType|Psychic}}</td><td>{{{Psychic}}}</td></tr> | |||
|}}{{#if:{{{Radiant|}}}|<tr><td>{{DamageType|Radiant}}</td><td>{{{Radiant}}}</td></tr> | |||
|}}{{#if:{{{Thunder|}}}|<tr><td>{{DamageType|Thunder}}</td><td>{{{Thunder}}}</td></tr> | |||
|}}</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: | |||
== | <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 | |||
}} |
Latest revision as of 14: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:
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 |
Psychic | Resistant |
Radiant | Resistant |
Thunder | Resistant |