м (→Examples) |
м (Бот: заміна шаблону: Drop) |
||
Рядок 44: | Рядок 44: | ||
== Examples == |
== Examples == |
||
<div class="list-style-none"> |
<div class="list-style-none"> |
||
− | <nowiki>{{ |
+ | <nowiki>{{Дроп|Блок|Вовна|1}}</nowiki> |
− | {{ |
+ | {{Дроп|Блок|Вовна|1|nocat=1}} |
− | <nowiki>{{ |
+ | <nowiki>{{Дроп|Предмет|Spider Eye|33.3%|when=killed by the player}}</nowiki> |
− | {{ |
+ | {{Дроп|Предмет|Spider Eye|33.3%|when=killed by the player|nocat=1}} |
− | <nowiki>{{ |
+ | <nowiki>{{Дроп|Предмет|id=chestplate|Armor|text=Random Armor}}</nowiki> |
− | {{ |
+ | {{Дроп|Предмет|id=chestplate|Armor|text=Random Armor|nocat=1}} |
− | <nowiki>{{ |
+ | <nowiki>{{Дроп|Предмет|Raw Mutton|1|2|upcoming=1.8}}</nowiki> |
− | {{ |
+ | {{Дроп|Предмет|Raw Mutton|1|2|upcoming=1.8|nocat=1}} |
− | <nowiki>{{ |
+ | <nowiki>{{Дроп|Предмет|Glowstone Dust|0|2|when=killed by the player|edition=console}}</nowiki> |
− | {{ |
+ | {{Дроп|Предмет|Glowstone Dust|0|2|when=killed by the player|edition=console|nocat=1}} |
</div> |
</div> |
||
<includeonly> |
<includeonly> |
Версія за 08:31, 12 травня 2019
[оновити]
Ця сторінка документації, вона повинна бути включена в основну сторінку. Більше інформації на сторінці Шаблон:Документація.This template is used to add drop information to infoboxes.
Usage
The minimum drop number should always be filled in for common drops, even if it is always a single drop. Uncommon drops are always a single drop, however have different chances to drop, so the chance (in percentage) should be used instead. Rare drops are also always a single drop, but all have the same drop chance, so no drop number should be added.
Each drop is a list item, and so multiple can be entered on separate lines with no need for line breaks. In infoboxes, the drop fields have the list-style-none
class, which hides the bullet point.
Parameters
Parameter | Usage | Example |
---|---|---|
1 |
Drop type | Block |
2 |
Drop name | Wool |
3 |
Minimum drop number, or drop chance | |
4 |
Maximum drop number | |
when |
A condition that must be true for the drop to happen | on fire |
edition |
The edition that the drop is exclusive to | |
upcoming |
The upcoming release version that drop will occur in | 1.8 |
note |
Any additional text to add after the drop | |
text |
Different text to display instead of the drop name | |
id |
Different ID to use for the drop sprite instead of the drop name | grass-block-top |
nocat |
If present, doesn't put the page into categories shown below. |
Depending on the edition(s) indicated, if any, this template will put the page into:
- Category:Java Edition specific information
- Category:Bedrock Edition specific information
- Category:Legacy Console Edition specific information
Examples
{{Дроп|Блок|Вовна|1}}
- Вовна (1)
{{Дроп|Предмет|Spider Eye|33.3%|when=killed by the player}}
- Spider Eye (33.3%)
{{Дроп|Предмет|id=chestplate|Armor|text=Random Armor}}
- Armor
{{Дроп|Предмет|Raw Mutton|1|2|upcoming=1.8}}
- Raw Mutton (1–2)
{{Дроп|Предмет|Glowstone Dust|0|2|when=killed by the player|edition=console}}
- Glowstone Dust (0–2)