From Arms of God Wiki
bot: universal template Iconbox |
bot: operator iteration 2026-06-10 |
||
| Line 1: | Line 1: | ||
<includeonly> | <includeonly>{{#invoke:Iconbox|render|{{{1|}}}|{{{2|}}}|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. | |||
<code><nowiki>{{Iconbox| | * <code><nowiki>{{Iconbox|Cutter}} [[Cutter]]</nowiki></code> — icon only; you add the link text. | ||
* <code><nowiki>{{Iconbox|Cutter|link}}</nowiki></code> — icon plus the linked display name. | |||
* <code><nowiki>{{Iconbox|Ember Sword|link|size=32}}</nowiki></code> — bigger icon. | |||
Entities without staged art (a few Crux powers and enemies) degrade gracefully: icon-only mode renders nothing, link mode renders the plain page link. | |||
<templatedata> | <templatedata> | ||
{ | { | ||
"description": " | "description": "Small linked entity icon from Data:Icons.json (optionally with linked name).", | ||
"params": { | "params": { | ||
"1": {" | "1": {"label": "Entity name or slug", "required": true}, | ||
" | "2": {"label": "Set to any value (e.g. 'link') to also render the linked name"}, | ||
"size": {"label": " | "size": {"label": "Icon size in px", "default": "24"} | ||
}, | }, | ||
"paramOrder": ["1", " | "paramOrder": ["1", "2", "size"] | ||
} | } | ||
</templatedata> | </templatedata> | ||
[[Category:Universal templates]] | [[Category:Universal templates]] | ||
</noinclude> | </noinclude> | ||
Revision as of 03:52, 10 June 2026
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.
{{Iconbox|Cutter}} [[Cutter]]— icon only; you add the link text.{{Iconbox|Cutter|link}}— icon plus the linked display name.{{Iconbox|Ember Sword|link|size=32}}— bigger icon.
Entities without staged art (a few Crux powers and enemies) degrade gracefully: icon-only mode renders nothing, link mode renders the plain page link.
Small linked entity icon from Data:Icons.json (optionally with linked name).
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Entity name or slug | 1 | no description | Unknown | required |
| Set to any value (e.g. 'link') to also render the linked name | 2 | no description | Unknown | optional |
| Icon size in px | size | no description
| Unknown | optional |