Jump to content

Template:Infobox Stat/doc

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

The right-rail box on a stat's own page — the 36 pages behind every {{Stat}}

link.

Usage

{{Infobox Stat
| name = Power
| key = power
| primary = yes
| scope = Global
| calculation = Additive
}}
  • key must be the game's own snake_case key and must match the entry in Module:Gear/data. It is what ties the page to every {{Stat|power}} link on the wiki.
  • primary=yes only for the six primaries — Power, Precision, Focus, Ferocity, Vitality, Will. It changes the subtitle and adds the page to Category:Primary stats

.

  • One page per stat, except the resistances, which all share Resistances. Precision's page is Precision (stat); plain Precision is an old relic page.
  • scope distinguishes a global stat from one that only boosts a single ability — see Ability Affinity Stats. calculation is Additive or Multiplicative. Fill cap in only where the game states one.

The template files the page into Category:Stats , adds Category:Primary stats

where applicable, and stamps Category:Pages missing data
when name or key is blank. Do not type those categories by hand.

Infobox for a gear stat page.

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Stat namename

no description

Stringrequired
Internal keykey

snake_case game key, e.g. attack_speed

Stringrequired
Unitunit

% for percentage stats, blank for flat

Stringoptional
Primary statprimary

yes for the six primaries

Stringoptional
Scopescope

Global / Global and affinity

Stringoptional
Calculationcalculation

Additive or Multiplicative

Stringoptional
Default valuedefault

no description

Stringoptional
Capcap

e.g. 40%

Stringoptional