Template:Item drop

From Sun Haven Wiki
Jump to navigation Jump to search
float Template documentation[View] [Edit] [History] - [Sandbox] [Refresh]

Description

Create a drop table for monsters, events, and items. This template creates hidden categories on pages, to allow the DPL to create queries and pull together shop information for various pages.

{{Item drop}} is to be used in conjunction with {{Item drop/header}} and {{Item drop/footer}}.

Syntax

{{Item drop/header
|name     = Name of the thing that is dropping items.
}}

{{Item drop
| item name
| amount
| chance
|link     = Changes the link used for the displayed text and the image. (optional
|img      = Changes the image that is displayed for this item or character. (optional)
|ext      = Changes the extension of the displayed image. Used when there is no png file available. (optional)
}}

{{Item drop/footer
|note     = Any specific notes about the drop table as a whole. (optional)
}}

Examples

{{Item drop/header|name = Crab Knight}}
{{Item drop|Sand| 1| 5.0%}}
{{Item drop|Sand| 2| 1.0%}}
{{Item drop|Coins| 4 - 6| 5.0%}}
{{Item drop|Copper Legs| 1| 5.0%}}
{{Item drop|Copper Helmet| 1| 5.0%}}
{{Item drop|Copper Chest Plate| 1| 5.0%}}
{{Item drop|Copper Gloves| 1| 5.0%}}
{{Item drop|Bucket Crab Trinket| 1| 1.0%}}
{{Item drop/footer}}
Item Amount Chance
1 5.0%
2 1.0%
4 - 6 5.0%
1 5.0%
1 5.0%
1 5.0%
1 5.0%
1 1.0%
See the articles and the templates currently using this template.