Template:Infobox Consumable/doc
The consumable infobox — the canonical infobox for food, flasks and potions. It shows the effect panel (heal, effect, duration, consume time, stack limit), colours the name bar by rarity, and auto-categorises the host page by subtype and rarity.
Usage
{{Infobox Consumable
| name =
| image =
| alt =
| type =
| subtype =
| rarity =
| heal =
| effect =
| duration =
| consumetime =
| stacklimit =
| tradeable =
| value =
| examine =
}}
Parameters
| Parameter | Required | Description |
|---|---|---|
name |
Yes | Exact in-game name; the rarity-coloured header. |
image |
Recommended | Sprite file name without File:. Falls back to the wiki logo and tags Category:Pages needing an image.
|
alt |
No | Image alt text. |
type |
No | Category label (defaults to Consumable).
|
subtype |
Recommended | food, flask or potion. Mapped onto Category:Food
or Category:Potions . Any other value files no subcategory, so a typo cannot invent one. |
rarity |
Yes | Common/Uncommon/Rare/Epic/Legendary. Name-bar colour + rarity category.
|
heal |
No | Health restored. |
effect |
No | Free-text effect description (buff granted, etc.). |
duration |
No | Effect duration. |
consumetime |
No | Time to consume. |
stacklimit |
No | Maximum stack size. |
tradeable |
No | Yes/No.
|
value |
No | Sell value in gold. |
examine |
No | Flavour line (alias: description).
|
Versions / switch pattern
Base uses unsuffixed parameters; alternates use a numeric suffix (name2, heal2, …) with an optional version2 label; | sel = 2 selects the alternate.
Categories applied
On an article: Category:Consumables, the matching subtype category (Category:Food
/ Category:Flasks / Category:Potions
) when subtype is recognised, and the rarity category. Hidden maintenance: Category:Pages needing an image when image is blank; Category:Pages missing data when any of name or rarity is blank.
Canonical consumable infobox for food/flasks/potions: effect panel, rarity colouring, sel/version switch, auto-categorisation by subtype + rarity.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Name | name | no description | String | required |
| Image | image | no description | File | suggested |
| Alt text | alt | no description | String | optional |
| Type | type | no description | String | optional |
| Subtype | subtype | Food / Flasks / Potions | String | suggested |
| Rarity | rarity | no description | String | required |
| Heals | heal | no description | String | optional |
| Effect | effect | no description | String | optional |
| Duration | duration | no description | String | optional |
| Consume time | consumetime | no description | String | optional |
| Stack limit | stacklimit | no description | String | optional |
| Tradeable | tradeable | no description | String | optional |
| Sell value | value | no description | String | optional |
| Examine | examine | no description | String | optional |
| Selected version | sel | no description | String | optional |