Template:StoreLine

From Old School RuneScape Wiki
Jump to: navigation, search
Template documentation
This documentation is transcluded from Template:StoreLine/doc. [edit] [purge]
Template:StoreLine invokes function main in Module:StoreLine using Lua.
Template:StoreLine invokes 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
Pot.pngPot569d 4h 20m Coins 1.png 1Coins 1.png 0Coins 5.png 7
Jug.pngJug2unknownCoins 1.png 1Coins 1.png 0Coins 4.png 4
Empty jug pack.pngEmpty jug pack56sCoins 100.png 182Coins 25.png 56Not sold
Shears.pngShears26sCoins 1.png 1Coins 1.png 0Coins 5.png 20
Bucket.pngBucket36sCoins 2.png 2Coins 1.png 0Coins 5.png 7
Empty bucket pack.pngEmpty bucket pack156sCoins 250.png 650Coins 100.png 200Not sold
Bowl.pngBowl26sCoins 5.png 5Coins 1.png 1Coins 5.png 20
Pot.pngAnother pot56sCoins 1.png 1Coins 1.png 0Coins 5.png 7
Empty jug pack.pngEmpty jug pack56sCoins 100.png 182Coins 25.png 56Not sold
Fletching cape.pngFletching cape5N/ACoins 10000.png 99,000N/ANot sold
Elven top (white).pngElven top (yellow)1000.6sCoins 1000.png 6,500Coins 1000.png 2,000Coins 1000.png 6,055

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 'Picture Link' (plink) template is used to create item image + text links.

Template parameters

ParameterDescriptionTypeStatus
Item namename

The item to link to and display

Default
empty
Example
empty
Auto value
empty
Pagerequired
Stock quantitystock

The default stock quantity of a given item

Default
empty
Example
empty
Auto value
empty
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
Example
empty
Auto value
empty
Stringrequired
Grand Exchange lookupgemw

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

Default
empty
Example
empty
Auto value
empty
Stringoptional
Grand Exchange price overridegeprice

Overrides the GE value

Default
empty
Example
empty
Auto value
empty
Stringoptional
Display namedisplayname

Overrides the displayed item name

Default
empty
Example
empty
Auto value
empty
Stringoptional
Sell valuesell

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

Default
empty
Example
empty
Auto value
empty
Stringoptional
Buy valuebuy

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

Default
empty
Example
empty
Auto value
empty
Stringoptional
Image overrideimage

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

Default
empty
Example
empty
Auto value
empty
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

Default
empty
Example
empty
Auto value
empty
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

Default
empty
Example
empty
Auto value
empty
Stringoptional