Template:Mart: Difference between revisions

New options: title (plus light or dark)
m (Removed 60% / 40% column widths)
(New options: title (plus light or dark))
Line 1: Line 1:
<noinclude>__NOEDITSECTION__
<noinclude>__NOEDITSECTION__
==How to use==
==How to use==
<div style="width:65%; float: right;">
<div style="float: left; padding-right: 20px; margin-bottom: 100px;">
Header (contains Item and Price headings):
<br>
{{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, 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)}}<nowiki> | </nowiki>{{color|00CC00|'''note''' (optional)}}<nowiki> }}</nowiki>}}
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)}}<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>}}
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)}}<nowiki> }}</nowiki>}}
After everything close with footer:
{{User:S1tHSL4y3r/Template:Codediv|blue|<nowiki>{{mart|footer}}</nowiki>}}
</div>
<br><br>
</noinclude><!--
</noinclude><!--


Line 56: Line 34:
{{!}}style="padding-left:10px"{{!}}[[{{{2|Porygon}}}]]{{{5|}}}
{{!}}style="padding-left:10px"{{!}}[[{{{2|Porygon}}}]]{{{5|}}}
{{!}}style="text-align:right;padding-right:10px"{{!}}{{formatnum:{{{3|9999}}}}}<nowiki> </nowiki>{{{4|coins}}}
{{!}}style="text-align:right;padding-right:10px"{{!}}{{formatnum:{{{3|9999}}}}}<nowiki> </nowiki>{{{4|coins}}}
|title=
{{!}}-
!height="8px" colspan="2"{{!}}
{{!}}-
!height="28px" colspan="2" style="text-align:center; background: #ccf"{{!}}{{{2|Title}}}
|title{{!}}light=
{{!}}-
!height="8px" colspan="2"{{!}}
{{!}}-
!height="28px" colspan="2" style="text-align:center; background: #e6e6ff"{{!}}{{{2|Title}}}
|title{{!}}dark=
{{!}}-
!height="8px" colspan="2"{{!}}
{{!}}-
!height="28px" colspan="2" style="text-align:center; background: #bbf"{{!}}{{{2|Title}}}


|space=
|space=
Line 75: Line 71:
{{!}}[[Poké Ball]]
{{!}}[[Poké Ball]]
{{!}}style="text-align:right;padding-right:10px"{{!}}{{pdollar}}200
{{!}}style="text-align:right;padding-right:10px"{{!}}{{pdollar}}200
{{!}}-
{{!}}style="padding-left:5px"{{!}}[[Image:GreatBallSprite.png|GreatBallSprite.png]]
{{!}}[[Great Ball]]
{{!}}style="text-align:right;padding-right:10px"{{!}}{{pdollar}}600
{{!}}-
{{!}}-
{{!}}style="padding-left:5px"{{!}}[[Image:UltraBallSprite.png|UltraBallSprite.png]]
{{!}}style="padding-left:5px"{{!}}[[Image:UltraBallSprite.png|UltraBallSprite.png]]
Line 127: Line 127:
{{!}}[[Wave Mail]]
{{!}}[[Wave Mail]]
{{!}}style="text-align:right;padding-right:10px"{{!}}{{pdollar}}50
{{!}}style="text-align:right;padding-right:10px"{{!}}{{pdollar}}50
{{!}}-
!height="60px" colspan="3"{{!}}
{{!}}-
!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="8px" colspan="3"{{!}}
!height="8px" colspan="3"{{!}}
Line 159: Line 167:


}}<noinclude>
}}<noinclude>
|}[[Category:Table templates]]</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, 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>}}
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>}}
To add a title row:<br>
<i>(to change the background color lighter or darker, add an extra parameter "light" or "dark" after "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|dark| </nowiki>{{color|FF0000|<b>text</b>}}<nowiki> }}</nowiki>}}
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>}}
After everything close with footer:
{{User:S1tHSL4y3r/Template:Codediv|blue|<nowiki>{{mart|footer}}</nowiki>}}
[[Category:Table templates]]</noinclude>
742

edits