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 |typeimg |desc |dispname |img }}
- 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.
- typeimg — The type of image for the item (e.g. Sprite, Icon, Model), defaults to Sprite
- 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) - 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 be enclosed between a Template:Tl and a Template:Tl template (see example code below).
Examples
Basic
How to use a Sprite, an Icon, a Model or an Artwork.
Item | Price |
---|---|
Bomb |
100 Rupees
|
Bomb |
100 Rupees
|
Bomb |
100 Rupees
|
Bomb |
100 Rupees
|
Alternative Display Name
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.
Item | Price |
---|---|
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).
Item | Price |
---|---|
File:Bombs ALttP.png 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.
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.
Item | Description | Prices | ||
---|---|---|---|---|
Regular | Discount #1 | Discount #2 | ||
Bomb |
"This is a Bomb." | N/A | 105 Rupees
|
N/A |