Template:DropSource/doc
Jump to navigation
Jump to search
DropSource Module Variables
Main Source Variables
- source1, source2, source3, etc. - The names of the sources that drop the item
- source1Lvl, source2Lvl, source3Lvl, etc. - The combat level for each source
- rarity1, rarity2, rarity3, etc. - The rarity of the item from each source
Quantity Variables
- itemQuant - Default quantity for all sources (used if no specific quantity is provided)
- source1Quant, source2Quant, source3Quant, etc. - Specific quantity for each source (overrides the default)
Rarity
- rarityStyles - Table mapping rarity names to CSS classes and sort values:
- Always: table-bg-blue, sort value 1
- Common: table-bg-green, sort value 16
- Uncommon: table-bg-yellow, sort value 64
- Rare: table-bg-orange, sort value 256
- Very rare: table-bg-red, sort value 1024
Local Variables (Internal)
- index - Counter used for iterating through numbered sources
- source - Current source name being processed
- level - Current level value being processed
- rarity - Current rarity value being processed
- quantity - Current quantity value being processed
- rarityClass - CSS class determined by rarity value
- raritySort - Sort value determined by rarity value
Format Note
The numbering convention is sequential:
- First source is specified with source1, source1Lvl, rarity1, and optionally source1Quant
- Second source is specified with source2, source2Lvl, rarity2, and optionally source2Quant
- And so on...
The module displays a sortable, filterable table showing what sources drop an item, with information about level requirements, quantities, and rarity.