Template:Ability: Difference between revisions

From bg3.wiki
Jump to navigation Jump to search
m (clarify as requested on talk)
No edit summary
Line 1: Line 1:
<includeonly>[[File:{{{1}}} icon.png|frameless|{{{2|24}}}px|link={{{1}}}]] [[{{{1}}}]]</includeonly><noinclude>[[Category:Templates]]
<includeonly>[[File:{{{1}}} icon.png|frameless|{{{2|24}}}px|link={{{1}}}]] [[{{{1}}}]]</includeonly><noinclude>
Represents the main 6 abilities. Please do '''not''' use this template for saving throws and ability checks. Use [[Template:Saving Throw]] and [[Template:Ability Check]] instead.
{{documentation|content=
This template is used to visually represent the main 6 abilities. Do note that saving throws should instead use [[Template:Saving throw]], while ability checks should use [[Template:Ability Check]].


Use only with these six magic words:
Usage: <code><nowiki>{{Ability|Strength}}</nowiki></code>


<code><nowiki>{{Ability|Strength}}</nowiki></code>
Result: {{Ability|Strength}}
{{Ability|Strength}}


<code><nowiki>{{Ability|Dexterity|15}}</nowiki></code>
Usage: <code><nowiki>{{Ability|Dexterity|15}}</nowiki></code>
{{Ability|Dexterity|15}}


<code><nowiki>{{Ability|Constitution|30}}</nowiki></code>
Result: {{Ability|Dexterity|15}}
{{Ability|Constitution|30}}


<code><nowiki>{{Ability|Intelligence|20}}</nowiki></code>
Usage: <code><nowiki>{{Ability|Constitution|30}}</nowiki></code>
{{Ability|Intelligence|20}}


<code><nowiki>{{Ability|Wisdom|20}}</nowiki></code>
Result: {{Ability|Constitution|30}}
{{Ability|Wisdom|20}}


<code><nowiki>{{Ability|Charisma|40}}</nowiki></code>
Usage: <code><nowiki>{{Ability|Intelligence|20}}</nowiki></code>
{{Ability|Charisma|40}}


Parameter '''<nowiki>{{{2}}}</nowiki>''' defines the pixel size of the accompanying icon.  
Result: {{Ability|Intelligence|20}}
</noinclude>
 
Usage: <code><nowiki>{{Ability|Wisdom|20}}</nowiki></code>
 
Result: {{Ability|Wisdom|20}}
 
Usage: <code><nowiki>{{Ability|Charisma|40}}</nowiki></code>
 
Result: {{Ability|Charisma|40}}
 
[[Category:Templates]]
== Template data==
<templatedata>
{
"params": {
"1": {
"label": "Skill name",
"description": "The name of the skill.",
"type": "string",
"required": true
},
"2": {
"label": "Icon size",
"description": "The pixel size of the accompanying icon.",
"type": "number"
}
}
}
</templatedata>}}</noinclude>

Revision as of 22:39, 26 January 2024

Template documentation

This template is used to visually represent the main 6 abilities. Do note that saving throws should instead use Template:Saving throw, while ability checks should use Template:Ability Check.

Usage: {{Ability|Strength}}

Result: Strength icon.png Strength

Usage: {{Ability|Dexterity|15}}

Result: Dexterity icon.png Dexterity

Usage: {{Ability|Constitution|30}}

Result: Constitution icon.png Constitution

Usage: {{Ability|Intelligence|20}}

Result: Intelligence icon.png Intelligence

Usage: {{Ability|Wisdom|20}}

Result: Wisdom icon.png Wisdom

Usage: {{Ability|Charisma|40}}

Result: Charisma icon.png Charisma

Template data

No description.

Template parameters

ParameterDescriptionTypeStatus
Skill name1

The name of the skill.

Stringrequired
Icon size2

The pixel size of the accompanying icon.

Numberoptional