Template:StoreTableHead/doc

From RuneScape Classic Wiki
Jump to navigation Jump to search
Information icon-grey.svg
This is a documentation subpage for Template:StoreTableHead.
It contains usage information, categories, and other content that is not part of the original template page.
Template:StoreTableHead invokes function main in Module:StoreTableHead using Lua.

The StoreTableHead template is to be used in conjunction with {{StoreLine}} 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|Value=10}}
{{StoreLine|Name=Jug|Stock=2|Value=5}}
{{StoreLine|Name=Shears|Stock=2|Value=15}}
{{StoreLine|Name=Bucket|Stock=3|Value=150}}
{{StoreLine|Name=Bowl|Stock=2|Value=100}}
{{StoreLine|Name=Pot|DisplayName=Another pot|Stock=5|Value=20}}
{{StoreTableBottom}}

gives

ItemNumber
in stock
Price
sold at
Price
bought at
Pot.pngPot5Coins.png 130Coins.png 40
Jug.pngJug2Coins.png 65Coins.png 20
Shears.pngShears2Coins.png 195Coins.png 60
Bucket.pngBucket3Coins.png 1,950Coins.png 600
Bowl.pngBowl2Coins.png 1,300Coins.png 400
Pot.pngAnother pot5Coins.png 260Coins.png 80

Parameters

  • SellMultiplier: the store's sell markup
  • BuyMultiplier: the store's buy margin
  • Delta: the store's price change for over/understocking

Optional

  • 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