Template:Item
This template is for displaying an item together with an optional amount.
Usage[edit]
{{Item|name|amount}}
name parameter is the item name. It should match the item page on the wiki.
amount parameter is optional and will insert the amount after the item link.
imageonly=yes parameter is optional and will remove all text and output just the image with the image acting as a link to the item page
Optional parameters are:
attacksprite to use the items attack sprite by default
link for a custom link of the item
image for a custom image of the item
size for a custom image size
inline for making them display inline. Example: {{Item|Iron Bar|inline=1}}
addon for anything added to the end within the span
class for a custom HTML class for the span
style for a custom HTML style for the span
Examples[edit]
| Input | Output |
|---|---|
{{Item|Iron Bar|imageonly=yes}} |
|
{{Item|Iron Bar}} |
|
{{Item|Iron Bar|42}} |
|
{{Item|Iron Bar|Amount here|image=Iron Ore.png}} |
|
{{Item|Shadow Beam|attacksprite=1}} |
Shadow Beam
|
{{Item|Iron Bar|9001|addon=Some extra text}} |
