Template:StoreTableHeader

From MediaWiki
Jump to navigation Jump to search
Template documentation
This documentation is transcluded from Template:StoreTableHeader/doc. [edit] [history] [purge]
Template:StoreTableHeader invokes function main in Module:StoreTableHeader using Lua.
{{#replace:Template:StoreTableHeader|/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

ItemBuyable forSellable forLevelMembers only
File:Felix's Bait Rod.pngFelix's Bait RodN/A20 LUX100No
File:Felix's Book.pngFelix's BookN/A1 LUX1No
File:Felix's Pencil.pngFelix's PencilN/A5 LUX1No
File:History of the Terist.pngHistory of the TeristN/A1 LUX3No

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