Template:Consumable infobox

From BTScape Wiki
Revision as of 02:23, 24 July 2026 by Bembi (talk | contribs) (Add Consumable infobox template (via create-page on MediaWiki MCP Server))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Infobox for consumable items: any item with Template:Code in Template:Code — food, potions, anything used straight from the inventory.

Usage

{{Consumable infobox
| name        = Health Potion
| image       = Health Potion.png
| id          = 4
| key         = health_potion
| stat        = HP
| value       = 10
| label       = Drink
| max_stack   = 1
| description = Restores a modest amount of health.
}}

Parameters

Parameter Meaning Source field
name Display name (defaults to page title) name
image Icon/render filename, uploaded separately (client art)
id Numeric item id id
key String key used in scripts/content files key
stat Which stat it restores: HP / AP / SP consumable_stat
value How much of the stat it restores consumable_value
label Verb shown in the use menu (e.g. "Eat", "Drink") consumable_label
max_stack Inventory stack size (consumables are usually stackable) max_stack
description Free-text flavor/summary written for the wiki

Consumables with extra right-click actions beyond the auto-generated "use" (the item type's actions field) should list those in prose below the infobox rather than cramming them into it.