Template:Shop
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. Additional columns can be added to the table as necessary by enabling the respective parameter in the Header template.
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. |
| restocks | Must be given a value (such as "1" or "y") to display. Enables two columns for listing the available stock of a good/service, and when it is restocked, respectively. |
| available | Must be given a value (such as "1" or "y") to display. Enables a column for listing when a good/service is available. |
Shop:
| Parameter | Description |
|---|---|
| 1 | The linked name of the good/service in the shop's stock, corresponding to whatever the listed name is in-game. |
| 2 | The store's pricing for the good/service. Include the currency used for the cost, including any currency symbols using Template:Currency. |
| 3 | Parameter used for whichever is the enabled third column. |
| 4 | Parameter used for whichever is the enabled fourth column. |
| 5 | Parameter used for whichever is the enabled fifth column. |
Code
- Minimum code
{{Shop/Header|name}}
{{Shop|1|2}}
|}
- All parameters
{{Shop/Header|name|restocks=|available=}}
{{Shop|1|2|3|4|5}}
|}
Examples
{{Shop/Header|Drug Store}}
{{Shop|[[Medicine]]|{{Currency|Yen}}400}}
{{Shop|[[Ox Bezoar]]|{{Currency|Yen}}1000}}
{{Shop|[[Muscle Drink]]|{{Currency|Yen}}4000}}
|}
| Stock | Cost |
|---|---|
| Medicine | ¥Yen400 |
| Ox Bezoar | ¥Yen1000 |
| Muscle Drink | ¥Yen4000 |
- Listing with stock, restock, and availability enabled
{{Shop/Header|Furugi no Neuchi|restocks=y|available=y}}
{{Shop|[[Awake Incense]]|{{Currency|Yen}}15,000|99|Daily|Always}}
{{Shop|[[Awakening Incense]]|{{Currency|Yen}}30,000|3|1st of every month|Beginning 9/1}}
{{Shop|[[Quick Spray]]|{{Currency|Yen}}8,000|99|Daily|Always}}
{{Shop|[[Cleaning Spray]]|{{Currency|Yen}}8,000|99|Daily|Beginning 7/1}}
{{Shop|[[Ultimate Spray]]|{{Currency|Yen}}10,000|3|1st of every month|Beginning 9/1}}
{{Shop|[[Idaten's Belt]]|{{Currency|Yen}}20,000|1|Daily|Always}}
{{Shop|[[Clothing Grab Bag]]|{{Currency|Yen}}100|1|Daily|Always}}
|}
| Stock | Cost | Stock | Restocks | Available |
|---|---|---|---|---|
| Awake Incense | ¥Yen15,000 | 99 | Daily | Always |
| Awakening Incense | ¥Yen30,000 | 3 | 1st of every month | Beginning 9/1 |
| Quick Spray | ¥Yen8,000 | 99 | Daily | Always |
| Cleaning Spray | ¥Yen8,000 | 99 | Daily | Beginning 7/1 |
| Ultimate Spray | ¥Yen10,000 | 3 | 1st of every month | Beginning 9/1 |
| Idaten's Belt | ¥Yen20,000 | 1 | Daily | Always |
| Clothing Grab Bag | ¥Yen100 | 1 | Daily | Always |