Template:Loot/doc

This template is used to give a standardized tabular overview over the items that can be looted from items like Chests and crates, along with their respective quantities and chances.

It stores its information to the Drops cargo table, which is queried by drop infobox.

Usage
Item name or ID of the item that contains the loot; defaults to page name.
 * item, id

Caption of the table. Default: "". Can be set to @primary and @secondary to display two other standard, localized captions: "" and "", respectively.
 * title

By default, all mainspace root pages will store their loot content to Cargo. Use this parameter to prevent or force Cargo storage.
 * cargo

Loot information, passed in groups of three: item name, quantity, and rate/chance.
 * Unnamed parameters

...
 * &lt;item 1&gt; | &lt;quantity 1&gt; | &lt;rate 1&gt;
 * &lt;item 2&gt; | &lt;quantity 2&gt; | &lt;rate 2&gt;
 * &lt;item n&gt; | &lt;quantity n&gt; | &lt;rate n&gt;

If the rate is passed as a fraction, i.e., in an  format, then it will be wrapped in chance in the output. This can be prevented by replacing one number with its HTML entity (e.g.  for  ).

It is possible to group items (i.e., suppress the horizontal line between them in the resulting table) by surrounding them with a group starter and a group terminator row:

| &lt;group item 1&gt; | &lt;group item quantity 1&gt; | &lt;group item rate 1&gt; | &lt;group item 2&gt; | &lt;group item quantity 2&gt; | &lt;group item rate 2&gt; ... | &lt;group item n&gt; | &lt;group item quantity n&gt; | &lt;group item rate n&gt;
 * :group:start | &lt;group quantity&gt; | &lt;group rate&gt;
 * :group:end|-|-

If group quantity and/or rate are not passed, then each item may specify an individual quantity/rate. If this information is defined in the group starter, though, then individual quantities/rates will be ignored.

The template supports altering the display of the item using a "custom" mode:


 * :custom:&lt;raw name of the item&gt;:&lt;custom display&gt; | &lt;quantity&gt; | &lt;rate&gt;

It is not mandatory to include the raw name of the item, but doing so ensures a correct cargo data storage.

All unnamed parameters can be used ad infinitum.