Template:Saving Throw: Difference between revisions
Jump to navigation
Jump to search
m (add a space) |
(New demo template) |
||
(17 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{{#if: {{{dc|}}} | [[ | <includeonly>{{#if: {{{dc|}}} | {{#switch: {{{dc}}} | ||
}}{{ | | caster = [[Dice rolls#Save DCs|Spell save DC]] | ||
| weapon action = [[Dice rolls#Save DCs|Weapon action DC]] | |||
| #default = [[Dice rolls#Save DCs|DC]] {{{dc}}}}} | |||
}}{{Icon|Saving Throw Icons.png|25|caption=}} {{#switch: {{{1}}} | |||
| strength | | strength | ||
| Strength | | Strength | ||
| str | | str | ||
| STR = [[ | | STR = [[Strength]] [[saving throw]] | ||
| dexterity | | dexterity | ||
| Dexterity | | Dexterity | ||
| dex | | dex | ||
| DEX = [[ | | DEX = [[Dexterity]] [[saving throw]] | ||
| constitution | | constitution | ||
| Constitution | | Constitution | ||
| con | | con | ||
| CON = [[ | | CON = [[Constitution]] [[saving throw]] | ||
| intelligence | | intelligence | ||
| Intelligence | | Intelligence | ||
| int | | int | ||
| INT = [[ | | INT = [[Intelligence]] [[saving throw]] | ||
| wisdom | | wisdom | ||
| Wisdom | | Wisdom | ||
| wis | | wis | ||
| WIS = [[ | | WIS = [[Wisdom]] [[saving throw]] | ||
| charisma | | charisma | ||
| Charisma | | Charisma | ||
| cha | | cha | ||
| CHA = [[ | | CHA = [[Charisma]] [[saving throw]] | ||
| #default = [[Saving | | #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. Also supports an optional <code>dc</code> ([[Dice rolls#Save DCs|Difficulty Class]]) parameter for abilities and spells with fixed DCs. | ||
== 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> | |||
}} | |||
== Template data == | |||
<templatedata> | <templatedata> | ||
{ | { | ||
Line 70: | Line 64: | ||
"description": "(Optional) the Difficulty Class of the Saving Throw", | "description": "(Optional) the Difficulty Class of the Saving Throw", | ||
"example": "12", | "example": "12", | ||
"type": " | "suggestedvalues": [ | ||
"12", | |||
"weapon action", | |||
"caster" | |||
], | |||
"type": "string", | |||
"suggested": true | "suggested": true | ||
} | } | ||
Line 77: | Line 76: | ||
"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 04:37, 20 July 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. 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 |
Template data
Visually represent a type of Saving Throw in a semi-compact fashion.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Saving Throw Type (Optional) | 1 | no description
| String | suggested |
Difficulty Class (DC) | dc | (Optional) the Difficulty Class of the Saving Throw
| String | suggested |