Template:StoreLine
Jump to navigation
Jump to 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|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
Item | Number in stock | Price sold at | Price bought at | |
---|---|---|---|---|
![]() | Pot | 5 | ![]() | ![]() |
![]() | Jug | 2 | ![]() | ![]() |
![]() | Shears | 2 | ![]() | ![]() |
![]() | Bucket | 3 | ![]() | ![]() |
![]() | Bowl | 2 | ![]() | ![]() |
![]() | Another pot | 5 | ![]() | ![]() |
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