The following is a documentation guide for using the shop, shoprow, shopitem, and shopfooter templates.
Shop
The shop template begins a new shop table for displaying a list of items for sale. The shop template should be followed by the appropriate number of shoprow and shopitem templates, and then terminated by a shopfooter template.
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.
Parameters:
- 1: specific shop location details
- Examples would include: Generation II, Left Counter, or 2nd Floor
Shoprow
The shoprow template designates a single row in a shop table. Each shop row consists of 2 columns for displaying items.
Usage
The shoprow template takes 2 parameters, both of which are shopitem templates.
Parameters:
- 1: first column shop item (instance of {{shopitem}})
- 2: second column shop item (instance of {{shopitem}})
Shopitem
The shopitem template displays a single item in the shop table.
Usage
The shopitem template takes 6 parameters.
Parameters:
- 1: item name
- 2: item price
- 3: currency
- use Dollars, PD, Coupons, PC, Coins, C, Battle, BP, Pts, or Points. The default is Dollars.
- 4: additional notes for items with special availability/conditions.
- Examples would be "only in Generation I" or "After defeating elite four".
- 5: item name for image 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.
- 6: move name, specifically used for TM/HM items which teach a move
The shopfooter template ends a shop table.
Usage
The shopfooter template should be used after the shop template and its subsequent shoprow and shopitem templates. It takes a single parameter.
Parameters:
- multiple: designates whether there are multiple shop tables being displayed so they can be displayed correctly in the article.
Examples
Shop with 2 counters, TM/HMs, Battle Points currency
Code:
{{shop|Left Cashier}}
{{shoprow|{{shopitem|HP Up|1|BP}}|{{shopitem|Protein|1|BP}}}}
{{shoprow|{{shopitem|Iron|1|BP}}|{{shopitem|Calcium|1|BP}}}}
{{shoprow|{{shopitem|Zinc|1|BP}}|{{shopitem|Carbos|1|BP}}}}
{{shoprow|{{shopitem|Rare Candy|48|BP}}|{{shopitem|Power Bracer|16|BP}}}}
{{shoprow|{{shopitem|Power Belt|16|BP}}|{{shopitem|Power Lens|16|BP}}}}
{{shoprow|{{shopitem|Power Band|16|BP}}|{{shopitem|Power Anklet|16|BP}}}}
{{shoprow|{{shopitem|Power Weight|16|BP}}|{{shopitem|Flame Orb|16|BP}}}}
{{shoprow|{{shopitem|Toxic Orb|16|BP}}|{{shopitem|White Herb|32|BP}}}}
{{shoprow|{{shopitem|Power Herb|32|BP}}|{{shopitem|BrightPowder|48|BP}}}}
{{shoprow|{{shopitem|Choice Band|48|BP}}|{{shopitem|Focus Band|48|BP}}}}
{{shoprow|{{shopitem|Scope Lens|48|BP}}|{{shopitem|Muscle Band|48|BP}}}}
{{shoprow|{{shopitem|Focus Sash|48|BP}}|{{shopitem|Choice Scarf|48|BP}}}}
{{shoprow|{{shopitem|Razor Claw|48|BP}}|{{shopitem|Razor Fang|48|BP}}}}
{{shopfooter|multiple=yes}}
{{shop|Right Cashier}}
{{shoprow|{{shopitem|TM06|32|BP||TM Poison|Toxic}}|{{shopitem|TM45|32|BP||TM Normal|Attract}}}}
{{shoprow|{{shopitem|TM61|32|BP||TM Fire|Will-O-Wisp}}|{{shopitem|TM73|32|BP||TM Electric|Thunder Wave}}}}
{{shoprow|{{shopitem|TM31|40|BP||TM Fighting|Brick Break}}|{{shopitem|TM40|40|BP||TM Flying|Aerial Ace}}}}
{{shoprow|{{shopitem|TM04|48|BP||TM Psychic|Calm Mind}}|{{shopitem|TM08|48|BP||TM Fighting|Bulk Up}}}}
{{shoprow|{{shopitem|TM30|64|BP||TM Ghost|Shadow Ball}}|{{shopitem|TM53|64|BP||TM Grass|Energy Ball}}}}
{{shoprow|{{shopitem|TM81|64|BP||TM Bug|X-Scissor}}|{{shopitem|TM26|80|BP||TM Ground|Earthquake}}}}
{{shoprow|{{shopitem|TM36|80|BP||TM Poison|Sludge Bomb}}|{{shopitem|TM59|80|BP||TM Dragon|Dragon Pulse}}}}
{{shoprow|{{shopitem|TM71|80|BP||TM Rock|Stone Edge}}}}
{{shopfooter}}
Shop with multiple item availability notes
Code:
{{shop|}}
{{shoprow|{{shopitem|Great Ball|600|PD|Removed after Timer Balls, Repeat Balls, and Lava Cookies become available}}|{{shopitem|Fresh Water|200}}}}
{{shoprow|{{shopitem|Ultra Ball|1,200|PD|After saving Lostelle}}|{{shopitem|Soda Pop|300|PD|After saving Lostelle}}}}
{{shoprow|{{shopitem|Lemonade|350|PD|After defeating the Elite Four}}|{{shopitem|Moomoo Milk|500|PD|After defeating the Elite Four}}}}
{{shoprow|{{shopitem|Timer Ball|1,000|PD|After completing the Ruby and Sapphire Mission}}|{{shopitem|Repeat Ball|1,000|PD|After completing the Ruby and Sapphire mission}}}}
{{shoprow|{{shopitem|Lava Cookie|200|PD|After completing the Ruby and Sapphire Mission}}|}}
{{shopfooter}}
Shop with multiple generations, enclosed in a table
Code:
{|
| valign=top | {{shop|Generation I and III}}
{{shoprow|{{shopitem|Poké Ball|200}}|{{shopitem|Super Potion|700}}}}
{{shoprow|{{shopitem|Antidote|100|PD|only in Generation III}}|{{shopitem|Parlyz Heal|200}}}}
{{shoprow|{{shopitem|Awakening|{{tt|250|200 in Generation I}}}}|{{shopitem|Ice Heal|250}}}}
{{shoprow|{{shopitem|Repel|350}}|}}
{{shopfooter}}
| valign=top | {{shop|Generation II}}
{{shoprow|{{shopitem|Ultra Ball|1,200}}|{{shopitem|Super Potion|700}}}}
{{shoprow|{{shopitem|Hyper Potion|1,200}}|{{shopitem|Revive|1,500}}}}
{{shoprow|{{shopitem|Parlyz Heal|200}}|{{shopitem|Awakening|250}}}}
{{shoprow|{{shopitem|Burn Heal|250}}|{{shopitem|Liteblue Mail|50|5=???}}}}
{{shopfooter}}
|}