Template:Saving Throw: Difference between revisions

From bg3.wiki
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|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
}
}

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}}

Result: STR Save

Usage: {{SavingThrow|Strength}}

Result: STR Save


Also supports an optional dc (Difficulty Class) parameter.

Usage: {{SavingThrow|dexterity|dc=12}}

Result: DEX Save (DC 12)

Auto-generated TemplateData follows.


Visually represent a type of Saving Throw in a semi-compact fashion.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Saving Throw Type (Optional)1

no description

Suggested values
STR DEX CON INT WIS CHA
Stringsuggested
Difficulty Class (DC)dc

(Optional) the Difficulty Class of the Saving Throw

Example
12
Numbersuggested