Template:StoreLine/doc

From RuneScape Classic Wiki
Jump to: navigation, search
Information icon-grey.svg
This is a documentation subpage for Template:StoreLine.
It contains usage information, categories, and other content that is not part of the original template page.
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|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

  • Name: the item
  • Stock: number of items that are typically found in the shop before a player buys or sells those items.

Optional Parameters

  • 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)
  • Value: override the item value ("N/A" if not applicable)
  • Image: override the image
  • 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
  • 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