Template:Loot: Difference between revisions
Appearance
| [checked revision] | [checked revision] |
Content deleted Content added
Templates for items, creatures and loot |
Templates for the drop import |
||
| Line 1: | Line 1: | ||
|- |
|- |
||
| [[{{{1}}}]] || {{{2|}}} || {{{3|}}} || {{{4|}}}<noinclude> |
| {{#if:{{{link|}}}|{{{1}}}|[[{{{1}}}]]}} || {{{2|}}} || {{{3|}}} || {{{4|}}}<noinclude> |
||
One row of a [[Template:Loot table]]: <code><nowiki>{{Loot|item|chance|amount|notes}}</nowiki></code> |
One row of a [[Template:Loot table]]: <code><nowiki>{{Loot|item|chance|amount|notes}}</nowiki></code>. <code>link=no</code> shows the item name without a link. |
||
<templatedata> |
<templatedata> |
||
{ "description": "One drop in a Loot table.", "params": { |
{ "description": "One drop in a Loot table.", "params": { |
||
| Line 7: | Line 7: | ||
"2": { "label": "Chance", "example": "often, rare, 3 of 40 kills", "type": "string", "suggested": true }, |
"2": { "label": "Chance", "example": "often, rare, 3 of 40 kills", "type": "string", "suggested": true }, |
||
"3": { "label": "Amount", "example": "1-2", "type": "string", "suggested": true }, |
"3": { "label": "Amount", "example": "1-2", "type": "string", "suggested": true }, |
||
"4": { "label": "Notes", "type": "string" |
"4": { "label": "Notes", "type": "string" }, |
||
"link": { "label": "No link", "description": "Anything here: show the item name as plain text.", "type": "string" } }, "format": "inline" } |
|||
</templatedata></noinclude> |
</templatedata></noinclude> |
||
Latest revision as of 18:10, 16 November 2026
|-
| [[{{{1}}}]] || || ||
One row of a Template:Loot table: {{Loot|item|chance|amount|notes}}. link=no shows the item name without a link.
One drop in a Loot table.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Item | 1 | Item page name. | Page name | required |
| Chance | 2 | no description
| String | suggested |
| Amount | 3 | no description
| String | suggested |
| Notes | 4 | no description | String | optional |
| No link | link | Anything here: show the item name as plain text. | String | optional |