Template:StoreTableHeader/doc
Jump to navigation
Jump to search
Template:StoreTableHeader invokes function main in Module:StoreTableHeader using Lua.
{{#replace:Template:StoreTableHeader/doc|/doc}} invokes Module:StoreTableHeader 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
{{StoreTableHeader|currency=LUX}} {{StoreLine|name=Felix's Bait Rod|sell=20|currency=LUX|level=100}} {{StoreLine|name=Felix's Book|sell=1|currency=LUX|level=1}} {{StoreLine|name=Felix's Pencil|sell=5|currency=LUX|level=1}} {{StoreLine|name=History of the Terist|sell=1|currency=LUX|level=3}} {{StoreTableFooter}}
gives
Item | Buyable for | Sellable for | Level | Members only | |
---|---|---|---|---|---|
File:Felix's Bait Rod.png | Felix's Bait Rod | N/A | 20 LUX | 100 | No |
File:Felix's Book.png | Felix's Book | N/A | 1 LUX | 1 | No |
File:Felix's Pencil.png | Felix's Pencil | N/A | 5 LUX | 1 | No |
File:History of the Terist.png | History of the Terist | N/A | 1 LUX | 3 | No |
Parameters
Optional
- namenotes: additional text information for autogenerated store lists.
- currency: defaults to "Gold"
- smw: set to "No" to prevent indexing of this table into
{{Store locations list}}
. Use this to prevent duplicates (e.g. the store is shown on the store page AND the npc page) - hideimage set to "yes" to hide the image column, for example for stores that sell things that don't necessarily have a fitting icon (e.g. abstract unlocks or abilities)
- hidebuy set to "yes" to hide the "Buyable for" column - you still need to set Buy=N/A for the StoreLine template
- hidesell set to "yes" to hide the "Sellable for" column - you still need to set Buy=N/A for the StoreLine template
- 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