Template:DropsLine/doc

From RuneScape Classic Wiki
Jump to navigation Jump to search
Unstrung Longbow.png This section or article is incomplete and could do with improvement.
Reason: Alt parameter not documented.
You can discuss this issue on the talk page or edit this page to improve it.
Information icon-grey.svg
This is a documentation subpage for Template:DropsLine.
It contains usage information, categories, and other content that is not part of the original template page.
Template:DropsLine invokes function main in Module:DropsLine using Lua.

The DropsLine templates are used to list a monster's drops. Three templates are used to form the drop logs:

  • {{DropsTableHead}} - Contains table headers for the top of the drop table
  • {{DropsLine}} - Template for all of the individual drop lines
  • {{DropsTableBottom}} - Contains table footers for the bottom of the drop table

Predefined and alternate templates

This DropsLine is aimed primarily for monsters that are killed in combat. For other ways of getting drops, use:

Usage

{{DropsTableHead}}
{{DropsLine
|Name        = <!-- Name of item -->
|Quantity    = <!-- Quantity(s) dropped by monster. Separate with commas. -->
|Rarity      = <!-- How rare the item is: Always, Common, Uncommon, Rare, Very rare, Extremely rare -->
|RarityNotes = <!-- (Optional) Extra things added into the Rarity column, to not disrupt the colouring-->
|}
{{DropsTableBottom}}

NOTE: The template should be used in one line, like the example below.

Unfilled drops line for quick copy-paste

{{DropsLine|Name=|Quantity=|Rarity=}}

Parameter details

Name

Name of the item/drop, should link directly to the article.

Quantity

Quantity of the item dropped by the monster. If multiple quantities are randomly dropped, list them all and separate with commas. Do not use commas as thousand separators, and do not use abbreviations like k and m - input 9000, not 9,000 or 9k.

The price column automatically detects several types of ranges:

  • Several individual values separated with commas, e.g. 1,4,7
    • Uses the first and the last values (not max and min; numbers in the middle ignored), so make sure to order them in ascending order.
  • A range in the form min-max, e.g. 1-10
    • Uses the number on the left of the - as min, and the right as max
  • A combination of the above two, e.g. 1-3,5,7-9,11
    • First separates by commas, then if the first is a range, uses the left of the - as min; if the last is a range, uses the right of the - as max; otherwise if either is not a range uses the number that is there as min or max, respectively. In the example, the min number would be 1 and the max 11. Make sure they're ordered in ascending order.

All other characters and text are parsed as is, so make sure the Quantity field only contains numbers, commas, and hyphens, nothing else.

Rarity

Rarity of the item. Only 6 available options:

Rarity Explanation Exact rate (if known)
Always Always dropped by the monster 1/1
Common The most common of items. Renowned for being common. Nearly always dropped. 1/2 to 1/25
Uncommon Dropped sometimes, but not necessarily renowned for being common 1/26 to 1/99
Rare Rarely dropped. Will take quite a few drops to obtain. 1/100 to 1/999
Very rare Renowned for being rare among players. Hardly ever dropped. Items like the divine sigil, some dragon items, etc. 1/1000 to 1/9999
Extremely rate Extremely rare among players. Almost never dropped. 1/10000 or higher

Leaving the rarity blank or entering a rarity other than always/common/uncommon/rare/very rare/extremely rare defaults to a white colour.

RarityNotes (optional)

If extra notes on the items rarity need to be entered into the column, such as a citation, or some other requirement to be dropped, use the "RarityNotes" parameter. This will allow the colouring of the standard rarities to still work.