Template:Saving Throw: Difference between revisions

From Baldur's Gate 3 Wiki
Jump to navigation Jump to search
No edit summary
(reformat display of the DC parameter for more flexible inline usage)
Line 1: Line 1:
<includeonly>{{SmallIcon|Saving Throw Icons.png}} {{#switch: {{{1}}}
<includeonly>{{#if: {{{dc|}}} | [[Difficulty Class|DC]] {{{dc}}} |
}}{{SmallIcon|Saving Throw Icons.png}} {{#switch: {{{1}}}
| strength
| strength
| Strength
| Strength
Line 25: Line 26:
| CHA = [[Saving Throw|Charisma Save]]
| CHA = [[Saving Throw|Charisma Save]]
| #default = [[Saving Throw]]
| #default = [[Saving Throw]]
}}{{#if: {{{dc|}}} | &nbsp;([[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 42: Line 42:




Also supports an optional <code>dc</code> (Difficulty Class) parameter.
Also supports an optional <code>dc</code> ([[Difficulty Class]]) parameter for abilities and spells with fixed DCs.


Usage: {{code|<nowiki>{{SavingThrow|dexterity|dc=12}}</nowiki>}}
Usage: {{code|<nowiki>{{SavingThrow|dexterity|dc=12}}</nowiki>}}

Revision as of 19:47, 25 August 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: Strength Save

Usage: {{SavingThrow|Strength}}

Result: Strength Save


Also supports an optional dc (Difficulty Class) parameter for abilities and spells with fixed DCs.

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

Result: DC 12 Dexterity Save

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