Template:Ability: Difference between revisions
Jump to navigation
Jump to search
HiddenDragon (talk | contribs) (Added see also) |
HiddenDragon (talk | contribs) mNo edit summary |
||
(2 intermediate revisions by the same user not shown) | |||
Line 5: | Line 5: | ||
| Intelligence | | Intelligence | ||
| Wisdom | | Wisdom | ||
| Charisma = {{IconLink|{{{1}}} | | Charisma = {{IconLink|{{{1}}} Small Icon.png|{{{1}}}|{{{2|{{{1}}}}}}|size={{{w|25}}}|nowrap=y}} | ||
| #default = [[{{{1}}}|{{{2|{{{1}}}}}}]] | | #default = [[{{{1}}}|{{{2|{{{1}}}}}}]] | ||
}}</includeonly><noinclude>{{documentation|content= | }}</includeonly><noinclude>{{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]]. | 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 == | |||
This is intended mainly for lists, not in-line in body content as per the [[Help:Style manual|Style Manual]]. The ability name is case sensitive and needs to exactly match (e.g. Strength, not STR). | |||
== Examples == | == Examples == | ||
Line 24: | Line 27: | ||
== See also == | == See also == | ||
* {{t link|Background}} - An equivalent template for [[backgrounds]] | * {{t link|Background}} - An equivalent template for [[backgrounds]] | ||
* {{t link|Deity}} - An equivalent template for [[deities]] | |||
* {{t link|Class}} - An equivalent template for [[classes]] | * {{t link|Class}} - An equivalent template for [[classes]] | ||
* {{t link|Race}} - An equivalent template for [[races|playable races]] | * {{t link|Race}} - An equivalent template for [[races|playable races]] |
Latest revision as of 21:42, 29 July 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
This is intended mainly for lists, not in-line in body content as per the Style Manual. The ability name is case sensitive and needs to exactly match (e.g. Strength, not STR).
Examples
Example | Markup | Renders as |
---|---|---|
Basic usage | {{Ability|Strength}} | |
Adjusted icon size | {{Ability|Dexterity|w=15}} | |
Link alias | {{Ability|Constitution|CON}} | |
Alias and adjusted size | {{Ability|Intelligence|INT|w=40}} |
See also
- {{Background}} - An equivalent template for backgrounds
- {{Deity}} - An equivalent template for deities
- {{Class}} - An equivalent template for classes
- {{Race}} - An equivalent template for playable races
- {{Skill}} - An equivalent template for skills
Template data
Insert a link to an ability score accompanied by the associated icon.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Ability name | 1 | The name of the ability score.
| String | required |
Alias | 2 | A user-defined alias to be shown instead of the ability name. | String | optional |
Icon size | w | The pixel size of the accompanying icon. | Number | optional |