Home
Random
Log in
Settings
About Brighter Shores Wiki
Disclaimers
Search
Editing
Template:ShopLine/doc
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!
{{documentation}} The '''ShopLine''' template is used to fill out tables commonly used in [[Shop]]s to provide a listing of items that are found in that shop. It also helps to provide a uniform look of how the shop information is presented for all articles about shop on the wiki. '''Note: Profession can be set in the {{T|ShopTableHead}} for the whole table.''' ==Usage== The '''ShopLine''' templates are used to list a shop's stock. Three templates are used to form the stock table: * {{T|ShopTableHead}} - Contains table headers for the top of the shop stock table * {{T|ShopLine}} - Template for each line item in the shop * {{T|ShopTableBottom}} - Contains bottom of the table and the reference list for the shop stock table For example: <pre>{{ShopTableHead}} {{ShopLine|name=Lesser Eel|buy=412|sell=165}} {{ShopLine|name=Gray Eel|buy=525|sell=210}} {{ShopLine|name=Rocky Eel|buy=702|sell=270}} {{ShopTableBottom}}</pre> gives {{ShopTableHead}} {{ShopLine|name=Lesser Eel|buy=412|sell=165}} {{ShopLine|name=Gray Eel|buy=525|sell=210}} {{ShopLine|name=Rocky Eel|buy=702|sell=270}} {{ShopTableBottom}} ==Parameters== *'''name:''' the item (should be the page name) *'''displayname: (optional)''' an optional name for the item *'''buy:''' price at which the player can buy the item from the shop. *'''sell:''' price at which the player can sell the item to the shop. *'''image: (optional)''' alternative image to override the image that matches the item name. ** Image size is optional (i.e. to resize the image to 25 pixels by 25 pixels, add this at the end: <code><nowiki>{{!}}25x25px</nowiki></code> * '''level: (optional)''' The level to show in the level column. Requires the profession to be set to be shown in the {{T|ShopTableHead}}. ==Blank template== <pre>{{ShopLine|name=|buy=|sell=}}</pre> <pre>{{ShopLine|name=|buy=|sell=|level=}}</pre> ==See also== * [[Template:ShopTableHead]] * [[Template:ShopTableBottom]] <includeonly>[[Category:Transclusion templates|{{PAGENAME}}]]</includeonly> {{TemplateData|<templatedata> { "description": "Template for generating tables of items sold by shops.", "format": "{{_|_=_}}\n", "params": { "name": { "label": "Name", "description": "Name of item as it appears on page.", "example": "Lesser Eel", "required": true, "type": "wiki-page-name" }, "displayname": { "label": "Display Name", "description": "The name of the item to display", "example": "Another Lesser Eel", "type": "string" }, "buy": { "label": "Buy Price", "description": "The price the player can buy the item for.", "example": "100", "required": true, "type": "string" }, "sell": { "label": "Sell Price", "description": "The price the player can sell the item for.", "example": "100", "required": true, "type": "string" }, "image": { "label": "Image", "description": "An alternative image to override the image that matches the item name.", "example": "Lesser Eel.png", "type": "string" }, "level": { "label": "Level", "description": "The profession level required for being able to purchase an item.", "example": "10", "type": "number" } } } </templatedata>}}
Summary:
Please note that all contributions to Brighter Shores Wiki are considered to be released under the CC BY-NC-SA 3.0 (see
Brighter Shores:Copyrights
for details). 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, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Preview page with this template
Templates used on this page:
Template:Currency
(
edit
)
Template:Documentation
(
edit
)
Template:ShopLine
(
edit
)
Template:ShopTableBottom
(
edit
)
Template:ShopTableHead
(
edit
)
Template:T
(
edit
)
Template:TemplateData
(
edit
)
Module:Array
(
edit
)
Module:Currency
(
edit
)
Module:DPLlua
(
edit
)
Module:DependencyList
(
edit
)
Module:Documentation
(
edit
)
Module:Paramtest
(
edit
)
Module:T
(
edit
)
Module:Tooltip
(
edit
)
Module:Yesno
(
view source
) (semi-protected)
This page is a member of a hidden category:
Category:Templates using TemplateData