Difference between revisions of "Template:Shop/doc"

From Bulbapedia, the community-driven Pokémon encyclopedia.
Jump to: navigation, search
(Consistency)
(Consistency)
Line 9: Line 9:
 
Parameters:
 
Parameters:
 
* 1: unique shop identifier, normally shop's location
 
* 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''.
   
   

Revision as of 17:55, 13 August 2018

The following is a documentation guide for using the {{Shop}}, {{Shoprow}}, {{Shopitem}}, {{Shopmon}}, {{Shopdec}} and {{Shopfooter}} templates.

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 terminated by the shopfooter template.

Usage

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:

  • 1: unique shop identifier, normally shop's location
    • Examples would include: Generation II, Left Counter, or 2nd Floor.


Shoprow

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

The shoprow template takes 2 parameters, both of which are shopitem, shopmon or shopdec templates.

Parameters:

  • 1: first column shop item (instance of {{shopitem}}, {{shopmon}} or {{shopdec}})
  • 2: second column shop item (instance of {{shopitem}}, {{shopmon}} or {{shopdec}})


Shopitem

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

Usage

The shopitem template takes up to 6 parameters.

Parameters:

  • 1: item name
  • 2: item price
  • 3: currency
    • Dollars, PD, Coupons, PC, Coins, C, Battle, BP, Pts, or Points, defaults to Dollars
  • 4: additional notes for items with special availability/conditions.
    • Examples would be "only in Generation I" or "After defeating elite four".
  • 5: name of alternate sprite
    • 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, used specifically for TM/HM items which teach a move


Shopmon

The shopmon template displays a single Pokémon for sale in the shop table. The currency used is always Coins.

Usage

The shopmon template takes up to 5 parameters.

Parameters:

  • 1: Pokémon's name
  • 2: Pokémon's National Pokédex number
  • 3: price
  • 4: level
  • 5: additional notes for Pokémon with special availability/conditions.
    • Examples would be "only in Generation I" or "After defeating elite four".


Shopdec

The shopdec template displays a single item for sale in the shop table.

Usage

The shopdec template takes up to 6 parameters. It is to be used for images of nonstandard filenames, such as decorations or villa decorations.

Parameters:

  • 1: item's name
  • 2: sprite name (omit .png extension*)
  • 3: item price
  • 4: currency
  • 5: additional notes for Pokémon with special availability/conditions.
    • 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

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

Usage

The shopfooter template terminates the shop template. It takes a single parameter.

Parameters:

  • multiple: designates whether there are multiple shop tables to display. Set to "yes" to allow multiple tables.


Examples

Shop with 2 counters selling TM/HMs for Battle Points

Left Cashier
HP Up HP Up
1BP
Protein Protein
1BP
Iron Iron
1BP
Calcium Calcium
1BP
Zinc Zinc
1BP
Carbos Carbos
1BP
Rare Candy Rare Candy
48BP
Power Bracer Power Bracer
16BP
Power Belt Power Belt
16BP
Power Lens Power Lens
16BP
Power Band Power Band
16BP
Power Anklet Power Anklet
16BP
Power Weight Power Weight
16BP
Flame Orb Flame Orb
16BP
Toxic Orb Toxic Orb
16BP
White Herb White Herb
32BP
Power Herb Power Herb
32BP
BrightPowder BrightPowder
48BP
Choice Band Choice Band
48BP
Focus Band Focus Band
48BP
Scope Lens Scope Lens
48BP
Muscle Band Muscle Band
48BP
Focus Sash Focus Sash
48BP
Choice Scarf Choice Scarf
48BP
Razor Claw Razor Claw
48BP
Razor Fang Razor Fang
48BP
Right Cashier
TM Poison TM06 (Toxic)
32BP
TM Normal TM45 (Attract)
32BP
TM Fire TM61 (Will-O-Wisp)
32BP
TM Electric TM73 (Thunder Wave)
32BP
TM Fighting TM31 (Brick Break)
40BP
TM Flying TM40 (Aerial Ace)
40BP
TM Psychic TM04 (Calm Mind)
48BP
TM Fighting TM08 (Bulk Up)
48BP
TM Ghost TM30 (Shadow Ball)
64BP
TM Grass TM53 (Energy Ball)
64BP
TM Bug TM81 (X-Scissor)
64BP
TM Ground TM26 (Earthquake)
80BP
TM Poison TM36 (Sludge Bomb)
80BP
TM Dragon TM59 (Dragon Pulse)
80BP
TM Rock TM71 (Stone Edge)
80BP

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

Great Ball Great Ball*
Pokémon Dollar600
Fresh Water Fresh Water
Pokémon Dollar200
Ultra Ball Ultra Ball*
Pokémon Dollar1200
Soda Pop Soda Pop*
Pokémon Dollar300
Lemonade Lemonade*
Pokémon Dollar350
Moomoo Milk Moomoo Milk*
Pokémon Dollar500
Timer Ball Timer Ball*
Pokémon Dollar1000
Repeat Ball Repeat Ball*
Pokémon Dollar1000
Lava Cookie Lava Cookie*
Pokémon Dollar200

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|1200|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|1000|PD|After completing the Ruby and Sapphire Mission}}|{{shopitem|Repeat Ball|1000|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, using "multiple" parameter

Generation I and III
Poké Ball Poké Ball
Pokémon Dollar200
Super Potion Super Potion
Pokémon Dollar700
Antidote Antidote*
Pokémon Dollar100
Paralyze Heal Parlyz Heal
Pokémon Dollar200
Awakening Awakening
Pokémon Dollar250
Ice Heal Ice Heal
Pokémon Dollar250
Repel Repel
Pokémon Dollar350
Generation II
Ultra Ball Ultra Ball
Pokémon Dollar1200
Super Potion Super Potion
Pokémon Dollar700
Hyper Potion Hyper Potion
Pokémon Dollar1200
Revive Revive
Pokémon Dollar1500
Paralyze Heal Parlyz Heal
Pokémon Dollar200
Awakening Awakening
Pokémon Dollar250
Burn Heal Burn Heal
Pokémon Dollar250
unknown Liteblue Mail
Pokémon Dollar50

Code:

{{shop|Generation I and III}}
{{shoprow|{{shopitem|Poké Ball|200}}|{{shopitem|Super Potion|700}}}}
{{shoprow|{{shopitem|Antidote|100|PD|only in Generation III}}|{{shopitem|Paralyze Heal|200|display=Parlyz Heal}}}}
{{shoprow|{{shopitem|Awakening|{{tt|250|200 in Generation I}}}}|{{shopitem|Ice Heal|250}}}}
{{shoprow|{{shopitem|Repel|350}}|}}
{{shopfooter|multiple=yes}}
{{shop|Generation II}}
{{shoprow|{{shopitem|Ultra Ball|1200}}|{{shopitem|Super Potion|700}}}}
{{shoprow|{{shopitem|Hyper Potion|1200}}|{{shopitem|Revive|1500}}}}
{{shoprow|{{shopitem|Paralyze Heal|200|display=Parlyz Heal}}|{{shopitem|Awakening|250}}}}
{{shoprow|{{shopitem|Burn Heal|250}}|{{shopitem|Liteblue Mail|50|5=unknown}}}}
{{shopfooter}}


Shop that sells Pokémon

Pokémon
063 Abra (Lv.15)
200C
023 Ekans (Lv.15)*
700C
027 Sandshrew (Lv.15)*
700C
147 Dratini (Lv.15)
2100C

Code:

{{shop|Pokémon}}
{{shoprow|{{shopmon|Abra|063|200|lv=15}}|{{shopmon|Ekans|023|700|lv=15|HeartGold only}}}}
{{shoprow|{{shopmon|Sandshrew|027|700|lv=15|SoulSilver only}}|{{shopmon|Dratini|147|2100|lv=15}}}}
{{shopfooter}}

Shop that sells decorations

Secret Power Club shop
Red Brick Red Brick
PokémonDollar.png500
Blue Brick Blue Brick
PokémonDollar.png500
Yellow Brick Yellow Brick
PokémonDollar.png500
Red Balloon Red Balloon
PokémonDollar.png500
Blue Balloon Blue Balloon
PokémonDollar.png500
Yellow Balloon Yellow Balloon
PokémonDollar.png500
C Low Note Mat C Low Note Mat
PokémonDollar.png500
D Note Mat D Note Mat
PokémonDollar.png500
E Note Mat E Note Mat
PokémonDollar.png500
F Note Mat F Note Mat
PokémonDollar.png500
G Note Mat G Note Mat
PokémonDollar.png500
A Note Mat A Note Mat
PokémonDollar.png500
B Note Mat B Note Mat
PokémonDollar.png500
C High Note Mat C High Note Mat
PokémonDollar.png500

Code:

{{shop|Secret Power Club shop}}
{{shoprow|{{shopdec|Red Brick|RedBrickSprite|500|6=Ornament#Bricks}}|{{shopdec|Blue Brick|BlueBrickSprite|500|6=Ornament#Bricks}}}}
{{shoprow|{{shopdec|Yellow Brick|YellowBrickSprite|500|6=Ornament#Bricks}}|{{shopdec|Red Balloon|RedBalloonSprite|500|6=Ornament#Balloons}}}}
{{shoprow|{{shopdec|Blue Balloon|BlueBalloonSprite|500|6=Ornament#Balloons}}|{{shopdec|Yellow Balloon|YellowBalloonSprite|500|6=Ornament#Balloons}}}}
{{shoprow|{{shopdec|C Low Note Mat|NoteMatSprite|500|6=Mat}}|{{shopdec|D Note Mat|NoteMatSprite|500|6=Mat}}}}
{{shoprow|{{shopdec|E Note Mat|NoteMatSprite|500|6=Mat}}|{{shopdec|F Note Mat|NoteMatSprite|500|6=Mat}}}}
{{shoprow|{{shopdec|G Note Mat|NoteMatSprite|500|6=Mat}}|{{shopdec|A Note Mat|NoteMatSprite|500|6=Mat}}}}
{{shoprow|{{shopdec|B Note Mat|NoteMatSprite|500|6=Mat}}|{{shopdec|C High Note Mat|NoteMatSprite|500|6=Mat}}}}
{{shopfooter}}

Shop that sells decorations and items

Blue Flute Blue Flute
250 steps
Red Flute Red Flute
500 steps
Yellow Flute Yellow Flute
500 steps
Black Flute Black Flute
1000 steps
White Flute White Flute
1000 steps
Pretty Desk Pretty Desk
8000 steps
Pretty Chair Pretty Chair
6000 steps

Code:

{{shop|}}
{{shoprow|{{shopitem|Blue Flute|250|Steps}}|{{shopitem|Red Flute|500|Steps}}}}
{{shoprow|{{shopitem|Yellow Flute|500|Steps}}|{{shopitem|Black Flute|1000|Steps}}}}
{{shoprow|{{shopitem|White Flute|1000|Steps}}|{{shopdec|Pretty Desk|PrettyDeskSprite|8000|steps|6=Desk}}}}
{{shoprow|{{shopdec|Pretty Chair|PrettyChairSprite|6000|steps|6=Chair}}}}
{{shopfooter}}