This wiki is a read-only version of the Stardew Valley Wiki. The official editable wiki maintained by ConcernedApe can be found at stardewvalleywiki.com

User:BryghtShadow/sandbox/Infobox data

From Stardew Valley Wiki
Jump to: navigation, search
Name {{{name}}}
Image {{{icon}}}
Description {{{description}}}
Sell Price {{{sellprice}}}
Edibility {{{edibility}}}

This infobox stores the parameters into "variables", which can be retrieved by other templates.

Parameters

  • id: The item ID. Required to reduce data collision (defaults to -1 for storage).
  • name: The item name.
  • icon: The filename of the item icon.
  • description: The item description.
  • price: The item base sell price.
  • edibility: The item edibility.

Variables

The following variables are stored for an item with the ID id:

  • ObjectInformation[id].name
  • ObjectInformation[id].icon
  • ObjectInformation[id].description
  • ObjectInformation[id].price
  • ObjectInformation[id].edibility

To retrieve the name of an item with ID 42, the key will be ObjectInformation[42].name:

{{#arrayprint:ObjectInformation[42].name}} or {{#arrayindex:ObjectInformation[42].name|0|default_value}}