Template:ShopItem

From Zelda Wiki, the Zelda encyclopedia
Revision as of 20:40, 19 March 2017 by MannedTooth (talk | contribs) (this didn't do it, now it should)
Jump to navigation Jump to search
Item Price
Bomb (1)
Bomb

Template:ShopItem/f


Purpose

A template for creating tables for items sold in shops.

Usage

    {{ShopItem|item |price |quantity |game |typeimg |desc |altname |altimg |altgame |price2 |price3 |price4 }}

  • item — The item sold.
  • price — The item's price. (Can also be "NA" for N/A or "VAR" for Varies.
  • quantity — Quantity of item sold.
  • game — The game's abbreviation.
  • typeimg — The type of image to get of the item. (Ex: Sprite, Icon, Model)
  • desc — The item's description from the in-game shop. ("ShopItem/h" needs to have the "desc" parameter enabled.)
  • altname — For naming the item something else than its actual name.
  • altimg — For using an alternative image than the currently formatted one. (Can also be "NONE" for no image at all.)
  • altgame — For fetching the image from an alternative game.
  • 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.)

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 (1)
Bomb
100 Rupees
Bomb (1)
Bomb
100 Rupees
Bomb (1)
Bomb
100 Rupees
Bomb (1)
Bomb
100 Rupees

Template:ShopItem/f

Alternative Link Name

For when the shop sells an item with a different name than the actual item name itself. This is also useful when adding plural.

Item Price
Bomb (1)
Bomb
100 Rupees
Bomb (10)
Bombs (10)
100 Rupees
Bomb (1)
Cool Bomb
100 Rupees

Template:ShopItem/f

Alternative Image

For when adding a different image is needed. Although this is possible, it is not recommended, you should move the wanted file to the good format. It is also possible to use no image at all by replacing the "altimg" parameter to "NONE".

Item Price
Bomb (1) File:Bombs ALttP.png
Bomb
100 Rupees
Bomb (1) Bomb
100 Rupees

Template:ShopItem/f

Alternative Game

For when the image's game is not the same as the rupee corresponding to the game's shop. (Ex: OoT and MM sharing the same ressources)

Item Price
Bomb (1)
Bomb
100 Rupees
Bomb (1)
Bomb
100 Rupees

Template:ShopItem/f

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
3 Regular

Expression error: Unexpected > operator. Expression error: Unexpected > operator.

Bomb (1)
Bomb
N/A
105 Rupees
Bomb (1)
Bomb

Template:ShopItem/f

Descriptions

For adding descriptions to an item.

Item Prices
3 Regular

Expression error: Unrecognized word "desc". Expression error: Unrecognized word "desc".

Bomb (1)
Bomb
"This is a Bomb." N/A
105 Rupees
N/A

Template:ShopItem/f