Template:Ability check: Difference between revisions

From Baldur's Gate 3 Wiki
Jump to navigation Jump to search
(rename template)
(Added support for comma separated list)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
<includeonly>{{icon|D20.png|25|caption=}} {{#if: {{{2|}}} | DC {{{2}}}}} {{#if:{{{1|}}}|[[{{{1}}}]] [[Ability Check|check]]|[[Ability check]]}}</includeonly><noinclude>
<includeonly>{{icon|D20.png|25|caption=}} {{#if: {{{2|}}} | DC {{{2}}}}} {{#if:{{{1|}}}|{{#invoke:ParseList|main|{{{1|}}}|makeLinks=yes|textLastDelim=<nowiki>, or </nowiki>}} [[Ability check|check]]|[[Ability check]]}}</includeonly><noinclude>{{documentation|content=
 
This template is used to represent Skill or Ability Checks. Saving throws should use [[Template:Saving throw]] instead.
This template is used to represent Skill or Ability Checks. Saving throws should use [[Template:Saving throw]] instead.


Line 16: Line 15:


Result: {{Ability check|Dexterity}}
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]]
</noinclude>
== Template data==
<templatedata>
{
"params": {
"1": {
"label": "Skill name",
"description": "The name of the skill associated with the ability check. Can also use a comma separated list",
"type": "string",
"required": true
},
"2": {
"label": "Difficulty Class",
"description": "The Difficulty Class of the check.",
"type": "number"
}
}
}
</templatedata>}}</noinclude>

Latest revision as of 10:44, 9 January 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.

Usage: {{Ability check}}

Result: Ability check

Usage: {{Ability check|Sleight of Hand|20}}

Result: DC 20 Sleight of Hand check

Usage: {{Ability check|Dexterity}}

Result: Dexterity check

Usage: {{Ability check|Strength, Dexterity}}

Result: Strength, or Dexterity check

Usage: {{Ability check|Sleight of Hand, Animal Handling, Strength|16}}

Result: 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