Ad placeholder

Template:Saving Throw: Difference between revisions

Jump to navigation Jump to search
add optional DC parameter
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|dexterity}}</nowiki>}}
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
}
}

Navigation menu