Template:Resistances: Difference between revisions
Jump to navigation
Jump to search
m (fix width issue caused by taylan's global css edit :^)) |
m (add more usage guidelines) |
||
Line 15: | Line 15: | ||
|}}{{#if:{{{Thunder|}}}|<tr><td>{{DamageType|Thunder}}</td><td>{{{Thunder}}}</td></tr> | |}}{{#if:{{{Thunder|}}}|<tr><td>{{DamageType|Thunder}}</td><td>{{{Thunder}}}</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: | ||
Revision as of 10:48, 14 February 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 |