Template:Mart: Difference between revisions

From Bulbapedia, the community-driven Pokémon encyclopedia.
Jump to navigationJump to search
(Incorporated Template:Martclass)
(Added "How to use")
Line 1: Line 1:
{{#switch: {{{1|}}}
<noinclude>
==How to use==
<div style="float: left; padding: 5px; padding-right: 20px;">
Put header (contains Item and Price headings):
{{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>{{#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="200px" cellspacing="0" cellpadding="2" style="background: #f8f8ff; border: 3px solid #88a; border-radius:20px; -moz-border-radius:20px; padding-bottom: 5px;"
Line 52: Line 69:


}}<noinclude>
}}<noinclude>
|}[[Category:Table templates]]</noinclude>
|}
[[Category:Table templates]]</noinclude>

Revision as of 05:07, 8 January 2009

How to use

Put header (contains Item and Price headings):

{{mart|header}}

Then class:
b = Balls
m = Medicine
o = Other items

(other classes, just write it)

{{mart|class| b }}

Then for each item:

{{mart|item| name (exactly as it is in the shop) | price (just the number) }}

After everything close with footer:

{{mart|footer}}




Item Price
Balls
Poké Ball $200
Ultra Ball $1200
Medicine
Antidote $100
Potion $300
Other items
Escape Rope $550
Repel $350
Wave Mail $50