Jump to content

Template:Gift/doc

From SPS Wiki

Description

[edit source]

This template creates the icon and link for an gift.

List of Parameter

[edit source]

This template has 2 unnamed parameters:

  1. (mandatory) Name of the gift. If set to Unknown no link is set.
  2. (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]

Shell 3 Shell

{{Gift|Shell|link=Gifts|text=Shell|x=3}}

No description.

Template parameters

This template has custom formatting.

ParameterDescriptionTypeStatus
Gift Name1

The name of the gift item.

Example
Rose
Stringrequired
Image Height2

The pixel height of the item image.

Default
25
Example
25
Stringoptional
Image Max WidthmaxWidth

The maximum width of the item image.

Default
30
Example
30
Stringoptional
Gift Quantityx

The quantity of the gift.

Example
5
Stringoptional
Disable Link Flagnolink

If set to 1, disables linking the item name.

Default
0
Example
1
Stringoptional
Hide Text Flagnotext

If set to 1, hides the item text.

Default
0
Example
1
Stringoptional
Custom Link Targetlink

Overrides the link target for the item.

Example
Gift Page
Stringoptional
Custom Display Texttext

Overrides the displayed text for the item.

Example
Lovely Rose
Stringoptional