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