Template:Itemlink: Difference between revisions
From trifecta
Jump to navigationJump to search
imported>DualDisc Since "if" statements doesn't seem to work, I'll make an alt template for items that link to DP database... Lets see if this works |
imported>DualDisc mNo edit summary |
||
| Line 1: | Line 1: | ||
<includeonly>https://static.divine-pride.net/images/items/item/{{{id}}}.png | <includeonly>https://static.divine-pride.net/images/items/item/{{{id}}}.png [https://www.divine-pride.net/database/item/{{{id}}} {{{item}}}]</includeonly><noinclude> | ||
Template for cleanly adding an icon to an item name, plus linking it to Divine Pride's database. | Template for cleanly adding an icon to an item name, plus linking it to Divine Pride's database. | ||
Latest revision as of 11:39, 10 December 2025
Template for cleanly adding an icon to an item name, plus linking it to Divine Pride's database.
WARNING: Since TRO is a highly customized server, please check if the DP version is accurate to the in-game item. If it's different, use Template:Item instead to add icon without the DP link.
Syntax
{{Itemlink|id=|item=}}
- Parameters
- id
- The unique id of the item.
- item
- The name of the item. Include item numbers or slots if needed.
Example
Using {{Itemlink|id=2285|item=Apple of Archer}} will result into https://static.divine-pride.net/images/items/item/2285.png Apple of Archer
Using {{Itemlink|id=2285|item=5 Apple of Archer}} will result into https://static.divine-pride.net/images/items/item/2285.png 5 Apple of Archer
Using {{Itemlink|id=2285|item=Apple of Archer [2]}} will result into https://static.divine-pride.net/images/items/item/2285.png Apple of Archer [2]