Template:StoreLine/doc

From MediaWiki
Jump to navigation Jump to search
This is a documentation subpage for Template:StoreLine.
It contains usage information, categories, and other content that is not part of the original template page.
Template:StoreLine invokes function main in Module:StoreLine using Lua.

The StoreLine template is to be used in conjunction with {{StoreTableHeader}} 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|buy=20|currency=LUX|level=100|sell=N/A}}
{{StoreLine|name=Felix's Book|buy=1|currency=LUX|level=1|sell=N/A}}
{{StoreLine|name=Felix's Pencil|buy=5|currency=LUX|level=1}}
{{StoreLine|name=History of the Terist|buy=1|currency=LUX|level=3}}
{{StoreTableFooter}}

gives

ItemBuyable forSellable forLevelMembers only
File:Felix's Bait Rod.pngFelix's Bait Rod20 LUXN/A100No
File:Felix's Book.pngFelix's Book1 LUXN/A1No
File:Felix's Pencil.pngFelix's Pencil5 LUXN/A1No
File:History of the Terist.pngHistory of the Terist1 LUXN/A3No


Parameters

  • name: the item
  • buy: the price the item can be bought for from the shop
  • sell: the price the item can be sold to the shop for
  • image: override the image, file extension is required.

Optional Parameters

  • displayname: an optional name to display
  • image: override the image, file extension is required
  • smwname: Differentiate items that have a switch infobox for Semantic MediaWiki. It will lookup the item's value from its wiki page
  • members: If the item can only be bought by members
  • smw: set to "No" to disable smw for this line
  • 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

Template data

Show/hide template's data

The following information is used by extensions and applications, such as VisualEditor, to help users implement this template onto pages. Please ensure that it is up-to-date.

The StoreLine template is used to provide a listing of items that are found in a shop.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Item namename

The item to link to and display

Page namerequired
Display namedisplayname

Overrides the displayed item name

Stringoptional
Sell valuesell

The price the shop sells the item for

Stringoptional
Buy valuebuy

What the item can be sold for to the shop

Stringoptional
Image overrideimage

Overrides the image, file extension is required

Stringoptional
smw name overridesmwname

Differentiate items that have a switch infobox for Semantic MediaWiki. It will lookup the item's value from its wiki page

Stringoptional