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
:
Item/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 item. ==List of Parameter== 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 == <pre> {{Item | 1 = item name (i.e. image name) | 2 = image size | link = | text = | x = | maxWidth = }} </pre> == Sample output == {{Item|Dark Matter|link=Currency|text=Dark Matter|x=40}} <pre> {{Item|Dark Matter|link=Currency|text=Dark Matter|x=40}} </pre> <templatedata> { "format": "inline", "params": { "1": { "required": true, "description": "The name of the item.", "example": "Diamond", "type": "string", "label": "Item Name" }, "2": { "suggested": false, "description": "The pixel height of the item image.", "example": "30", "type": "string", "label": "Image Height", "default": "30" }, "maxWidth": { "suggested": false, "description": "The maximum width of the item image.", "example": "40", "type": "string", "label": "Image Max Width", "default": "40" }, "x": { "suggested": true, "description": "The quantity of the item.", "example": "3", "type": "string", "label": "Item Quantity" }, "nolink": { "suggested": false, "description": "If set to 1, disables linking the item name.", "example": "1", "type": "string", "label": "Disable Link Flag", "default": "0" }, "link": { "suggested": true, "description": "Overrides the link target for the item.", "example": "Item Page", "type": "string", "label": "Custom Link Target" }, "text": { "suggested": false, "description": "Overrides the displayed text for the item.", "example": "Shiny Diamond", "type": "string", "label": "Custom Display Text" } }, "paramOrder": [ "1", "2", "maxWidth", "x", "nolink", "link", "text" ], "format": "{{_\n|_________________ = _\n}}\n", "description": "A template intended to link items in-line with icons of the item." } </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:Item
(
edit
)
Search
Search
Editing
Template
:
Item/doc
Add topic