Template:Drop table gold: Difference between revisions
Jump to navigation
Jump to search
(update docs, rename param to chance from rarity) |
(Rename alt->alias. Make it work) |
||
(4 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly><onlyinclude>{{ | <includeonly><onlyinclude>{{Drop table row|icon={{Drop table gold/Icon|{{{lower}}} }}|item=Gold|alias={{{alias|}}}|quantity={{{lower}}}{{#if:{{{upper|}}}| - {{{upper}}} }}|rarity={{{chance|Always}}}|note={{{note|}}} }}</onlyinclude></includeonly><noinclude> | ||
{{ | {{Drop table start}} | ||
{{ | {{Drop table gold|lower=1}} | ||
{{ | {{Drop table gold|lower=10|upper=100}} | ||
{{ | {{Drop table gold|lower=532|chance=1/6}} | ||
{{ | {{Drop table gold|lower=99|note={{#tag:ref|Only if you are a Flaming Sphere. }} }} | ||
{{ | {{Drop table gold|alias=Fool's Gold|lower=99}} | ||
{{Drop table end}} | |||
<templatedata> | <templatedata> | ||
Line 25: | Line 26: | ||
"description": "(optional) The chance that this is dropped.", | "description": "(optional) The chance that this is dropped.", | ||
"default": "Always" | "default": "Always" | ||
}, | |||
"alias": { | |||
"description": "Alternative display name.", | |||
"type": "string" | |||
} | } | ||
}, | }, | ||
Line 31: | Line 36: | ||
"upper", | "upper", | ||
"chance", | "chance", | ||
"note" | "note", | ||
"alias" | |||
] | ] | ||
} | } | ||
</templatedata></noinclude> | </templatedata></noinclude> |
Latest revision as of 16:34, 18 October 2023
Item | Quantity | Chance | |
---|---|---|---|
Gold | 1 | Always | |
Gold | 10 - 100 | Always | |
Gold | 532 | 1/6 | |
Gold [1] | 99 | Always | |
Gold | 99 | Always |
- ↑ Only if you are a Flaming Sphere.
No description.
Parameter | Description | Type | Status | |
---|---|---|---|---|
lower | lower | Either the amount of gold to be displayed, or the lower bound of the amount of gold to be displayed. | Number | required |
upper | upper | (optional) The upper bound of the amount to be displayed. | Unknown | optional |
chance | chance | (optional) The chance that this is dropped.
| Unknown | optional |
note | note | Can be used to provide a <ref/> note. | Unknown | optional |
alias | alias | Alternative display name. | String | optional |