Template:ItemDrop/entry: Difference between revisions
Jump to navigation
Jump to search
Streetclaw (talk | contribs) (Add class (linkgroup for item entry)) |
m (Use <includeonly> and <onlyinclude>) |
||
(13 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
< | <onlyinclude><includeonly> | ||
|- | |- | ||
| data-sort-value="{{{name}}}" |{{ItemLink | {{{name}}}}} {{#if: {{{quantity|}}} | {{#ifeq:{{{quantity|}}}|1||x {{{quantity}}}}}}} | |||
|| {{#if: {{{chance|}}} | {{{chance}}}{{#ifeq:{{{chance}}}|{{#expr:{{{chance}}} }}|%|}} | ???% }} || data-sort-value="{{#switch: {{{rank}}} | |||
| S = 1 | |||
|- | | A = 2 | ||
| B = 3 | |||
| C = 4 | |||
{{ | | D = 5 | ||
| H = 6 | |||
| 7 | |||
}}" | {{#switch: {{{rank}}} | |||
| S = [[File:Rank-S-icon.png|right]] | |||
{{ | | A = [[File:Rank-A-icon.png|right]] | ||
| B = [[File:Rank-B-icon.png|right]] | |||
| C = [[File:Rank-C-icon.png|right]] | |||
| | |||
| | |||
| | |||
| B = | |||
| | |||
| | |||
| | |||
}}" | | |||
{{#switch: {{{rank}}} | |||
| D = [[File:Rank-D-icon.png|right]] | | D = [[File:Rank-D-icon.png|right]] | ||
| | | H = HP<80% | ||
| [[File:Rank-D-icon.png|right]] | |||
| [[File:Rank- | |||
}} | }} | ||
</includeonly> | |- | ||
< | </includeonly></onlyinclude> | ||
{{Doc}} | |||
Latest revision as of 07:53, 17 April 2021
About
Creates an Item Drop entry.
Parameters
Do not use named parameter for 1
... x
. The first Parameter will be automatically marked as 1
, the second as 2
and so on.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Name | name
|
Item name
|
String | Required |
Chance | chance
|
Percentage change of drop. Percent sign is optional.
|
Number + ("%") | Recommended |
Rank | rank
|
Drop rank |
["S" | "A" | "B" | "C" | "D" | "H" ] | Recommended |
Quantity | quantity
|
Drop quantity
|
[ 1 {NonzeroNumber} + ( "-" + {NonzeroNumber} ) ] | Optional |
See Template:TemplateData and Template:TemplateData/entry for more information about the parameter list and DDNCode for more information about types and the DDN Notation
Test of raw TemplateData output:
No description.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Name | name | Item name
| String | required |
Chance | chance | Percentage change of drop. Percent sign is optional.
| Content | suggested |
Rank | rank | Drop rank
| Content | suggested |
Quantity | quantity | Drop quantity
| Content | optional |
Examples
Item | Chance | Rank | |
---|---|---|---|
{{ItemDrop/entry|name=Metal Needles|chance=12%|rank=D}} | |||
![]() |
12% | ![]() | |
{{ItemDrop/entry|name=Sandwich|chance=8%|rank=B|quantity=2}} | |||
![]() |
8% | ![]() | |
{{ItemDrop/entry|name=Hi-Sandwich|chance=8%|rank=B|quantity=1}} | |||
![]() |
8% | ![]() | |
{{ItemDrop/entry|name=Health Pickup|chance=20%|rank=H}} | |||
![]() |
20% | HP<80% |