Template:Shop/Documentation

Revision as of 03:38, 10 October 2023 by Rman41 (talk | contribs) (Text replacement - "{{Documentation Footer}}" to "<noinclude>Category:Template Documentation</noinclude>")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Purpose

Used to create sortable tables for shop listings, using both a header template and multiple row templates. Template:Shop/Header is placed at the top of the table, and the table must be closed by appending |} on the following line.

Usage

Both Template:Shop/Header and Template:Shop have their own parameters.

Shop/Header:

Parameter Description
1 Changes the title of the table's caption to indicate the shop's name or purpose. Defaults to "Shop" otherwise.

Shop:

Parameter Description
1 The linked name of the item or service in the shop's stock, corresponding to whatever the listed name is in-game.
2 The store's pricing for the item. The price should display the relevant currency symbol. Use {{M}} for Macca and ¥‎ for yen.

Code

{{Shop/Header|name}}
{{Shop|1|2}}
|}

Examples

{{Shop/Header|Drug Store}}
{{Shop|[[Medicine]]|¥400}}
{{Shop|[[Ox Bezoar]]|¥1000}}
{{Shop|[[Muscle Drink]]|¥4000}}
|}
Drug Store
Stock Cost
Medicine
¥400
Ox Bezoar
¥1000
Muscle Drink
¥4000