Template:Ability check: Difference between revisions

From bg3.wiki
Jump to navigation Jump to search
(Created.)
 
(Add no-param option)
Line 1: Line 1:
<includeonly>{{icon|D20.png|30}} {{#if: {{{2|}}} | DC {{{2}}}}} [[{{{1}}}]] check</includeonly><noinclude>
<includeonly>{{icon|D20.png|30}} {{#if: {{{2|}}} | DC {{{2}}}}} {{#if:{{{1|}}}|[[{{{1}}}]] check|[[Ability Check]]}}</includeonly><noinclude>


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


The first parameter is the skill or ability being checked, and the second (optional) parameter is the [[DC]].  
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>{{SkillCheck|Sleight of Hand|20}} </nowiki></code>
Usage: <code><nowiki>{{Ability Check}}</nowiki></code>


Result: {{SkillCheck|Sleight of Hand|20}}  
Result: {{Ability Check}}


Usage: <code><nowiki>{{SkillCheck|Dexterity}}</nowiki></code>
Usage: <code><nowiki>{{Ability Check|Sleight of Hand|20}} </nowiki></code>


Result: {{SkillCheck|Dexterity}}
Result: {{Ability Check|Sleight of Hand|20}}
 
Usage: <code><nowiki>{{Ability Check|Dexterity}}</nowiki></code>
 
Result: {{Ability Check|Dexterity}}
</noinclude>
</noinclude>

Revision as of 16:48, 6 October 2023


This template is used to represent Skill or Ability Checks. Saving throws should use Template:SavingThrow 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: D20.png Ability Check

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

Result: D20.png DC 20 Sleight of Hand check

Usage: {{Ability Check|Dexterity}}

Result: D20.png Dexterity check