From Arms of God Wiki

Revision as of 16:04, 10 June 2026 by Ta1ha (talk | contribs) (bot: documentation pass — editor-facing docs (data descriptions, module comments, template usage, Help rewrite))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

What this template does

Renders the infobox panel at the top right of every Upgrade page. You normally never call it by hand: each detail page calls {{#invoke:Upgrades|infobox|id=<slug>}}, and Module:Core computes the values from Data:Upgrades.json at render time, then passes them to this template as parameters. This template is presentation only — row layout, header color, em-dash fallbacks. To change a VALUE, edit the source Data page; to change WHICH fields are computed, edit Module:Core; to change how the box looks, edit here.

Parameters

  • name — display name, shown in the colored header.
  • id — the game's internal id, shown small under the icon.
  • iconFile: image name for the entity's icon.
  • Tier
  • Price
  • Availability
  • Stats

If you add or remove a row here, keep Module:Core's INFOBOX_FIELD_ORDER.Upgrades list in sync — that list decides which computed values get passed in.

Row shape

Every body row follows this exact shape (keep it when adding rows):

|-
! Label
| {{#if:{{{Label|}}}|{{{Label}}}|—}}

The row markers (|-, !, |) stay OUTSIDE the #if; only the value is conditional. Missing data then shows an em-dash instead of breaking the table layout.

Styling

Colors come from the site theme tokens (var(--infobox-*, fallback) — defined in MediaWiki:Common.css, with inline fallbacks so the box renders correctly even without site CSS).