Template:Saving Throw: Difference between revisions

From bg3.wiki
Jump to navigation Jump to search
No edit summary
(Added documentation template)
 
(One intermediate revision by one other user not shown)
Line 29: Line 29:
| CHA = [[Charisma]] [[saving throw]]
| CHA = [[Charisma]] [[saving throw]]
| #default = {{#if: {{{1|}}} | {{{1|}}} [[saving throw]] | [[Saving throw]] }}
| #default = {{#if: {{{1|}}} | {{{1|}}} [[saving throw]] | [[Saving throw]] }}
}}</includeonly><noinclude>
}}</includeonly><noinclude>{{Documentation|content=
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. 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}}</nowiki>}}
== Examples ==
{{Template demo
| <nowiki>{{Saving Throw}}</nowiki>
| <nowiki>{{Saving Throw|STR}}</nowiki>
| <nowiki>{{Saving Throw|Strength}}</nowiki>
| <nowiki>{{Saving Throw|Custom value}}</nowiki>
| <nowiki>{{Saving Throw|dexterity|dc=12}}</nowiki>
| <nowiki>{{Saving Throw|dexterity|dc=caster}}</nowiki>
| <nowiki>{{Saving Throw|dexterity|dc=weapon action}}</nowiki>
}}


Result: {{Saving Throw}}
== See also ==
 
* {{tlink|Save}} - a shortform version
Usage: {{code|<nowiki>{{Saving Throw|STR}}</nowiki>}}
 
Result: {{Saving Throw|STR}}
 
Usage: {{code|<nowiki>{{Saving Throw|Strength}}</nowiki>}}
 
Result: {{Saving Throw|Strength}}
 
Usage: {{code|<nowiki>{{Saving Throw|Custom value}}</nowiki>}}
 
Result: {{Saving Throw|Custom value}}
 
 
 
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 ==
== Template data ==
Line 98: Line 80:
}
}
</templatedata>
</templatedata>
}}
[[Category:Templates]]</noinclude>
[[Category:Templates]]</noinclude>

Latest revision as of 22:07, 19 January 2025

Template documentation

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. Also supports an optional dc (Difficulty Class) parameter for abilities and spells with fixed DCs.

Examples

Markup Renders as
{{Saving Throw}}
Saving throw
{{Saving Throw|STR}}
Strength saving throw
{{Saving Throw|Strength}}
Strength saving throw
{{Saving Throw|Custom value}}
Custom value saving throw
{{Saving Throw|dexterity|dc=12}}
DC 12  Dexterity saving throw
{{Saving Throw|dexterity|dc=caster}}
Spell save DC  Dexterity saving throw
{{Saving Throw|dexterity|dc=weapon action}}
Weapon action DC  Dexterity saving throw

See also

  • {{Save}} - a shortform version

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