From Arms of God Wiki

bot: Phase 12 grade-S (comparison tables + tier theming)
bot: publish Crux
Line 66: Line 66:
   silently vanishing.
   silently vanishing.
====================================================================
====================================================================
--><div class="infobox" style="border:2px solid var(--infobox-border, #000000);background:var(--infobox-bg, #fff7e6);padding:0.5em;float:right;width:280px;">
--><div class="infobox" style="border:2px solid var(--infobox-border, #3a3c44);background:var(--infobox-bg, #1c1d22);color:var(--infobox-text, #e6e6e6);padding:0.5em;float:right;width:280px;">
{| style="width:100%;"
{| style="width:100%;"
! colspan="2" style="{{#switch:{{{Type|}}}|Unique=background:#e94040;color:#ffffff;|Buff=background:#69c343;color:#000000;|Debuff=background:#bbbbbb;color:#000000;|Aura=background:#7b9fe0;color:#000000;|Action=background:#000000;color:#ffffff;|#default=background:var(--infobox-header-bg, #000000);color:var(--infobox-header-fg, #ffffff);}}font-size:1.2em;text-align:center;" | {{{name|}}}
! colspan="2" style="{{#switch:{{{Type|}}}|Unique=background:#e94040;color:#ffffff;|Buff=background:#69c343;color:#000000;|Debuff=background:#bbbbbb;color:#000000;|Aura=background:#7b9fe0;color:#000000;|Action=background:#3a3c44;color:#ffffff;|#default=background:var(--infobox-header-bg, #26272e);color:var(--infobox-header-fg, #f1e9d2);}}font-size:1.2em;text-align:center;" | {{{name|}}}
|-
|-
| colspan="2" style="text-align:center;" | {{#if:{{{icon|}}}|[[File:{{{icon}}}{{!}}96px{{!}}alt={{{name|}}}]]|—}}
| colspan="2" style="text-align:center;" | {{#if:{{{icon|}}}|[[File:{{{icon}}}{{!}}96px{{!}}alt={{{name|}}}]]|—}}
|-
|-
| colspan="2" style="text-align:center;padding:3px 0;" | {{#if:{{{Type|}}}|{{#switch:{{{Type}}}|Unique=<span style="display:inline-block;padding:1px 8px;border-radius:3px;font-size:0.85em;font-weight:bold;background:#e94040;color:#ffffff;">Unique</span>|Buff=<span style="display:inline-block;padding:1px 8px;border-radius:3px;font-size:0.85em;font-weight:bold;background:#69c343;color:#000000;">Buff</span>|Debuff=<span style="display:inline-block;padding:1px 8px;border-radius:3px;font-size:0.85em;font-weight:bold;background:#bbbbbb;color:#000000;">Debuff</span>|Aura=<span style="display:inline-block;padding:1px 8px;border-radius:3px;font-size:0.85em;font-weight:bold;background:#7b9fe0;color:#000000;">Aura</span>|Action=<span style="display:inline-block;padding:1px 8px;border-radius:3px;font-size:0.85em;font-weight:bold;background:#000000;color:#ffffff;">Action</span>|#default={{{Type}}}}}|}}
| colspan="2" style="text-align:center;padding:3px 0;" | {{#if:{{{Type|}}}|{{#switch:{{{Type}}}|Unique=<span style="display:inline-block;padding:1px 8px;border-radius:3px;font-size:0.85em;font-weight:bold;background:#e94040;color:#ffffff;">Unique</span>|Buff=<span style="display:inline-block;padding:1px 8px;border-radius:3px;font-size:0.85em;font-weight:bold;background:#69c343;color:#000000;">Buff</span>|Debuff=<span style="display:inline-block;padding:1px 8px;border-radius:3px;font-size:0.85em;font-weight:bold;background:#bbbbbb;color:#000000;">Debuff</span>|Aura=<span style="display:inline-block;padding:1px 8px;border-radius:3px;font-size:0.85em;font-weight:bold;background:#7b9fe0;color:#000000;">Aura</span>|Action=<span style="display:inline-block;padding:1px 8px;border-radius:3px;font-size:0.85em;font-weight:bold;background:#3a3c44;color:#ffffff;">Action</span>|#default={{{Type}}}}}|}}
|-
|-
| colspan="2" style="text-align:center;" | <small><code>{{{id|}}}</code></small>
| colspan="2" style="text-align:center;" | <small><code>{{{id|}}}</code></small>

Revision as of 03:53, 10 June 2026

base_infobox — generic library infobox skeleton.

The wiki-builder inserts per-category rows at `|- ! Type | — |- ! 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.