Jump to content

Template:RollStat

From Community Wiki | Soulbound: Online
Template documentationview · edit

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).

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Stat key1

snake_case game key, e.g. attack_speed

Stringrequired
Minimum2

no description

Numberrequired
Maximum3

Omit or repeat the minimum for a flat bonus

Numbersuggested