Template:AS5e
Appearance
This template is designed to display the modifier for Dungeons & Dragons 5th Edition ability scores.
To use, simply input the ability score as a parameter. For example:
{{AS5e|12}}will display the modifier for an ability score as a tooltip
12
{{#switch: {{{1}}}
| 1 = {{#tip-text: 1 |-5}}
| 2 = {{#tip-text: 2 |-4}}
| 3 = {{#tip-text: 3 |-4}}
| 4 = {{#tip-text: 4 |-3}}
| 5 = {{#tip-text: 5 |-3}}
| 6 = {{#tip-text: 6 |-2}}
| 7 = {{#tip-text: 7 |-2}}
| 8 = {{#tip-text: 8 |-1}}
| 9 = {{#tip-text: 9 |-1}}
| 10 = {{#tip-text: 10 |±0}}
| 11 = {{#tip-text: 11 |±0}}
| 12 = {{#tip-text: 12 |+1}}
| 13 = {{#tip-text: 13 |+1}}
| 14 = {{#tip-text: 14 |+2}}
| 15 = {{#tip-text: 15 |+2}}
| 16 = {{#tip-text: 16 |+3}}
| 17 = {{#tip-text: 17 |+3}}
| 18 = {{#tip-text: 18 |+4}}
| 19 = {{#tip-text: 19 |+4}}
| 20 = {{#tip-text: 20 |+5}}
| 21 = {{#tip-text: 21 |+5}}
| 22 = {{#tip-text: 22 |+6}}
| 23 = {{#tip-text: 23 |+6}}
| 24 = {{#tip-text: 24 |+7}}
| 25 = {{#tip-text: 25 |+7}}
| 26 = {{#tip-text: 26 |+8}}
| 27 = {{#tip-text: 27 |+8}}
| 28 = {{#tip-text: 28 |+9}}
| 29 = {{#tip-text: 29 |+9}}
| 30 = {{#tip-text: 30 |+10}}
| #default = Invalid input