Template:Shop/doc: Difference between revisions

Fixed ShopMon & Shopdec
mNo edit summary
(Fixed ShopMon & Shopdec)
Line 2: Line 2:


== Shop ==
== Shop ==
The shop template begins a new shop table for displaying a list of items and Pokémon for sale. The shop template should be followed by the appropriate number of shoprow and shopitem, shopmon or shopdec templates, and then terminated by a shopfooter template.
The shop template begins a new shop table for displaying a list of items and Pokémon for sale. The shop template should be followed by the appropriate number of shoprow and shopitem, shopmon or shopdec templates, and terminated by the shopfooter template.


===Usage===
===Usage===
The shop template takes 1 parameter for specifying shop location details in cases of ambiguity. This applies to locations where 2 shop counters are located in the same building or on multiple floors. It also applies to shops which appear in multiple generations of games. It should be left blank except in cases of ambiguity.
The shop template takes a single parameter used for identification. This applies when 2 shop counters are located in the same building or on multiple floors, or shops which appear in multiple generations of games. It should be left blank except in cases of ambiguity.


Parameters:
Parameters:
* 1: specific shop location details
* 1: unique shop identifier, normally shop's location
** Examples would include: ''Generation II'', ''Left Counter'', or ''2nd Floor''
** Examples would include: ''Generation II'', ''Left Counter'', or ''2nd Floor''




== Shoprow ==
== Shoprow ==
The shoprow template designates a single row in a shop table. Each shop row consists of 2 columns for displaying the items or Pokémon sold.   
The shoprow template designates a single row in a table. Each shop row consists of 2 columns displaying items or Pokémon being sold.   


===Usage===
===Usage===
Line 24: Line 24:


== Shopitem ==
== Shopitem ==
The shopitem template displays a single item in the shop table.   
The shopitem template is used to display a single item for sale in a shop table.   


===Usage===
===Usage===
The shopitem template takes 6 parameters.
The shopitem template takes up to 6 parameters.


Parameters:
Parameters:
Line 33: Line 33:
* 2: item price
* 2: item price
* 3: currency  
* 3: currency  
** use Dollars, PD, Coupons, PC, Coins, C, Battle, BP, Pts, or Points. The default is Dollars.
** Dollars, PD, Coupons, PC, Coins, C, Battle, BP, Pts, or Points, defaults to Dollars
* 4: additional notes for items with special availability/conditions.   
* 4: additional notes for items with special availability/conditions.   
** Examples would be "only in Generation I" or "After defeating elite four".
** Examples would be "only in Generation I" or "After defeating elite four"
* 5: item name for image sprite
* 5: name of alternate sprite
** By default, the item sprite used is determined by parameter 1. Specifying a non-empty name here will override the normal sprite used. This is useful in cases where an item sprite is known to not exist, in which case '???' or another value can be specified.
** Defaults to parameter 1. Specifying a non-empty name will override the default. Can be useful in cases where an item sprite is known not to exist, in which case '???' or another value can be specified
* 6: move name, specifically used for TM/HM items which teach a move
* 6: move name, used specifically for TM/HM items which teach a move
 


== Shopmon ==
== Shopmon ==
The shopmon template displays a single Pokémon which is for sale in the shop table. The currency used is always [[Coin]]s.
The shopmon template displays a single Pokémon for sale in the shop table. The currency used is always [[Coin]]s.


===Usage===
===Usage===
The shopdec template takes 6 parameters. It is to be used for images of nonstandard filenames, such as [[decoration]]s or [[villa decoration]]s.
The shopmon template takes up to 5 parameters.


Parameters:
Parameters:
* 1: Item's name
* 1: Pokémon's name
* 2: Sprite name (omit .png extension{{tt|*|template will not work with other file extensions}})
* 2: Pokémon's [[National Pokédex]] number
* 3: cost
* 3: price
* 4: currency
* 4: level
* 5: additional notes for Pokémon with special availability/conditions.   
* 5: additional notes for Pokémon with special availability/conditions.   
** Examples would be "only in Generation I" or "After defeating elite four".
** Examples would be "only in Generation I" or "After defeating elite four".
* 6: target link; for changing the link to a location other than the item's name.


== Shopmon ==
 
The shopmon template displays a single Pokémon which is for sale in the shop table. The currency used is always [[Coin]]s.
== Shopdec ==
The shopdec template displays a single item for sale in the shop table. The currency used is always [[Coin]]s.


===Usage===
===Usage===
The shopmon template takes 6 parameters.
The shopdec template takes up to 6 parameters. It is to be used for images of nonstandard filenames, such as [[decoration]]s or [[villa decoration]]s.


Parameters:
Parameters:
* 1: Pokémon's name
* 1: item's name
* 2: Pokémon's [[National Pokédex]] number
* 2: sprite name (omit .png extension{{tt|*|template will not work with other file extensions}})
* 3: cost
* 3: item price
* 4: additional notes for Pokémon with special availability/conditions.   
* 4: currency
* 5: additional notes for Pokémon with special availability/conditions.   
** Examples would be "only in Generation I" or "After defeating elite four".
** Examples would be "only in Generation I" or "After defeating elite four".
* 6: alternate link location; for changing link location from defaulting to item's name.


== Shopfooter ==
== Shopfooter ==
The shopfooter template ends a shop table.
The shopfooter template is used at the end of a shop table.


===Usage===
===Usage===
The shopfooter template should be used after the shop template and its subsequent shoprow, shopitem, shopmon and shopdec templates. It takes a single parameter.
The shopfooter template terminates the shop template. It takes a single parameter.


Parameters:
Parameters:
* multiple: designates whether there are multiple shop tables being displayed so they can be displayed correctly in the article. Set it to "yes" to allow multiple.
* multiple: designates whether there are multiple shop tables to display. Set to "yes" to allow multiple tables.




==Examples==
==Examples==


===Shop with 2 counters, TM/HMs, Battle Points currency===
===Shop with 2 counters selling TM/HMs for Battle Points===
{{shop|Left Cashier}}
{{shop|Left Cashier}}
{{shoprow|{{shopitem|HP Up|1|BP}}|{{shopitem|Protein|1|BP}}}}
{{shoprow|{{shopitem|HP Up|1|BP}}|{{shopitem|Protein|1|BP}}}}
91

edits