From Arms of God Wiki

bot: operator iteration 2026-06-10
bot: Iconbox default now icon + linked name; icononly flag added (operator iteration 2026-06-10)
Line 1: Line 1:
<includeonly>{{#invoke:Iconbox|render|{{{1|}}}|{{{2|}}}|size={{{size|24}}}}}</includeonly><noinclude>
<includeonly>{{#invoke:Iconbox|render|{{{1|}}}|{{{2|}}}|mode={{{mode|}}}|size={{{size|24}}}}}</includeonly><noinclude>
== Usage ==
== Usage ==
Renders an entity's small icon (linked to its page) from [[Data:Icons.json]] via [[Module:Iconbox]]. Works for every weapon, character, blessing, upgrade, Crux power, passive, enemy, achievement and codex entry by display name or page slug.
Renders an entity's small icon plus its linked display name (the same icon-then-name form used in navboxes and cross-reference lists) from [[Data:Icons.json]] via [[Module:Iconbox]]. Works for every weapon, character, blessing, upgrade, Crux power, passive, enemy, achievement and codex entry by display name or page slug.


* <code><nowiki>{{Iconbox|Cutter}} [[Cutter]]</nowiki></code> — icon only; you add the link text.
* <code><nowiki>{{Iconbox|Cutter}}</nowiki></code> — icon plus the linked display name (default).
* <code><nowiki>{{Iconbox|Cutter|link}}</nowiki></code> — icon plus the linked display name.
* <code><nowiki>{{Iconbox|Ember Sword|size=32}}</nowiki></code> — same, bigger icon.
* <code><nowiki>{{Iconbox|Ember Sword|link|size=32}}</nowiki></code> — bigger icon.
* <code><nowiki>{{Iconbox|Cutter|icononly}}</nowiki></code> — just the linked icon glyph, no name (also <code>mode=icon</code>).
* <code><nowiki>{{Iconbox|Cutter|link}}</nowiki></code> — legacy form; <code>link</code> is a no-op alias of the default.


Entities without staged art (a few Crux powers and enemies) degrade gracefully: icon-only mode renders nothing, link mode renders the plain page link.
Entities without staged art (a few Crux powers and enemies) degrade gracefully: the default mode renders the plain page link, icon-only mode renders nothing.


<templatedata>
<templatedata>
{
{
   "description": "Small linked entity icon from Data:Icons.json (optionally with linked name).",
   "description": "Entity icon + linked display name from Data:Icons.json (icon-only behind a flag).",
   "params": {
   "params": {
     "1": {"label": "Entity name or slug", "required": true},
     "1": {"label": "Entity name or slug", "required": true},
     "2": {"label": "Set to any value (e.g. 'link') to also render the linked name"},
     "2": {"label": "Mode: 'icononly' (or 'icon') for just the glyph; default/'link' renders icon + linked name"},
     "size": {"label": "Icon size in px", "default": "24"}
     "size": {"label": "Icon size in px", "default": "24"}
   },
   },

Revision as of 04:03, 10 June 2026

Usage

Renders an entity's small icon plus its linked display name (the same icon-then-name form used in navboxes and cross-reference lists) from Data:Icons.json via Module:Iconbox. Works for every weapon, character, blessing, upgrade, Crux power, passive, enemy, achievement and codex entry by display name or page slug.

  • {{Iconbox|Cutter}} — icon plus the linked display name (default).
  • {{Iconbox|Ember Sword|size=32}} — same, bigger icon.
  • {{Iconbox|Cutter|icononly}} — just the linked icon glyph, no name (also mode=icon).
  • {{Iconbox|Cutter|link}} — legacy form; link is a no-op alias of the default.

Entities without staged art (a few Crux powers and enemies) degrade gracefully: the default mode renders the plain page link, icon-only mode renders nothing.

Entity icon + linked display name from Data:Icons.json (icon-only behind a flag).

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Entity name or slug1

no description

Unknownrequired
Mode: 'icononly' (or 'icon') for just the glyph; default/'link' renders icon + linked name2

no description

Unknownoptional
Icon size in pxsize

no description

Default
24
Unknownoptional