Template:LootRow/doc: Difference between revisions

Template page
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...")
 
No edit summary
Line 20: Line 20:
{{LootEnd}}
{{LootEnd}}
</pre>
</pre>
<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"
}
</templatedata>

Revision as of 10:52, 16 October 2021

The LootRow templates are used to list an NPC's drops. Three templates are used to form the drop logs:

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}}

No description.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Item Imageitemimage

The items image name + file extension.

Example
placeholder.png
Unknownrequired
Item Nameitemname

The name of the item as depicted in the game.

Example
Bloodsteel Mace
Stringrequired
Quantityquantity

The quantity of the item.

Example
1
Numberrequired
Rarity Box Colourcolor

The color of the rarity box.

Example
green
Stringrequired
Rarityrarity

The rarity of the item as a percentage.

Example
2.43%
Unknownrequired
Cookies help us deliver our services. By using our services, you agree to our use of cookies.