Template:Item: Difference between revisions
From trifecta
Jump to navigationJump to search
imported>DualDisc This might not work right away but hopefully it does |
imported>DualDisc mNo edit summary |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
<includeonly> | <includeonly>https://static.divine-pride.net/images/items/item/{{{id}}}.png {{{item}}}</includeonly><noinclude> | ||
Template for cleanly adding an icon to an item name. It has the | Template for cleanly adding an icon to an item name. It's very rudimentary for now. | ||
If the item has slots, you can simply add it under the item name. | |||
If you want the text to link to Divine Pride database, use '''[[Template:Itemlink]]'''. | |||
== Syntax == | == Syntax == | ||
<code><nowiki>{{Item | <code><nowiki>{{Item|id=|item=}}</nowiki></code> | ||
; Parameters | ; Parameters | ||
; id : The unique id of the item. | ; id : The unique id of the item. | ||
; item : The name of the item. | ; item : The name of the item. Include item numbers or slots if needed. | ||
== Example == | == Example == | ||
Using <code><nowiki>{{Item | Using <code><nowiki>{{Item|id=2285|item=Apple of Archer}}</nowiki></code> will result into {{Item|id=2285|item=Apple of Archer}} | ||
Using <code><nowiki>{{Item | Using <code><nowiki>{{Item|id=2285|item=5 Apple of Archer}}</nowiki></code> will result into {{Item|id=2285|item=5 Apple of Archer}} | ||
Using <code><nowiki>{{Item | Using <code><nowiki>{{Item|id=2285|item=Apple of Archer [2]}}</nowiki></code> will result into {{Item|id=2285|item=Apple of Archer [2]}} | ||
</noinclude> | </noinclude> | ||
Latest revision as of 11:40, 10 December 2025
Template for cleanly adding an icon to an item name. It's very rudimentary for now.
If the item has slots, you can simply add it under the item name.
If you want the text to link to Divine Pride database, use Template:Itemlink.
Syntax
{{Item|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 {{Item|id=2285|item=Apple of Archer}} will result into https://static.divine-pride.net/images/items/item/2285.png Apple of Archer
Using {{Item|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 {{Item|id=2285|item=Apple of Archer [2]}} will result into https://static.divine-pride.net/images/items/item/2285.png Apple of Archer [2]