Template:Mart: Difference between revisions

From Bulbapedia, the community-driven Pokémon encyclopedia.
Jump to navigationJump to search
(extra light/dark parameter didn't work, removing pipe)
(title options - parameter for height in pixels of spacing above)
Line 37: Line 37:
|title=
|title=
{{!}}-
{{!}}-
!height="8px" colspan="2"{{!}}
!height="{{{3|8}}}px" colspan="2"{{!}}
{{!}}-
{{!}}-
!height="28px" colspan="2" style="text-align:center; background: #ccf"{{!}}{{{2|Title}}}
!height="28px" colspan="2" style="text-align:center; background: #ccf"{{!}}{{{2|Title}}}
Line 43: Line 43:
|titlelight=
|titlelight=
{{!}}-
{{!}}-
!height="8px" colspan="2"{{!}}
!height="{{{3|8}}}px" colspan="2"{{!}}
{{!}}-
{{!}}-
!height="28px" colspan="2" style="text-align:center; background: #e6e6ff"{{!}}{{{2|Title}}}
!height="28px" colspan="2" style="text-align:center; background: #e6e6ff"{{!}}{{{2|Title}}}
Line 49: Line 49:
|titledark=
|titledark=
{{!}}-
{{!}}-
!height="8px" colspan="2"{{!}}
!height="{{{3|8}}}px" colspan="2"{{!}}
{{!}}-
{{!}}-
!height="28px" colspan="2" style="text-align:center; background: #bbf"{{!}}{{{2|Title}}}
!height="28px" colspan="2" style="text-align:center; background: #bbf"{{!}}{{{2|Title}}}
Line 128: Line 128:
{{!}}style="text-align:right;padding-right:10px"{{!}}{{pdollar}}50
{{!}}style="text-align:right;padding-right:10px"{{!}}{{pdollar}}50
{{!}}-
{{!}}-
!height="60px" colspan="3"{{!}}
!height="40px" colspan="3"{{!}}
{{!}}-
{{!}}-
!height="28px" colspan="3" style="text-align:center; background: #e6e6ff"{{!}}Light
!height="28px" colspan="3" style="text-align:center; background: #e6e6ff"{{!}}Light
{{!}}-
!height="8px" colspan="3"{{!}}
{{!}}-
{{!}}-
!height="28px" colspan="3" style="text-align:center; background: #aaf"{{!}}Dark
!height="28px" colspan="3" style="text-align:center; background: #aaf"{{!}}Dark
{{!}}-
!height="8px" colspan="3"{{!}}
{{!}}-
{{!}}-
!height="28px" colspan="3" style="text-align:center; background: #ccf"{{!}}Game Corner
!height="28px" colspan="3" style="text-align:center; background: #ccf"{{!}}Game Corner
Line 183: Line 179:
Items:<br>
Items:<br>
<i>(for non-linked items, put <b>itemtext</b> instead of item)</i>
<i>(for non-linked items, put <b>itemtext</b> instead of item)</i>
{{User:S1tHSL4y3r/Template:Codediv|blue|<nowiki>{{mart|item| </nowiki>{{color|FF0000|<b>name</b> (as shown in shop)}}<nowiki> | </nowiki>{{color|FF0000|<b>price</b> (just number, no commas)}}<nowiki> | </nowiki>{{color|00CC00|'''note''' (optional)}}<nowiki> }}</nowiki>}}
{{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):
OR for custom currencies (such as "coins" in Game Corners):
{{User:S1tHSL4y3r/Template:Codediv|blue|<nowiki>{{mart|itemc| </nowiki>{{color|FF0000|<b>name</b> (as shown in shop)}}<nowiki> | </nowiki>{{color|FF0000|<b>price</b> (just number, no commas)}}<nowiki> | </nowiki>{{color|0000FF|<b>currency</b> (will show as is, eg. type <i>coins</i> for "coins")}}<nowiki> | </nowiki>{{color|00CC00|'''note''' (optional)}}<nowiki> }}</nowiki>}}
{{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>
To add a title row:<br>
<i>(to change the background color lighter or darker, put <b>titlelight</b> or <b>titledark</b> instead)</i>
<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>}}
{{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>}}
{{User:S1tHSL4y3r/Template:Codediv|blue|<nowiki>{{mart|titledark| </nowiki>{{color|FF0000|<b>text</b>}}<nowiki> }}</nowiki>}}
To insert a blank row for spacing:
To insert a blank row for spacing:
{{User:S1tHSL4y3r/Template:Codediv|blue|<nowiki>{{mart|space| </nowiki>{{color|FF0000|<b>height in pixels</b> (just number, default 8 pixels)}}<nowiki> }}</nowiki>}}
{{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>}}
After everything close with footer:
After everything close with footer:
{{User:S1tHSL4y3r/Template:Codediv|blue|<nowiki>{{mart|footer}}</nowiki>}}
{{User:S1tHSL4y3r/Template:Codediv|blue|<nowiki>{{mart|footer}}</nowiki>}}
[[Category:Table templates]]</noinclude>
[[Category:Table templates]]</noinclude>

Revision as of 13:12, 9 January 2009

How to use

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, 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):

{{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}}