Content added Content deleted
(Created page with " The '''LootRow''' templates are used to list an NPC's drops. Three templates are used to form the drop logs: * {{tl|LootHeader}} * {{tl|LootRow}} * {{tl|LootEnd}} == Usage...") |
m (1 revision imported) |
||
(8 intermediate revisions by 2 users not shown) | |||
Line 20: | Line 20: | ||
{{LootEnd}} |
{{LootEnd}} |
||
</pre> |
</pre> |
||
=== Template data === |
|||
<templatedata> |
|||
{ |
|||
"params": { |
|||
"itemimage": { |
|||
"label": "Item Image", |
|||
"description": "The items image name + file extension.", |
|||
"example": "placeholder.png", |
|||
"required": true |
|||
}, |
|||
"itemname": { |
|||
"label": "Item Name", |
|||
"description": "The name of the item as depicted in the game.", |
|||
"example": "Bloodsteel Mace", |
|||
"type": "string", |
|||
"required": true |
|||
}, |
|||
"quantity": { |
|||
"label": "Quantity", |
|||
"description": "The quantity of the item.", |
|||
"example": "1", |
|||
"type": "number", |
|||
"required": true |
|||
}, |
|||
"color": { |
|||
"label": "Rarity Box Colour", |
|||
"description": "The color of the rarity box.", |
|||
"example": "green", |
|||
"type": "string", |
|||
"required": true |
|||
}, |
|||
"rarity": { |
|||
"label": "Rarity", |
|||
"description": "The rarity of the item as a percentage.", |
|||
"example": "2.43%", |
|||
"required": true |
|||
} |
|||
}, |
|||
"format": "inline", |
|||
"description": "Template data for the LootRow template to be used in conjunction with LootHeader and Loot End." |
|||
} |
|||
</templatedata> |
Latest revision as of 16:24, 9 November 2021
The LootRow templates are used to list an NPC's drops. Three templates are used to form the drop logs:
{{LootHeader}}
{{LootRow}}
{{LootEnd}}
Usage
{{LootHeader}} {{LootRow |itemimage = <!-- Item image name + the file extension (e.g. placeholder.png) --> |itemname = <!-- Item name as seen in the game. (e.g. Bloodsteel Mace) --> |quantity = <!-- Quantity of the item that is dropped. A range is seperated with a - (e.g 1-5) --> |color = <!-- The color of the rarity box to indicate the level of rarity. Blue(Always), Green(25%-99%), Yellow(24.99%-10%), Orange(9.99%-2.5%), Red(<2.5%) --> |rarity = <!-- The rarity as a percentage. (e.g. 2.46%) --> }} {{LootEnd}}
Template data
Template data for the LootRow template to be used in conjunction with LootHeader and Loot End.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Item Image | itemimage | The items image name + file extension.
| Unknown | required |
Item Name | itemname | The name of the item as depicted in the game.
| String | required |
Quantity | quantity | The quantity of the item.
| Number | required |
Rarity Box Colour | color | The color of the rarity box.
| String | required |
Rarity | rarity | The rarity of the item as a percentage.
| Unknown | required |