Template:Saving Throw: Difference between revisions
(change casing) |
HiddenDragon (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
<includeonly>{{#if: {{{dc|}}} | [[DC]] {{{dc}}} | <includeonly>{{#if: {{{dc|}}} | {{#switch: {{{dc}}} | ||
| caster = [[DC|Spell DC]] | |||
| weapon action = [[DC|Weapon action DC]] | |||
| #default = [[DC]] {{{dc}}}}} | |||
}}{{Icon|Saving Throw Icons.png|25|caption=}} {{#switch: {{{1}}} | }}{{Icon|Saving Throw Icons.png|25|caption=}} {{#switch: {{{1}}} | ||
| strength | | strength | ||
Line 52: | Line 55: | ||
Result: {{Saving Throw|dexterity|dc=12}} | Result: {{Saving Throw|dexterity|dc=12}} | ||
Usage: {{code|<nowiki>{{Saving Throw|dexterity|dc=caster}}</nowiki>}} | |||
Result: {{Saving Throw|dexterity|dc=caster}} | |||
Usage: {{code|<nowiki>{{Saving Throw|dexterity|dc=weapon action}}</nowiki>}} | |||
Result: {{Saving Throw|dexterity|dc=weapon action}} | |||
== Template data == | == Template data == | ||
Line 74: | Line 85: | ||
"description": "(Optional) the Difficulty Class of the Saving Throw", | "description": "(Optional) the Difficulty Class of the Saving Throw", | ||
"example": "12", | "example": "12", | ||
"type": " | "suggestedvalues": [ | ||
"12", | |||
"weapon action", | |||
"caster" | |||
], | |||
"type": "string", | |||
"suggested": true | "suggested": true | ||
} | } |
Revision as of 17:37, 13 November 2023
Visually represent a type of Saving Throw in a semi-compact fashion. Accepts the full or abbreviated form of any Ability Score as an optional parameter.
Usage: {{Saving Throw}}
Result: Saving throw
Usage: {{Saving Throw|STR}}
Result: Strength saving throw
Usage: {{Saving Throw|Strength}}
Result: Strength saving throw
Usage: {{Saving Throw|Custom value}}
Result: Custom value saving throw
Also supports an optional dc
(Difficulty Class) parameter for abilities and spells with fixed DCs.
Usage: {{Saving Throw|dexterity|dc=12}}
Result: DC 12 Dexterity saving throw
Usage: {{Saving Throw|dexterity|dc=caster}}
Result: Spell DC Dexterity saving throw
Usage: {{Saving Throw|dexterity|dc=weapon action}}
Result: Weapon action DC Dexterity saving throw
Template data
Visually represent a type of Saving Throw in a semi-compact fashion.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Saving Throw Type (Optional) | 1 | no description
| String | suggested |
Difficulty Class (DC) | dc | (Optional) the Difficulty Class of the Saving Throw
| String | suggested |