Difference between revisions of "Template:Item/doc"

From The Madness of Little Emma Wiki
Jump to: navigation, search
m
 
Line 9: Line 9:
 
* '''usable''': whether or not the item can be used via the "Use Item" key. If it costs gold and can be activated than it is a consumable. Defaults to "No".
 
* '''usable''': whether or not the item can be used via the "Use Item" key. If it costs gold and can be activated than it is a consumable. Defaults to "No".
 
* '''use_cost''': the cost to use the item (if it is usable), i.e. the gold cost (if any) consumed when the "Use Item" key is pressed.
 
* '''use_cost''': the cost to use the item (if it is usable), i.e. the gold cost (if any) consumed when the "Use Item" key is pressed.
 
 
* '''madness''': the amount of madness an item adds to the player. Defaults to "1".
 
* '''madness''': the amount of madness an item adds to the player. Defaults to "1".
 
* '''uses''': how many uses. Only applied if ''consumable'' is defined. Defaults to "1".
 
* '''uses''': how many uses. Only applied if ''consumable'' is defined. Defaults to "1".

Latest revision as of 19:21, 14 August 2018

Template-info.png Documentation

{{Item}} creates an infobox for Items.

Parameters

  • name: the name of the item. Defaults to {{PAGENAME}}
  • icon: the name of the item's icon. This doesn't include the "File:" or ".png", or anything before or after, just the name. Defaults to the name parameter, or {{PAGENAME}} if that isn't declared.
  • desc: the in-game description of the item. This is the one that is shown when an item is first received; it's not particularly descriptive and usually shorter than the details. Defaults to "?".
  • details: the in-game details of the time. This is the one that is shown in the pause menu; it's more descriptive than the the desc. Defaults to "?".
  • usable: whether or not the item can be used via the "Use Item" key. If it costs gold and can be activated than it is a consumable. Defaults to "No".
  • use_cost: the cost to use the item (if it is usable), i.e. the gold cost (if any) consumed when the "Use Item" key is pressed.
  • madness: the amount of madness an item adds to the player. Defaults to "1".
  • uses: how many uses. Only applied if consumable is defined. Defaults to "1".
  • sheet: the tilesheet that this item is defined on. Defaults to "items.png" (which includes almost all of the normal items).
  • coords: the tilesheet coordinates of the item. The format is "X, Y". Defaults to "?".
  • version: the version that introduces this Item. Defaults to "?".

Examples

See the following pages:

This is the documentation page, it should be transcluded into the main template page. See Template:Doc for more information.