Template:Saving Throw: Difference between revisions

From bg3.wiki
Jump to navigation Jump to search
(add optional DC parameter)
m (fix spacing when dc parameter is absent)
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}}}) |
}}{{#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.

Revision as of 07:30, 14 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