Jump to content

Template:Stat/doc

From Community Wiki | Soulbound: Online
This is the documentation subpage for Template:Stat. 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.

Turns a game stat key into the stat's player-facing name, linked to its page. Use it anywhere a stat is named — roll tables, set pages, list pages, prose built from data.

{{Stat|critical_strike_chance}}Critical Strike Chance

  • Keys are the game's own snake_case namesattack_speed, power_shielding, resistance_fire.
  • An unknown key renders as itself, unlinked. That is deliberate: a stat the wiki does not know about shows as plain text instead of vanishing. If you meet one, it needs a line in Module:Gear/data — see Module:Gear/data/doc.
  • No unit is added. Pair it with {{Stat/unit}}

, or use {{Range}}

or {{RollStat}}
where the unit comes along automatically.

This template is a one-line wrapper around {{#invoke:Stat|name}}. The names, units and primary flags live in Module:Gear/data; the rendering lives in Module:Stat. Add a stat to the module, not here — there is nothing on this template page to edit.

Linked player-facing name for a game stat key.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Stat key1

snake_case key from the game data, e.g. attack_speed

Stringrequired