Template:Ability check: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
(New demo template) |
||
(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|}}}| | <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. | ||
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]]. | ||
== Examples == | |||
{{Template demo | |||
| <nowiki>{{Ability check}}</nowiki> | |||
| <nowiki>{{Ability check|Sleight of Hand|20}} </nowiki> | |||
| <nowiki>{{Ability check|Dexterity}}</nowiki> | |||
| <nowiki>{{Ability check|Strength, Dexterity}}</nowiki> | |||
| <nowiki>{{Ability check|Sleight of Hand, Animal Handling, Strength|16}}</nowiki> | |||
}} | |||
[[Category:Templates]] | [[Category:Templates]] | ||
Line 23: | Line 20: | ||
"1": { | "1": { | ||
"label": "Skill name", | "label": "Skill name", | ||
"description": "The name of the skill associated with the ability check.", | "description": "The name of the skill associated with the ability check. Can also use a comma separated list", | ||
"type": "string", | "type": "string", | ||
"required": true | "required": true |
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.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Skill name | 1 | The name of the skill associated with the ability check. Can also use a comma separated list | String | required |
Difficulty Class | 2 | The Difficulty Class of the check. | Number | optional |