Template:Saving Throw: Difference between revisions

From Baldur's Gate 3 Wiki
Jump to navigation Jump to search
m (Sky moved page Template:SavingThrow to Template:Saving Throw: Template naming scheme)
No edit summary
 
(15 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<includeonly>{{#if: {{{dc|}}} | [[Difficulty Class|DC]] {{{dc}}}&nbsp; |
<includeonly>{{#if: {{{dc|}}} | {{#switch: {{{dc}}}
}}{{SmallIcon|Saving Throw Icons.png}} {{#switch: {{{1}}}
| caster = [[Dice rolls#Save DCs|Spell save DC]]
| weapon action = [[Dice rolls#Save DCs|Weapon action DC]]
| #default = [[Dice rolls#Save DCs|DC]] {{{dc}}}}}&nbsp;
}}{{Icon|Saving Throw Icons.png|25|caption=}} {{#switch: {{{1}}}
| strength
| strength
| Strength
| Strength
| str
| str
| STR = [[Saving Throw|Strength Save]]
| STR = [[Strength]] [[saving throw]]
| dexterity
| dexterity
| Dexterity
| Dexterity
| dex
| dex
| DEX = [[Saving Throw|Dexterity Save]]
| DEX = [[Dexterity]] [[saving throw]]
| constitution
| constitution
| Constitution
| Constitution
| con
| con
| CON = [[Saving Throw|Constitution Save]]
| CON = [[Constitution]] [[saving throw]]
| intelligence
| intelligence
| Intelligence
| Intelligence
| int
| int
| INT = [[Saving Throw|Intelligence Save]]
| INT = [[Intelligence]] [[saving throw]]
| wisdom
| wisdom
| Wisdom
| Wisdom
| wis
| wis
| WIS = [[Saving Throw|Wisdom Save]]
| WIS = [[Wisdom]] [[saving throw]]
| charisma
| charisma
| Charisma
| Charisma
| cha
| cha
| CHA = [[Saving Throw|Charisma Save]]
| CHA = [[Charisma]] [[saving throw]]
| #default = [[Saving Throw]]
| #default = {{#if: {{{1|}}} | {{{1|}}} [[saving throw]] | [[Saving throw]] }}
}}</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.


Usage: {{code|<nowiki>{{SavingThrow}}</nowiki>}}
Usage: {{code|<nowiki>{{Saving Throw}}</nowiki>}}


Result: {{SavingThrow}}
Result: {{Saving Throw}}


Usage: {{code|<nowiki>{{SavingThrow|STR}}</nowiki>}}
Usage: {{code|<nowiki>{{Saving Throw|STR}}</nowiki>}}


Result: {{SavingThrow|STR}}
Result: {{Saving Throw|STR}}


Usage: {{code|<nowiki>{{SavingThrow|Strength}}</nowiki>}}
Usage: {{code|<nowiki>{{Saving Throw|Strength}}</nowiki>}}


Result: {{SavingThrow|Strength}}
Result: {{Saving Throw|Strength}}


Usage: {{code|<nowiki>{{Saving Throw|Custom value}}</nowiki>}}


Also supports an optional <code>dc</code> ([[Difficulty Class]]) parameter for abilities and spells with fixed DCs.
Result: {{Saving Throw|Custom value}}


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


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


Auto-generated TemplateData follows.
Also supports an optional <code>dc</code> ([[Dice rolls#Save DCs|Difficulty Class]]) parameter for abilities and spells with fixed DCs.
----
 
Usage: {{code|<nowiki>{{Saving Throw|dexterity|dc=12}}</nowiki>}}
 
Result: {{Saving Throw|dexterity|dc=12}}
 
Usage: {{code|<nowiki>{{Saving Throw|dexterity|dc=caster}}</nowiki>}}
 
Result: {{Saving Throw|dexterity|dc=caster}}
 
Usage: {{code|<nowiki>{{Saving Throw|dexterity|dc=weapon action}}</nowiki>}}
 
Result: {{Saving Throw|dexterity|dc=weapon action}}
 
== Template data ==
<templatedata>
<templatedata>
{
{
Line 70: Line 85:
"description": "(Optional) the Difficulty Class of the Saving Throw",
"description": "(Optional) the Difficulty Class of the Saving Throw",
"example": "12",
"example": "12",
"type": "number",
"suggestedvalues": [
"12",
"weapon action",
"caster"
],
"type": "string",
"suggested": true
"suggested": true
}
}
Line 77: Line 97:
"description": "Visually represent a type of Saving Throw in a semi-compact fashion."
"description": "Visually represent a type of Saving Throw in a semi-compact fashion."
}
}
</templatedata></noinclude>
</templatedata>
[[Category:Templates]]</noinclude>

Latest revision as of 23:29, 5 February 2024

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: {{Saving Throw}}

Result: Saving throw

Usage: {{Saving Throw|STR}}

Result: Strength saving throw

Usage: {{Saving Throw|Strength}}

Result: Strength saving throw

Usage: {{Saving Throw|Custom value}}

Result: Custom value saving throw


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

Usage: {{Saving Throw|dexterity|dc=12}}

Result: DC 12  Dexterity saving throw

Usage: {{Saving Throw|dexterity|dc=caster}}

Result: Spell save DC  Dexterity saving throw

Usage: {{Saving Throw|dexterity|dc=weapon action}}

Result: Weapon action DC  Dexterity saving throw

Template data

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

Suggested values
12 weapon action caster
Example
12
Stringsuggested