From Arms of God Wiki

Revision as of 03:52, 10 June 2026 by Ta1ha (talk | contribs) (bot: publish Upgrades)

base_infobox — generic library infobox skeleton.

The wiki-builder inserts per-category rows at `|- ! Tier | — |- ! Price | — |- ! Availability | — |- ! Stats | —`. Colors are driven by `--infobox-*` CSS variables in `MediaWiki:Common.css`, not inline hex — see the header comment. Each generated row MUST follow Pattern B (see header comment). Template parameter names are the plan's `field` labels (`Tier`, `Damage`, `Effects`), not the raw `source` field names from the data.

Every row that the builder emits comes from a single `infobox_fields[]` entry in `plan.json`. Importance:

  • `must` — always emit row; value defaults to em-dash when missing.
  • `optional` — always emit row; value defaults to em-dash when missing. (Same Pattern B shape — uniform infobox shape is more important than hiding rows.)
  • `hidden` — do not emit the row at all.

Values arrive pre-resolved from Phase 4.5: no `tr()` calls, no template substitution, no res:// paths. The template just renders what it was passed.

For boolean-presence fields where the plan wants both states displayed (e.g. "Cursed" vs "Normal"), use boolean_row.wiki. For the icon row, use the snippet at icon_row.wiki — it is the ONLY shape allowed for icon rows.