Template:Item
Template for cleanly adding an icon to an item name. It has the ability to link to Divine Pride's database, but will default to no link since DP's item data may differ from TRO's.
Syntax
{{Item|id=|item=|link=|num=|slots=}}
- Parameters
- id
- The unique id of the item.
- item
- The name of the item.
- link
- (Optional) Insert value to convert into a link to Divine Pride's database
- num
- (Optional) The quantity of items.
- slots
- (Optional) The number of slots of the item has it.
Example
Using {{Item|id=2285|item=Apple of Archer}} will result into <img src="
"> {{ {{ #if: | plainlink |url=https://www.divine-pride.net/database/item/2285 }} {{ #if: | {{{num}}} }} Apple of Archer{{ #if: | [{{{slots}}}] }} }}
Using {{Item|id=2285|item=Apple of Archer|link=1}} will result into <img src="
"> {{ {{ #if:1 | plainlink |url=https://www.divine-pride.net/database/item/2285 }} {{ #if: | {{{num}}} }} Apple of Archer{{ #if: | [{{{slots}}}] }} }}
Using {{Item|id=2285|item=Apple of Archer|num=5}} will result into <img src="
"> {{ {{ #if: | plainlink |url=https://www.divine-pride.net/database/item/2285 }} {{ #if:5 | 5 }} Apple of Archer{{ #if: | [{{{slots}}}] }} }}
Using {{Item|id=2285|item=Apple of Archer|slots=2}} will result into <img src="
"> {{ {{ #if: | plainlink |url=https://www.divine-pride.net/database/item/2285 }} {{ #if: | {{{num}}} }} Apple of Archer{{ #if:2 | [2] }} }}