Template:Item
Appearance
Description
[edit source]This template creates the icon and link for an item.
List of Parameter
[edit source]This template has 2 unnamed parameters:
- (mandatory) Name of the item. If set to Unknown no link is set.
- (optional) Height of the icon. Defaults to 30.
There are also 5 optional named parameters:
- link: Sets another page to be linked.
- text: Displays another text instead of the name of the item.
- x: Quantity of the item. Part of the text.
- maxWidth: Limit to how wide the image of the item can be. Defaults to 40.
- nolink: if set to 1, this removes the text and hyperlink, leaving only the icon and the quantity
Syntax
[edit source]{{Item
| 1 = item name (i.e. image name)
| 2 = image size
| link =
| text =
| x =
| maxWidth =
}}
Sample output
[edit source]
40 Dark Matter
{{Item|Dark Matter|link=Currency|text=Dark Matter|x=40}}
A template intended to link items in-line with icons of the item.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Item Name | 1 | The name of the item.
| String | required |
| Image Height | 2 | The pixel height of the item image.
| String | optional |
| Image Max Width | maxWidth | The maximum width of the item image.
| String | optional |
| Item Quantity | x | The quantity of the item.
| String | suggested |
| Disable Link Flag | nolink | If set to 1, disables linking the item name.
| String | optional |
| Custom Link Target | link | Overrides the link target for the item.
| String | suggested |
| Custom Display Text | text | Overrides the displayed text for the item.
| String | optional |