Difference between revisions of "Template:Item"
Jump to navigation
Jump to search
m |
(Errrmm ill make it really simple for now) |
||
| 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 |
+ | 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. |
||
== Syntax == |
== Syntax == |
||
| − | <code><nowiki>{{Item|id=|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. |
| − | ; 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 == |
== Example == |
||
| Line 18: | Line 16: | ||
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|id=2285|item=Apple of Archer}}</nowiki></code> will result into {{Item|id=2285|item=Apple of Archer}} |
||
| − | Using <code><nowiki>{{Item|id=2285|item=Apple of Archer |
+ | 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|id=2285|item=Apple of Archer |
+ | Using <code><nowiki>{{Item|id=2285|item=Apple of Archer [2]}}</nowiki></code> will result into {{Item|id=2285|item=Apple of Archer [2]}} |
| − | |||
| − | Using <code><nowiki>{{Item|id=2285|item=Apple of Archer|slots=2}}</nowiki></code> will result into {{Item|id=2285|item=Apple of Archer|slots=2}} |
||
</noinclude> |
</noinclude> |
||
Revision as of 11:33, 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.
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
Apple of Archer
Using {{Item|id=2285|item=5 Apple of Archer}} will result into
5 Apple of Archer
Using {{Item|id=2285|item=Apple of Archer [2]}} will result into
Apple of Archer [2]