Template:StoreLine/doc: Difference between revisions
No edit summary |
No edit summary |
||
(2 intermediate revisions by the same user not shown) | |||
Line 4: | Line 4: | ||
==Usage== | ==Usage== | ||
<pre>{{StoreTableHeader|currency=LUX}} | <pre>{{StoreTableHeader|currency=LUX}} | ||
{{StoreLine|name=Felix's Bait Rod| | {{StoreLine|name=Felix's Bait Rod|buy=20|currency=LUX|level=100|sell=N/A}} | ||
{{StoreLine|name=Felix's Book| | {{StoreLine|name=Felix's Book|buy=1|currency=LUX|level=1|sell=N/A}} | ||
{{StoreLine|name=Felix's Pencil| | {{StoreLine|name=Felix's Pencil|buy=5|currency=LUX|level=1}} | ||
{{StoreLine|name=History of the Terist| | {{StoreLine|name=History of the Terist|buy=1|currency=LUX|level=3}} | ||
{{StoreTableFooter}}</pre> | {{StoreTableFooter}}</pre> | ||
Line 13: | Line 13: | ||
{{StoreTableHeader|currency=LUX}} | {{StoreTableHeader|currency=LUX}} | ||
{{StoreLine|name=Felix's Bait Rod| | {{StoreLine|name=Felix's Bait Rod|buy=20|currency=LUX|level=100|sell=N/A}} | ||
{{StoreLine|name=Felix's Book| | {{StoreLine|name=Felix's Book|buy=1|currency=LUX|level=1|sell=N/A}} | ||
{{StoreLine|name=Felix's Pencil| | {{StoreLine|name=Felix's Pencil|buy=5|currency=LUX|level=1}} | ||
{{StoreLine|name=History of the Terist| | {{StoreLine|name=History of the Terist|buy=1|currency=LUX|level=3}} | ||
{{StoreTableFooter}} | {{StoreTableFooter}} | ||
Line 22: | Line 22: | ||
==Parameters== | ==Parameters== | ||
* '''name:''' the item | * '''name:''' the item | ||
* ''' | * '''buy:''' the price the item can be bought for from the shop | ||
* ''' | * '''sell:''' the price the item can be sold to the shop for | ||
* '''image:''' override the image, file extension is required. | * '''image:''' override the image, file extension is required. | ||
Line 30: | Line 30: | ||
*'''image:''' override the image, file extension is required | *'''image:''' override the image, file extension is required | ||
*'''smwname:''' Differentiate items that have a switch infobox for Semantic MediaWiki. It will lookup the item's value from its wiki page | *'''smwname:''' Differentiate items that have a switch infobox for Semantic MediaWiki. It will lookup the item's value from its wiki page | ||
*'''members:''' If the item can only be bought by members | |||
*'''smw:''' set to "No" to disable smw for this line | *'''smw:''' set to "No" to disable smw for this line | ||
*'''column1:''' Add an additional column with this as contents | *'''column1:''' Add an additional column with this as contents |
Latest revision as of 11:54, 4 April 2022
The StoreLine template is to be used in conjunction with {{StoreTableHeader}}
provide a listing of items that are found in a shop. It also helps to provide a uniform look of how the shop information is presented for all articles about shop on the wiki.
Usage
{{StoreTableHeader|currency=LUX}} {{StoreLine|name=Felix's Bait Rod|buy=20|currency=LUX|level=100|sell=N/A}} {{StoreLine|name=Felix's Book|buy=1|currency=LUX|level=1|sell=N/A}} {{StoreLine|name=Felix's Pencil|buy=5|currency=LUX|level=1}} {{StoreLine|name=History of the Terist|buy=1|currency=LUX|level=3}} {{StoreTableFooter}}
gives
Item | Buyable for | Sellable for | Level | Members only | |
---|---|---|---|---|---|
File:Felix's Bait Rod.png | Felix's Bait Rod | 20 LUX | N/A | 100 | No |
File:Felix's Book.png | Felix's Book | 1 LUX | N/A | 1 | No |
File:Felix's Pencil.png | Felix's Pencil | 5 LUX | N/A | 1 | No |
File:History of the Terist.png | History of the Terist | 1 LUX | N/A | 3 | No |
Parameters
- name: the item
- buy: the price the item can be bought for from the shop
- sell: the price the item can be sold to the shop for
- image: override the image, file extension is required.
Optional Parameters
- displayname: an optional name to display
- image: override the image, file extension is required
- smwname: Differentiate items that have a switch infobox for Semantic MediaWiki. It will lookup the item's value from its wiki page
- members: If the item can only be bought by members
- smw: set to "No" to disable smw for this line
- column1: Add an additional column with this as contents
- column2: Add an additional column with this as contents
- columnX: ... Add an additional column with this as contents
See also
Template data
Show/hide template's data | |||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
The following information is used by extensions and applications, such as VisualEditor, to help users implement this template onto pages. Please ensure that it is up-to-date. The StoreLine template is used to provide a listing of items that are found in a shop.
|