Template documentation
This documentation is transcluded from Template:StoreLine/doc. [edit] [history] [purge]
Template:StoreLine invokes function main in Module:StoreLine using Lua.

The StoreLine template is to be used in conjunction with {{StoreTableHead}} 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

{{StoreTableHead|sellmultiplier=1300|buymultiplier=400|delta=30}}
{{StoreLine|name=Pot|stock=5|restock=9962000}}
{{StoreLine|name=Jug|stock=2|restock=}}
{{StoreLine|name=Empty jug pack|stock=5|gemw=No|restock=10}}
{{StoreLine|name=Shears|stock=2|restock=10}}
{{StoreLine|name=Bucket|stock=3|restock=10}}
{{StoreLine|name=Empty bucket pack|stock=15|gemw=no|restock=10}}
{{StoreLine|name=Bowl|stock=2|restock=10}}
{{StoreLine|name=Pot|displayname=Another pot|stock=5|restock=10}}
{{StoreLine|name=Empty jug pack|stock=5|gemw=No|restock=10}}
{{StoreLine|name=Fletching cape|stock=5|smwname=Fletching cape#Untrimmed|gemw=no|sell=99000|buy=N/A|restock=N/A}}
{{StoreLine|name=Elven top (yellow)|stock=100|image=Elven top (white).png|restock=1}}
{{StoreTableBottom}}

gives

Sells at: 130.0% • Buys at: 40.0% • Change per: 3.0%
ItemNumber
in stock
Restock
time
Price
sold at
Price
bought at
GE
price
Pot569d 4h 20m (9,962,000t) 1 0 5
Jug2unknown 1 0 3
Empty jug pack56s (10t)Not sold
Shears26s (10t) 1 0 27
Bucket36s (10t) 2 0 59
Empty bucket pack156s (10t)Not sold
Bowl26s (10t) 5 1 16
Another pot56s (10t) 1 0 5
Empty jug pack56s (10t)Not sold
Fletching cape5N/A 99,000N/ANot sold
Elven top (yellow)1000.6s (1t) 6,500 2,000Not sold

Parameters

  • name: the item
  • stock: number of items that are typically found in the shop before a player buys or sells those items. Set to or inf for infinite stocks.
  • restock: time (in ticks) it takes for the stock to restore towards its default state (one at a time). Accepts numbers and N/A. Defaults to -1, which displays as <small>unknown</small>.

Optional Parameters

  • gemw: set to "no" if the item is not tradeable on the GE
  • geprice: override the grand exchange price
  • displayname: an optional name to display
  • sell: override the displayed number (N/A if not applicable)
  • buy: override the displayed number (N/A if not applicable)
  • image: override the image, file extension is required (e.g. Image=Rune scimitar.png)
  • gemwname: Use to display an alternate value for the Grand Exchange Market Watch. If the item is available on the Grand Exchange, it will look up current price and value.
  • smwname: Differentiate items that have a switch infobox (see Fletching cape example) for Semantic MediaWiki. It will lookup the item's value from its wiki page
  • 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.

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Item namename

The item to link to and display

Page namerequired
Stock quantitystock

The default stock quantity of a given item

Numberrequired
Restock timerestock

The time in ticks for the item stock to increase or decrease towards the default state by 1 ('N/A' if not applicable)

Default
-1
Stringrequired
Grand Exchange lookupgemw

Set to 'no' if the item is not tradeable on the GE

Stringoptional
Grand Exchange price overridegeprice

Overrides the GE value

Stringoptional
Display namedisplayname

Overrides the displayed item name

Stringoptional
Sell valuesell

Overrides the displayed number ('N/A' if not applicable)

Stringoptional
Buy valuebuy

override the displayed number ('N/A' if not applicable)

Stringoptional
Image overrideimage

Overrides the image, file extension is required (e.g. 'Rune scimitar.png')

Stringoptional
gemw name overridegemwname

Name of an item to lookup the GE price for. Used when the item page's name does not match the in-game name

Stringoptional
smw name overridesmwname

Differentiate items that have a switch infobox for Semantic MediaWiki. It will lookup the item's value from its wiki page

Stringoptional