Template:Infobox food/doc
Jump to navigation
Jump to search
The infobox for food, read from the game data rather than written on the page.
The box itself is drawn by
Usage
{{Infobox food|id=2056}}
id is the item's database id. Everything else — type, category, what it restores,
what else it does, prices — comes from the item's record in
Module:Elderfield/Data/Items, which the wiki generator rewrites after each game update.
So the numbers on every food page change together when that one module is republished,
instead of page by page.
Correcting a value
Any field written on the page is used instead of the data, for example:{{Infobox food|id=2056|effect=In Battle: Adds +1 of each attack}}
The field names are those of {{Infobox item}} (restores, effect,
buy_price, sell_price …). Commas cannot be used in a value; the
infobox splits on them.
The box itself is drawn by
{{Infobox item}} through
{{#invoke:Elderfield/Item|infobox}} .
Price fields
Supply a number for buy and sell prices (for example|buy_price=250 on the standard infoboxes, or |Buy Price=250 on the legacy item infobox). The gold icon and g are added automatically and the value is centered. Existing quality values can use {{Price}}; textual statuses remain unchanged.