Template:ShopItem
Item | Price |
---|---|
Bomb |
10 Rupees
|
Purpose
A template for creating tables for items sold in shops.
Usage
{{ShopItem|game |item |price |price2 |price3 |price4 |quantity |stock |desc |dispname |note |img |altlink }}
- game — The game's abbreviation
- item — The item sold
- price — The item's price
- price2 — The item's price for the second column (requires a table with multiple columns)
- price3 — The item's price for the third column (requires a table with multiple columns)
- price4 — The item's price for the fourth column (requires a table with multiple columns)
- quantity — Quantity of item sold.
- stock — The maximum amount of the item available in the shop.
- desc — The item's description from the in-game shop (requires "desc" parameter to be enabled in "ShopItem/h")
- dispname — Display name of the item (
item
is still used to determine link and image) - note — For adding a note next to the item's name
- img — Overrides image with image at specified filename. Setting this value to "None" (case insensitive) causes no image to be displayed.
Note: This template must have a {{ShopItem/h}}
header to function properly (see example code below).
Examples
Basic
How to use a Sprite, an Icon, a Model or an Artwork.
{{ShopItem/h}} {{ShopItem|TLoZ|Bomb|100}} {{ShopItem|MM3D|Bomb|100}} {{ShopItem|TP|Bomb|100}} {{ShopItem|ALttP|Bomb|100}} |}
Item | Price |
---|---|
Bomb |
100 Rupees
|
Bomb |
100 Rupees
|
Bomb |
100 Rupees
|
Bomb |
100 Rupees
|
Alternative Display Name, Stock and Note
For when the shop sells an item with a different shop name to the item's article title. This is useful when the item name should be in plural.
{{ShopItem/h}} {{ShopItem|TLoZ|Bomb|100|stock=3}} {{ShopItem|TLoZ|Bomb|100|note=This is a note}} {{ShopItem|TLoZ|Bomb|100|quantity=10|dispname=Bombs}} {{ShopItem|TLoZ|Bomb|100|dispname=Cool Bomb}} |}
Item | Price |
---|---|
Bomb |
100 Rupees
|
Bomb |
100 Rupees
|
Bombs ×10 |
100 Rupees
|
Cool Bomb |
100 Rupees
|
Alternative Image
For when the item's image does not match the systematic filename yielded by the template. Although this is possible, it should only be done if the item is already uses the recommended filename structure and that name is incompatible with this template. It is also possible to use no image at all by assigning the "img" parameter the value of "NONE" (case insensitive).
{{ShopItem/h}} {{ShopItem|ALttP|Bomb|100|img=ALttP Bomb Artwork 2.png}} {{ShopItem|ALttP|Bomb|100|img=none}} {{ShopItem|OoT3D|Bomb|100|img=MM3D Bomb Icon.png}} {{ShopItem|MM3D|Bomb|100}} |}
Item | Price |
---|---|
Bomb |
100 Rupees
|
Bomb | 100 Rupees
|
Bomb |
100 Rupees
|
Bomb |
100 Rupees
|
Multiple Columns & N/A Price
For creating tables with multiple types of prices and including items that can't be sold for some or prices that varies.
{{ShopItem/h|3|Regular|Discount #1|Discount #2}} {{ShopItem|TLoZ|Bomb|N/A|105|35}} {{ShopItem|TLoZ|Bomb|50|80|65}} {{ShopItem|TLoZ|Bomb|40|N/A|N/A}} {{ShopItem|TLoZ|Bomb|N/A|10|35}} |}
Item | Prices | ||
---|---|---|---|
Regular | Discount #1 | Discount #2 | |
Bomb |
N/A | 105 Rupees
|
35 Rupees
|
Bomb |
50 Rupees
|
80 Rupees
|
65 Rupees
|
Bomb |
40 Rupees
|
N/A | N/A |
Bomb |
N/A | 10 Rupees
|
35 Rupees
|
Descriptions
For adding descriptions to an item.
{{ShopItem/h|3|Regular|Discount #1|Discount #2|desc=yes}} {{ShopItem|TLoZ|Bomb|desc=This is a Bomb.|N/A|105|N/A}} |}
Item | Description | Prices | ||
---|---|---|---|---|
Regular | Discount #1 | Discount #2 | ||
Bomb |
This is a Bomb. | N/A | 105 Rupees
|
N/A |