Template:StoreTableHeader/doc

From Discord Dungeons Wiki
< Template:StoreTableHeader
Revision as of 13:03, 3 April 2022 by Mackan (talk | contribs) (Created page with "{{Documentation}} {{invokes|StoreTableHeader}} The '''StoreTableHead''' template is to be used in conjunction with {{t|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== <pre>{{StoreTableHeader|currency=LUX}} {{StoreLine|name=Felix's Bait Rod|sell=20|currency=LUX|level=100}} {{StoreLine|name=Felix's Book|sell=1|currency=LUX|l...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
This is a documentation subpage for Template:StoreTableHeader.
It contains usage information, categories, and other content that is not part of the original template page.
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

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 Buy price 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