Template:Mart: Difference between revisions

From Bulbapedia, the community-driven Pokémon encyclopedia.
Jump to navigationJump to search
(linkless item)
m (No longer used in mainspace)
 
(25 intermediate revisions by 8 users not shown)
Line 1: Line 1:
<noinclude>__NOEDITSECTION__
<noinclude>__NOEDITSECTION__
{{OldTemplate}}
==How to use==
==How to use==
<div style="float: left; padding: 5px; padding-right: 20px;">
<div style="float: left; padding-right: 20px; margin-bottom: 100px;">
Put header (contains Item and Price headings):
<br>
{{User:S1tHSL4y3r/Template:Codediv|blue|<nowiki>{{mart|header}}</nowiki>}}
Then class:<br>
<b>b = Balls<br>
m = Medicine<br>
o = Other items</b><br>
<i>(other classes, just write it)</i>
{{User:S1tHSL4y3r/Template:Codediv|blue|<nowiki>{{mart|class| </nowiki>{{color|FF0000|<b>b</b>}}<nowiki> }}</nowiki>}}
Then for each item:
{{User:S1tHSL4y3r/Template:Codediv|blue|<nowiki>{{mart|item| </nowiki>{{color|FF0000|<b>name</b> (exactly as it is in the shop)}}<nowiki> | </nowiki>{{color|FF0000|<b>price</b> (just the number)}}<nowiki> }}</nowiki>}}
After everything close with footer:
{{User:S1tHSL4y3r/Template:Codediv|blue|<nowiki>{{mart|footer}}</nowiki>}}
</div>
<br><br><br>
</noinclude><!--
</noinclude><!--


Line 24: Line 12:
-->{{#switch: {{{1|}}}
-->{{#switch: {{{1|}}}
|header=
|header=
{{{!}}width="200px" cellspacing="0" cellpadding="2" style="background: #f8f8ff; border: 3px solid #88a; border-radius:20px; -moz-border-radius:20px; padding-bottom: 5px;"
{{{!}}width="{{{2|275px}}}" cellspacing="0" cellpadding="0" style="background: #f8f8ff; border: 3px solid #88a; border-radius:20px; -moz-border-radius:20px; padding-bottom: 5px;"
{{!}}-
{{!}}-
!width="60%" height="32px" style="text-align:center; background: #ccf; border-radius-topleft: 30px; -moz-border-radius-topleft: 30px;"{{!}}Item
!height="32px" style="text-align:center; background: #ccf; border-top-left-radius: 20px; -moz-border-radius-topleft: 20px;"{{!}}Item
!width="40%" height="32px" style="text-align:center; background: #ccf; border-radius-topright: 30px; -moz-border-radius-topright: 30px;"{{!}}Price
!height="32px" style="text-align:center; background: #ccf; border-top-right-radius: 20px; -moz-border-radius-topright: 20px;"{{!}}Price


|class=
|class=
Line 35: Line 23:
|item=
|item=
{{!}}-
{{!}}-
{{!}}style="padding-left:10px"{{!}}[[{{{2|Poké Ball}}}]]
{{!}}height="26px" style="padding-left:10px"{{!}}[[{{{2|Poké Ball}}}]]{{{4|}}}
{{!}}style="text-align:right;padding-right:10px"{{!}}{{pdollar}}{{{3|200}}}
{{!}}style="text-align:right;padding-right:10px"{{!}}{{pdollar}}{{formatnum:{{{3|200}}}}}


|itemtext=
|itemtext=
{{!}}-
{{!}}-
{{!}}style="padding-left:10px"{{!}}{{{2|Poké Ball}}}
{{!}}height="26px" style="padding-left:10px"{{!}}{{{2|Poké Ball}}}{{{4|}}}
{{!}}style="text-align:right;padding-right:10px"{{!}}{{pdollar}}{{{3|200}}}
{{!}}style="text-align:right;padding-right:10px"{{!}}{{pdollar}}{{formatnum:{{{3|200}}}}}
 
|itemc=
{{!}}-
{{!}}height="26px" style="padding-left:10px"{{!}}[[{{{2|Porygon}}}]]{{{5|}}}
{{!}}style="text-align:right;padding-right:10px"{{!}}{{formatnum:{{{3|9999}}}}}<nowiki> </nowiki>{{{4|coins}}}
 
|itemtextc|itemctext=
{{!}}-
{{!}}height="26px" style="padding-left:10px"{{!}}{{{2|{{TM|35|Flamethrower}}}}}{{{5|}}}
{{!}}style="text-align:right;padding-right:10px"{{!}}{{formatnum:{{{3|4000}}}}}<nowiki> </nowiki>{{{4|coins}}}
 
|title=
{{!}}-
!height="{{{3|8}}}px" colspan="2"{{!}}
{{!}}-
!height="28px" colspan="2" style="text-align:center; background: #ccf"{{!}}{{{2|Title}}}
 
|titlelight=
{{!}}-
!height="{{{3|8}}}px" colspan="2"{{!}}
{{!}}-
!height="28px" colspan="2" style="text-align:center; background: #e6e6ff"{{!}}{{{2|Title}}}
 
|titledark=
{{!}}-
!height="{{{3|8}}}px" colspan="2"{{!}}
{{!}}-
!height="28px" colspan="2" style="text-align:center; background: #bbf"{{!}}{{{2|Title}}}
 
|space=
{{!}}-
!height="{{{2|8}}}px" colspan="2"{{!}}


|footer=
|footer=
Line 47: Line 67:


|=
|=
{{{!}}width="200px" cellspacing="0" cellpadding="2" style="background: #f8f8ff; border: 3px solid #88a; border-radius:20px; -moz-border-radius:20px; padding-bottom: 5px;"
{{{!}}width="275px" cellspacing="0" cellpadding="0" style="background: #f8f8ff; border: 3px solid #88a; border-radius:20px; -moz-border-radius:20px; padding-bottom: 5px;"
{{!}}-
{{!}}-
!width="60%" height="32px" style="text-align:center; background: #ccf; border-radius-topleft: 30px; -moz-border-radius-topleft: 30px;"{{!}}Item
!height="32px" colspan="2" style="text-align:center; background: #ccf; border-top-left-radius: 20px; -moz-border-radius-topleft: 20px;"{{!}}Item
!width="40%" height="32px" style="text-align:center; background: #ccf; border-radius-topright: 30px; -moz-border-radius-topright: 30px;"{{!}}Price
!height="32px" style="text-align:center; background: #ccf; border-top-right-radius: 20px; -moz-border-radius-topright: 20px;"{{!}}Price
{{!}}-
{{!}}-
!colspan="2" style="text-align:center; padding-top: 8px;"{{!}}<div style="width: 70%; background: #ddf; border-radius: 20px; -moz-border-radius: 20px; margin: auto;">{{martclass|b}}</div>
!colspan="3" style="text-align:center; padding-top: 8px;"{{!}}<div style="width: 70%; background: #ddf; border-radius: 20px; -moz-border-radius: 20px; margin: auto;">{{martclass|b}}</div>
{{!}}-
{{!}}-
{{!}}style="padding-left:10px"{{!}}[[Poké Ball]]
{{!}}height="26px" style="padding-left:5px"{{!}}[[File:Bag Poké Ball Sprite.png|Bag Poké Ball Sprite.png]]
{{!}}[[Poké Ball]]
{{!}}style="text-align:right;padding-right:10px"{{!}}{{pdollar}}200
{{!}}style="text-align:right;padding-right:10px"{{!}}{{pdollar}}200
{{!}}-
{{!}}-
{{!}}style="padding-left:10px"{{!}}[[Ultra Ball]]
{{!}}height="26px" style="padding-left:5px"{{!}}[[File:Bag Great Ball Sprite.png|Bag Great Ball Sprite.png]]
{{!}}style="text-align:right;padding-right:10px"{{!}}{{pdollar}}1200
{{!}}[[Great Ball]]
{{!}}style="text-align:right;padding-right:10px"{{!}}{{pdollar}}600
{{!}}-
{{!}}height="26px" style="padding-left:5px"{{!}}[[File:Bag Ultra Ball Sprite.png|Bag Ultra Ball Sprite.png]]
{{!}}[[Ultra Ball]]
{{!}}style="text-align:right;padding-right:10px"{{!}}{{pdollar}}{{formatnum:1200}}
{{!}}-
!colspan="3" style="text-align:center; padding-top: 8px;"{{!}}<div style="width: 70%; background: #ddf; border-radius: 20px; -moz-border-radius: 20px; margin: auto;">{{martclass|m}}</div>
{{!}}-
{{!}}-
!colspan="2" style="text-align:center; padding-top: 8px;"{{!}}<div style="width: 70%; background: #ddf; border-radius: 20px; -moz-border-radius: 20px; margin: auto;">{{martclass|m}}</div>
{{!}}height="26px" style="padding-left:5px"{{!}}[[File:Bag Potion Sprite.png|Bag Potion Sprite.png]]
{{!}}[[Potion]]
{{!}}style="text-align:right;padding-right:10px"{{!}}{{pdollar}}300
{{!}}-
{{!}}-
{{!}}style="padding-left:10px"{{!}}[[Antidote]]
{{!}}height="26px" style="padding-left:5px"{{!}}[[File:Bag Antidote Sprite.png|Bag Antidote Sprite.png]]
{{!}}[[Antidote]]
{{!}}style="text-align:right;padding-right:10px"{{!}}{{pdollar}}100
{{!}}style="text-align:right;padding-right:10px"{{!}}{{pdollar}}100
{{!}}-
{{!}}-
{{!}}style="padding-left:10px"{{!}}[[Potion]]
!colspan="3" style="text-align:center; padding-top: 8px;"{{!}}<div style="width: 70%; background: #ddf; border-radius: 20px; -moz-border-radius: 20px; margin: auto;">{{martclass|x}}</div>
{{!}}style="text-align:right;padding-right:10px"{{!}}{{pdollar}}300
{{!}}-
{{!}}height="26px" style="padding-left:5px"{{!}}[[File:Bag X Attack Sprite.png]]
{{!}}[[X Attack]]
{{!}}style="text-align:right;padding-right:10px"{{!}}{{pdollar}}500
{{!}}-
{{!}}height="26px" style="padding-left:5px"{{!}}[[File:Bag X Accuracy Sprite.png]]
{{!}}[[X Accuracy]]
{{!}}style="text-align:right;padding-right:10px"{{!}}{{pdollar}}950
{{!}}-
{{!}}height="26px" style="padding-left:5px"{{!}}[[File:Bag Guard Spec. Sprite.png]]
{{!}}[[Guard Spec.]]
{{!}}style="text-align:right;padding-right:10px"{{!}}{{pdollar}}700
{{!}}-
!colspan="3" style="text-align:center; padding-top: 8px;"{{!}}<div style="width: 70%; background: #ddf; border-radius: 20px; -moz-border-radius: 20px; margin: auto;">{{martclass|v}}</div>
{{!}}-
{{!}}height="26px" style="padding-left:5px"{{!}}[[File:Bag HP Up Sprite.png]]
{{!}}[[HP Up]]
{{!}}style="text-align:right;padding-right:10px"{{!}}{{pdollar}}{{formatnum:9800}}
{{!}}-
{{!}}height="26px" style="padding-left:5px"{{!}}[[File:Bag Calcium Sprite.png]]
{{!}}[[Calcium]]
{{!}}style="text-align:right;padding-right:10px"{{!}}{{pdollar}}{{formatnum:9800}}
{{!}}-
{{!}}-
!colspan="2" style="text-align:center; padding-top: 8px;"{{!}}<div style="width: 70%; background: #ddf; border-radius: 20px; -moz-border-radius: 20px; margin: auto;">{{martclass|o}}</div>
!colspan="3" style="text-align:center; padding-top: 8px;"{{!}}<div style="width: 70%; background: #ddf; border-radius: 20px; -moz-border-radius: 20px; margin: auto;">{{martclass|o}}</div>
{{!}}-
{{!}}-
{{!}}style="padding-left:10px"{{!}}[[Escape Rope]]
{{!}}height="26px" style="padding-left:5px"{{!}}[[File:Bag Escape Rope Sprite.png]]
{{!}}[[Escape Rope]]
{{!}}style="text-align:right;padding-right:10px"{{!}}{{pdollar}}550
{{!}}style="text-align:right;padding-right:10px"{{!}}{{pdollar}}550
{{!}}-
{{!}}-
{{!}}style="padding-left:10px"{{!}}[[Repel]]
{{!}}height="26px" style="padding-left:5px"{{!}}[[File:Bag Repel Sprite.png]]
{{!}}[[Repel]]
{{!}}style="text-align:right;padding-right:10px"{{!}}{{pdollar}}350
{{!}}style="text-align:right;padding-right:10px"{{!}}{{pdollar}}350
{{!}}-
{{!}}-
{{!}}style="padding-left:10px"{{!}}[[Wave Mail]]
{{!}}height="26px" style="padding-left:5px"{{!}}[[File:Bag Wave Mail Sprite.png]]
{{!}}[[Wave Mail]]
{{!}}style="text-align:right;padding-right:10px"{{!}}{{pdollar}}50
{{!}}style="text-align:right;padding-right:10px"{{!}}{{pdollar}}50
{{!}}-
!height="40px" colspan="3"{{!}}
{{!}}-
!height="28px" colspan="3" style="text-align:center; background: #e6e6ff"{{!}}Light
{{!}}-
!height="28px" colspan="3" style="text-align:center; background: #aaf"{{!}}Dark
{{!}}-
!height="28px" colspan="3" style="text-align:center; background: #ccf"{{!}}Game Corner
{{!}}-
!colspan="3" style="text-align:center; padding-top: 8px;"{{!}}<div style="width: 70%; background: #ddf; border-radius: 20px; -moz-border-radius: 20px; margin: auto;">{{martclass|pkmn}}</div>
{{!}}-
{{!}}height="26px" style="padding-left:5px"{{!}}[[File:123MS.png|24x24px|]]
{{!}}{{p|Scyther}}
{{!}}style="text-align:right;padding-right:10px"{{!}}{{formatnum:5500}} coins
{{!}}-
{{!}}height="26px" style="padding-left:5px"{{!}}[[File:137MS.png|24x24px|]]
{{!}}{{p|Porygon}}
{{!}}style="text-align:right;padding-right:10px"{{!}}{{formatnum:9999}} coins
{{!}}-
!colspan="3" style="text-align:center; padding-top: 8px;"{{!}}<div style="width: 70%; background: #ddf; border-radius: 20px; -moz-border-radius: 20px; margin: auto;">{{martclass|tms}}</div>
{{!}}-
{{!}}height="26px" style="padding-left:5px"{{!}}[[File:Bag TM Steel Sprite.png]]
{{!}}{{TM|23|Iron Tail}}
{{!}}style="text-align:right;padding-right:10px"{{!}}{{formatnum:3500}} coins
{{!}}-
{{!}}height="26px" style="padding-left:5px"{{!}}[[File:Bag TM Fire Sprite.png]]
{{!}}{{TM|35|Flamethrower}}
{{!}}style="text-align:right;padding-right:10px"{{!}}{{formatnum:4000}} coins
{{!}}-
!colspan="3" style="text-align:center; padding-top: 8px;"{{!}}<div style="width: 70%; background: #ddf; border-radius: 20px; -moz-border-radius: 20px; margin: auto;">{{martclass|o}}</div>
{{!}}-
{{!}}height="26px" style="padding-left:5px"{{!}}[[File:Bag Mystic Water Sprite.png]]
{{!}}[[Mystic Water]]
{{!}}style="text-align:right;padding-right:10px"{{!}}{{formatnum:1000}} coins


}}<noinclude>
}}<noinclude>
|}
|}
</div>
Header (contains Item and Price headings):
{{User:S1tHSL4y3r/Template:Codediv|blue|<nowiki>{{mart|header}}</nowiki>}}
Class:<br>
:<b>b = Balls<br>
:m = Medicine<br>
:x = Battle items<br>
:v = Vitamins<br>
:o = Other items<br>
:tms = TMs<br>
:pkmn = Pokémon<br></b>
:<i>(for other classes, just write it)</i>
{{User:S1tHSL4y3r/Template:Codediv|blue|<nowiki>{{mart|class| </nowiki>{{color|FF0000|<b>b</b>}}<nowiki> }}</nowiki>}}
Items:<br>
<i>(for non-linked items, or to manually link the item's name, put <b>itemtext</b> instead of item)</i>
{{User:S1tHSL4y3r/Template:Codediv|blue|<nowiki>{{mart|item| </nowiki>{{color|FF0000|<b>name</b> <small>(as shown in shop)</small>}}<nowiki> | </nowiki>{{color|FF0000|<b>price</b> <small>(just number, no commas)</small>}}<nowiki> | </nowiki>{{color|00CC00|<b>note</b> <small>(optional)</small>}}<nowiki> }}</nowiki>}}
OR for custom currencies (such as "coins" in Game Corners):<br>
<i>(for non-linked items, or to manually link the item's name, put <b>itemtextc</b> instead of itemc)</i>
{{User:S1tHSL4y3r/Template:Codediv|blue|<nowiki>{{mart|itemc| </nowiki>{{color|FF0000|<b>name</b> <small>(as shown in shop)</small>}}<nowiki> | </nowiki>{{color|FF0000|<b>price</b> <small>(just number, no commas)</small>}}<nowiki> | </nowiki>{{color|0000FF|<b>currency</b> <small>(will show as is, eg. type <i>coins</i> for "coins")</small>}}<nowiki> | </nowiki>{{color|00CC00|<b>note</b> <small>(optional)</small>}}<nowiki> }}</nowiki>}}
To add a title row:<br>
<i>(to change the background color lighter or darker, put <b>titlelight</b> or <b>titledark</b> instead of title)</i>
{{User:S1tHSL4y3r/Template:Codediv|blue|<nowiki>{{mart|title| </nowiki>{{color|FF0000|<b>text</b>}}<nowiki> | </nowiki>{{color|00CC00|<b>height in pixels of spacing above</b> <small>(optional, just number, default 8 pixels)</small>}}<nowiki> }}</nowiki>}}
To insert a blank row for spacing:
{{User:S1tHSL4y3r/Template:Codediv|blue|<nowiki>{{mart|space| </nowiki>{{color|00CC00|<b>height in pixels</b> <small>(optional, just number, default 8 pixels)</small>}}<nowiki> }}</nowiki>}}
<br>
After everything close with footer:
{{User:S1tHSL4y3r/Template:Codediv|blue|<nowiki>{{mart|footer}}</nowiki>}}
[[Category:Table templates]]</noinclude>
[[Category:Table templates]]</noinclude>

Latest revision as of 02:47, 30 June 2014

This template is no longer used. It is being retained for archival purposes.

How to use


Item Price
Balls
Bag Poké Ball Sprite.png Poké Ball $200
Bag Great Ball Sprite.png Great Ball $600
Bag Ultra Ball Sprite.png Ultra Ball $1,200
Medicine
Bag Potion Sprite.png Potion $300
Bag Antidote Sprite.png Antidote $100
Battle items
Bag X Attack Sprite.png X Attack $500
Bag X Accuracy Sprite.png X Accuracy $950
Bag Guard Spec. Sprite.png Guard Spec. $700
Vitamins
Bag HP Up Sprite.png HP Up $9,800
Bag Calcium Sprite.png Calcium $9,800
Other items
Bag Escape Rope Sprite.png Escape Rope $550
Bag Repel Sprite.png Repel $350
Bag Wave Mail Sprite.png Wave Mail $50
Light
Dark
Game Corner
Pokémon
123MS.png Scyther 5,500 coins
137MS.png Porygon 9,999 coins
TMs
Bag TM Steel Sprite.png TM23 (Iron Tail) 3,500 coins
Bag TM Fire Sprite.png TM35 (Flamethrower) 4,000 coins
Other items
Bag Mystic Water Sprite.png Mystic Water 1,000 coins

Header (contains Item and Price headings):

{{mart|header}}

Class:

b = Balls
m = Medicine
x = Battle items
v = Vitamins
o = Other items
tms = TMs
pkmn = Pokémon
(for other classes, just write it)
{{mart|class| b }}

Items:
(for non-linked items, or to manually link the item's name, put itemtext instead of item)

{{mart|item| name (as shown in shop) | price (just number, no commas) | note (optional) }}

OR for custom currencies (such as "coins" in Game Corners):
(for non-linked items, or to manually link the item's name, put itemtextc instead of itemc)

{{mart|itemc| name (as shown in shop) | price (just number, no commas) | currency (will show as is, eg. type coins for "coins") | note (optional) }}

To add a title row:
(to change the background color lighter or darker, put titlelight or titledark instead of title)

{{mart|title| text | height in pixels of spacing above (optional, just number, default 8 pixels) }}

To insert a blank row for spacing:

{{mart|space| height in pixels (optional, just number, default 8 pixels) }}


After everything close with footer:

{{mart|footer}}