Jump to content

Template:Infobox Consumable

From Community Wiki | Soulbound: Online
Template documentationview · edit

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

, Category:Flasks

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.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Namename

no description

Stringrequired
Imageimage

no description

Filesuggested
Alt textalt

no description

Stringoptional
Typetype

no description

Stringoptional
Subtypesubtype

Food / Flasks / Potions

Stringsuggested
Rarityrarity

no description

Stringrequired
Healsheal

no description

Stringoptional
Effecteffect

no description

Stringoptional
Durationduration

no description

Stringoptional
Consume timeconsumetime

no description

Stringoptional
Stack limitstacklimit

no description

Stringoptional
Tradeabletradeable

no description

Stringoptional
Sell valuevalue

no description

Stringoptional
Examineexamine

no description

Stringoptional
Selected versionsel

no description

Stringoptional