Plantilla:Loot

De Terraria Wiki
Ir a la navegación Ir a la búsqueda
This template uses the Cargo extension.
This template uses Extension:Cargo, an integral part of the wiki's back-end.
This template is i18n-ready, which means it is easy to localize for different languages. Please see I18n & l10n for templates to learn more.
See Plantilla:Loot/l10n for the localization of this template.
Template-info.svg Documentation The documentation below is transcluded from Plantilla:Loot/doc. (edit | history)

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

{{ loot | item = <item containing the loot> | id = <item ID of the item containing the loot> | title = <table caption> | cargo = force/y/yes/n/no | <loot information> }}

item, id

Item name or ID of the item that contains the loot; defaults to page name.

title

Caption of the table. Default: "Botín". Can be set to @primary and @secondary to display two other standard, localized captions: "Objetos primarios (only one)" and "Objetos secundarios", respectively.

cargo

By default, all mainspace root pages will store their {{loot}} content to Cargo. Use this parameter to prevent or force Cargo storage. See the "custom" mode below for preventing cargo storage of individual items.

Unnamed parameters

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

| <item 1> | <quantity 1> | <rate 1>
| <item 2> | <quantity 2> | <rate 2>
...
| <item n> | <quantity n> | <rate n>

If the rate is passed as a fraction, i.e., in an <integer>/<integer> 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. &#50; for 2).

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:

| :group:start | <group quantity> | <group rate>
  | <group item 1> | <group item quantity 1> | <group item rate 1>
  | <group item 2> | <group item quantity 2> | <group item rate 2>
  ...
  | <group item n> | <group item quantity n> | <group item rate n>
| :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:<raw name(s) of the item>:<custom display> | <quantity> | <rate>

It is not mandatory to include the raw name of the item, but doing so ensures a correct cargo data storage. Separate multiple raw item names with a slash (/) character. The template does not support raw item names that contain colons (i.e., the following raw item names are illegal: (none)). Omit the raw item name entirely to prevent cargo storage for that item.


All unnamed parameters can be used ad infinitum.

Examples

Code Result
{{loot|title=Looted items

| Apprentice Bait|1–4|2/9

|:group:start||<!-- no group stats -->
  | Obsidian Skin Potion|1–3|1/14
  | Swiftness Potion|2–4|1/28
  | Ironskin Potion|4–78|
  | Night Owl Potion|1|1/112
  | Shine Potion||1/224
|:group:end|-----------------|-

| Silver Coin|999|1/100
| Gold Coin|99|1/45

|:group:start|1|<!-- group quantity -->
  | Sailfish Boots||1/40
  | Tsunami in a Bottle|314|1/41<!-- individual quantity is ignored -->
  | Extractinator|foobar|1/53
|:group:end|-----------------|-

|:group:start||1/14<!-- group rate -->
  | Copper Bar|1–7|
  | Iron Bar|2–7|ignored rate<!-- individual rate is ignored -->
  | Gold Bar|3–7|42/42
|:group:end|-----------------|-

|:group:start|4–11|<!-- suppress {{chance}} -->
  | Tin Bar||&#50;/3
  | Lead Bar||3/&#52;
|:group:end|-----------------|-

|:group:start||4.17% {{eicons|1.4.0.1|small=y}}<br/>2.56% {{eicons|1.4.0.1|invert=y|small=y}}<!-- custom group rate -->
  | Cobalt Bar|1–7|
  | Palladium Bar|2–7|ignored rate
  | Orichalcum Bar|3–7|42/42
|:group:end|-----------------|-

| Copper Ore|1–7|1/7
| Iron Ore|2–7|2/7

|:group:start|1|1/45<!-- group quantity and group rate -->
  | Aglet|2.7812|1/78
  | Umbrella|56|2651/63178
  | Climbing Claws||{{item|Moon Lord}}
  | Guide to Plant Fiber Cordage||
  | Radar|141421|
|:group:end|-----------------|-

|:group:start||
  |:custom:Gold Ore/Platinum Ore:{{item|Gold Ore|note=(in worlds with Gold)}}<br/>{{item|Platinum Ore|note=(in worlds with Platinum)}}|5–9|3/7
  |:custom:Gold Bar/Platinum Bar:{{item|Gold Bar|note=(in worlds with Gold)}}<br/>{{item|Platinum Bar|note=(in worlds with Platinum)}}|3–7|2/7
|:group:end|-----------------|-

}}
Looted items
ObjetosCantidadOportunidad
Cebo de aprendizCebo de aprendiz1–422.22*2/9 (22.22%)
Poción de piel obsidianaPoción de piel obsidiana1–37.14*1/14 (7.14%)
Poción de rapidezPoción de rapidez2–43.57*1/28 (3.57%)
Poción de piel de hierroPoción de piel de hierro4–78
Poción de noctámbuloPoción de noctámbulo10.89*1/112 (0.89%)
Poción de brilloPoción de brillo0.45*1/224 (0.45%)
Moneda de plataMoneda de plata9991*1/100 (1%)
Moneda de oroMoneda de oro992.22*1/45 (2.22%)
Botas de pez velaBotas de pez vela12.5*1/40 (2.5%)
Tsunami embotelladoTsunami embotellado2.44*1/41 (2.44%)
ExpriminatorExpriminator1.89*1/53 (1.89%)
Lingote de cobreLingote de cobre1–77.14*1/14 (7.14%)
Lingote de hierroLingote de hierro2–7
Lingote de oroLingote de oro3–7
Lingote de estañoLingote de estaño4–112/3
Lingote de plomoLingote de plomo3/4
Lingote de cobaltoLingote de cobalto1–74.17%
2.56%
Lingote de paladioLingote de paladio2–7
Lingote de oricalcoLingote de oricalco3–7
Mineral de cobreMineral de cobre1–714.29*1/7 (14.29%)
Mineral de hierroMineral de hierro2–728.57*2/7 (28.57%)
HerreteHerrete12.22*1/45 (2.22%)
ParaguasParaguas
Garras de escaladaGarras de escalada
Guía de cordaje de fibraGuía de cordaje de fibra
RadarRadar
Mineral de oroMineral de oro(in worlds with Gold)
Mineral de platinoMineral de platino(in worlds with Platinum)
5–942.86*3/7 (42.86%)
Lingote de oroLingote de oro(in worlds with Gold)
Lingote de platinoLingote de platino(in worlds with Platinum)
3–728.57*2/7 (28.57%)