Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Announcements
Random page
Help about MediaWiki
SPS Wiki
Search
Search
Appearance
Create account
Log in
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Editing
Template
:
Gift/doc
Template
Discussion
Canadian English
Read
Edit source
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit source
View history
General
What links here
Related changes
Page information
Special pages
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== Description == This template creates the icon and link for an [[Gifts|gift]]. ==List of Parameter== 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 == <pre> {{Item | 1 = gift name (i.e. image name) | 2 = image size | link = | text = | notext = | x = | maxWidth = }} </pre> == Sample output == {{Gift|Shell|link=Gifts|text=Shell|x=3}} <pre> {{Gift|Shell|link=Gifts|text=Shell|x=3}} </pre> <templatedata> { "format": "inline", "params": { "1": { "required": true, "description": "The name of the gift item.", "example": "Rose", "type": "string", "label": "Gift Name" }, "2": { "suggested": false, "description": "The pixel height of the item image.", "example": "25", "type": "string", "label": "Image Height", "default": "25" }, "maxWidth": { "suggested": false, "description": "The maximum width of the item image.", "example": "30", "type": "string", "label": "Image Max Width", "default": "30" }, "x": { "suggested": false, "description": "The quantity of the gift.", "example": "5", "type": "string", "label": "Gift Quantity" }, "nolink": { "suggested": false, "description": "If set to 1, disables linking the item name.", "example": "1", "type": "string", "label": "Disable Link Flag", "default": "0" }, "notext": { "suggested": false, "description": "If set to 1, hides the item text.", "example": "1", "type": "string", "label": "Hide Text Flag", "default": "0" }, "link": { "suggested": false, "description": "Overrides the link target for the item.", "example": "Gift Page", "type": "string", "label": "Custom Link Target" }, "text": { "suggested": false, "description": "Overrides the displayed text for the item.", "example": "Lovely Rose", "type": "string", "label": "Custom Display Text" } }, "paramOrder": [ "1", "2", "maxWidth", "x", "nolink", "notext", "link", "text" ], "format": "{{_\n|_________________ = _\n}}\n" } </templatedata> <includeonly>[[Category:Display Templates]]</includeonly><noinclude>[[Category:Template documentation]]</noinclude>
Summary:
Please note that all contributions to SPS Wiki are considered to be released under the CC-BY-SA license. If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, copied it from a public domain or similar free resource, are quoting material from elsewhere within a sufficiently limited scope to qualify as fair use, or are using material from SPS' games within the scope of our content policy.
Cancel
Editing help
(opens in new window)
Page included on this page:
Template:Gift
(
edit
)
Search
Search
Editing
Template
:
Gift/doc
Add topic