Template:Ability check: Difference between revisions

From bg3.wiki
Jump to navigation Jump to search
(Added support for comma separated list)
(New demo template)
 
Line 4: Line 4:
The first parameter is the skill or ability being checked, and the second (optional) parameter is the [[DC]]. If no parameters are supplied, it will instead display a link to [[Ability Check]].
The first parameter is the skill or ability being checked, and the second (optional) parameter is the [[DC]]. If no parameters are supplied, it will instead display a link to [[Ability Check]].


Usage: <code><nowiki>{{Ability check}}</nowiki></code>
== Examples ==
 
{{Template demo
Result: {{Ability check}}
| <nowiki>{{Ability check}}</nowiki>
 
| <nowiki>{{Ability check|Sleight of Hand|20}} </nowiki>
Usage: <code><nowiki>{{Ability check|Sleight of Hand|20}} </nowiki></code>
| <nowiki>{{Ability check|Dexterity}}</nowiki>
 
| <nowiki>{{Ability check|Strength, Dexterity}}</nowiki>
Result: {{Ability check|Sleight of Hand|20}}
| <nowiki>{{Ability check|Sleight of Hand, Animal Handling, Strength|16}}</nowiki>
 
}}
Usage: <code><nowiki>{{Ability check|Dexterity}}</nowiki></code>
 
Result: {{Ability check|Dexterity}}
 
Usage: <code><nowiki>{{Ability check|Strength, Dexterity}}</nowiki></code>
 
Result: {{Ability check|Strength, Dexterity}}
 
Usage: <code><nowiki>{{Ability check|Sleight of Hand, Animal Handling, Strength|16}}</nowiki></code>
 
Result: {{Ability check|Sleight of Hand, Animal Handling, Strength|16}}


[[Category:Templates]]
[[Category:Templates]]

Latest revision as of 04:39, 20 July 2024

Template documentation

This template is used to represent Skill or Ability Checks. Saving throws should use Template:Saving throw instead.

The first parameter is the skill or ability being checked, and the second (optional) parameter is the DC. If no parameters are supplied, it will instead display a link to Ability Check.

Examples

Markup Renders as
{{Ability check}}
Ability check
{{Ability check|Sleight of Hand|20}} 
DC 20 Sleight of Hand check
{{Ability check|Dexterity}}
Dexterity check
{{Ability check|Strength, Dexterity}}
Strength, or Dexterity check
{{Ability check|Sleight of Hand, Animal Handling, Strength|16}}
DC 16 Sleight of Hand, Animal Handling, or Strength check

Template data

No description.

Template parameters

ParameterDescriptionTypeStatus
Skill name1

The name of the skill associated with the ability check. Can also use a comma separated list

Stringrequired
Difficulty Class2

The Difficulty Class of the check.

Numberoptional