Template:Saving Throw: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
(add optional DC parameter) |
||
Line 25: | Line 25: | ||
| CHA = [[Charisma|CHA]] [[Saving Throw|Save]] | | CHA = [[Charisma|CHA]] [[Saving Throw|Save]] | ||
| #default = [[Saving Throw]] | | #default = [[Saving Throw]] | ||
}} {{#if: {{{dc|}}} | ([[Difficulty Class|DC]] {{{dc}}}) | | |||
}}</includeonly><noinclude> | }}</includeonly><noinclude> | ||
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. | 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. | ||
Line 36: | Line 37: | ||
Result: {{SavingThrow|STR}} | Result: {{SavingThrow|STR}} | ||
Usage: {{code|<nowiki>{{SavingThrow| | Usage: {{code|<nowiki>{{SavingThrow|Strength}}</nowiki>}} | ||
Result: {{SavingThrow|dexterity}} | Result: {{SavingThrow|Strength}} | ||
Also supports an optional <code>dc</code> (Difficulty Class) parameter. | |||
Usage: {{code|<nowiki>{{SavingThrow|dexterity|dc=12}}</nowiki>}} | |||
Result: {{SavingThrow|dexterity|dc=12}} | |||
Auto-generated TemplateData follows. | Auto-generated TemplateData follows. | ||
Line 56: | Line 64: | ||
"CHA" | "CHA" | ||
], | ], | ||
"suggested": true | |||
}, | |||
"dc": { | |||
"label": "Difficulty Class (DC)", | |||
"description": "(Optional) the Difficulty Class of the Saving Throw", | |||
"example": "12", | |||
"type": "number", | |||
"suggested": true | "suggested": true | ||
} | } |
Revision as of 03:42, 13 March 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: {{SavingThrow}}
Result: Saving Throw
Usage: {{SavingThrow|STR}}
Usage: {{SavingThrow|Strength}}
Also supports an optional dc
(Difficulty Class) parameter.
Usage: {{SavingThrow|dexterity|dc=12}}
Auto-generated TemplateData follows.
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
| Number | suggested |