Template:Gift/doc
Appearance
Description
[edit source]This template creates the icon and link for an gift.
List of Parameter
[edit source]This template has 2 unnamed parameters:
- (mandatory) Name of the gift. 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 gift.
- notext: If set to 1, the complete text will be omitted. The picture will no longer behave like an inline-block.
- x: Quantity of the gift. Part of the text.
- maxWidth: Limit to how wide the image of the gift can be. Defaults to 40.
Syntax
[edit source]{{Item
| 1 = gift name (i.e. image name)
| 2 = image size
| link =
| text =
| notext =
| x =
| maxWidth =
}}
Sample output
[edit source]
3 Shell
{{Gift|Shell|link=Gifts|text=Shell|x=3}}
No description.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Gift Name | 1 | The name of the gift 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 |
| Gift Quantity | x | The quantity of the gift.
| String | optional |
| Disable Link Flag | nolink | If set to 1, disables linking the item name.
| String | optional |
| Hide Text Flag | notext | If set to 1, hides the item text.
| String | optional |
| Custom Link Target | link | Overrides the link target for the item.
| String | optional |
| Custom Display Text | text | Overrides the displayed text for the item.
| String | optional |