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. There are several ways to prevent this, e.g. replacing the slash character with its HTML entity (&#47;) or adding a  in between.

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.

All unnamed parameters can be used ad infinitum.