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 ( | 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}} | * <code><nowiki>{{Iconbox|Cutter}}</nowiki></code> — icon plus the linked display name (default). | ||
* <code><nowiki>{{Iconbox|Cutter| | * <code><nowiki>{{Iconbox|Ember Sword|size=32}}</nowiki></code> — same, bigger icon. | ||
* <code><nowiki>{{Iconbox| | * <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 | 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": " | "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": " | "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 (alsomode=icon).{{Iconbox|Cutter|link}}— legacy form;linkis 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).
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Entity name or slug | 1 | no description | Unknown | required |
| Mode: 'icononly' (or 'icon') for just the glyph; default/'link' renders icon + linked name | 2 | no description | Unknown | optional |
| Icon size in px | size | no description
| Unknown | optional |