Template:Item/doc

From Necesse Wiki
Jump to navigation Jump to search

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.

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}}  Iron Bar
{{Item|Iron Bar|42}}  Iron Bar (42)
{{Item|Iron Bar|Amount here|image=Iron Ore.png}}  Iron Bar (Amount here)
{{Item|Shadow Beam|attacksprite=1}}  Shadow Beam
{{Item|Iron Bar|9001|addon=Some extra text}}  Iron Bar (9001) Some extra text