Template:Lootitem/doc

Stores the LootItems contained in LootLists. Multiple instances of this template should be placed, in order, between Template:Lootlist/start and Template:Lootlist/end. Instead of having one template/table for lists and items, having items in a separate table makes rows more defined and (in some instances) easier to work with.

Parameters
The template takes the following named parameters:

or  (String)
 * The name/identifier of the LootList that this LootItem belongs to. This does not need to be provided, and will automatically be filled with the name field of the encapsulated Template:Lootlist via an exposed variable defined in said template.

or  (Integer)
 * The index/position of the LootItem in the LootList. This value does not need to be provided, and will be calculated using an exposed variable which is incremented at the end of each call to this template, and is reset at the start of a new Template:Lootlist.


 * The field name "index" cannot be used since it's an SQL keyword.

(String)
 * The debug name of the item or LootList.

(Page)
 * The display/page name of the item (only if this LootItem is an item). This should be provided to avoid an extra, unnecessary cargo query just to get the page name of an item.

(Boolean)
 * Should be "yes" if the LootItem is a nested lootlist.

(Integer, default = 1)
 * The amount of the item, or number of iterations of the LootList.

(Integer, default = 1)
 * The random weighting of this LootItem, default is 1 - though it isn't considered for LootItems that should always spawn.

(Boolean, default = no)
 * A boolean to indicate that this LootItem should always be present in the loot. Should either be  or