Template:RollStat/doc
Appearance
This is the documentation subpage for Template:RollStat. It holds usage notes, parameters and examples, and is transcluded onto the template page itself. Edit the documentation here; edit the template's code on the template page.
One bonus-stat chip inside a Possible rolls table cell. It resolves the stat's name, its link and its unit from the key, so a whole roll band is written without repeating any of them.
{{RollStat|attack_speed|5.6|6.7}} → Attack Speed +(5.6–6.7)%
- Separate chips with a single space and nothing else. The middle dot between them is drawn by CSS. Typing commas or bullets yourself gives you two separators.
- Omit the third parameter, or repeat the second, for a flat bonus:
{{RollStat|power|10}}→ Power +10. - Pass bare numbers. The
+sign and the%are added for you; a negative value keeps its minus. - Use it inside
{{RollRow}}
's stats parameter. For a stat named in ordinary prose use {{Stat}}
instead.
This template is a one-line wrapper around {{#invoke:Stat|rollstat}}. Stat names and units live in Module:Gear/data; add a missing stat there.
One rolled bonus-stat chip (name link + range, unit resolved from the key).
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Stat key | 1 | snake_case game key, e.g. attack_speed | String | required |
| Minimum | 2 | no description | Number | required |
| Maximum | 3 | Omit or repeat the minimum for a flat bonus | Number | suggested |