Template talk:Mart: Difference between revisions

From Bulbapedia, the community-driven Pokémon encyclopedia.
Jump to navigationJump to search
(→‎Double up item/move etc: substing so that there is one less use of this template)
 
(19 intermediate revisions by 5 users not shown)
Line 1: Line 1:
__TOC__
<b><big>I</big></b> noticed many Cities/Towns are missing Poké Mart stock lists, and the ones that do are using a simple table, so I coded this template to be used to easily put stock lists in every city/town that needs one.
<b><big>I</big></b> noticed many Cities/Towns are missing Poké Mart stock lists, and the ones that do are using a simple table, so I coded this template to be used to easily put stock lists in every city/town that needs one.


Line 9: Line 10:
::::<b><big>Y</big></b>ea, that's one of the problems I haven't solved yet. The thing is, there are too many different pages with groups of items, and I'm trying to make it so you only type the name of the item in, which means I'd have to make a multitude of switch criterias, to compensate for every item's correct link. I hope too many redirects don't pose too much of a problem... &nbsp; &nbsp; <font face="Calibri">-–&lt;×vVv<small>v</small><sub>v</sub> <b>[[User talk:S1tHSL4y3r|τ<sup>λι</sup>κ]] <sub>to</sub> [[User:S1tHSL4y3r|<font color="#990000">ς1<sup>tH</sup>ςι<sub>4γ</sub><small>3r</small></font>]]</b> <small>^</small>^vVv×&gt;–-</font> <i><small>06:00, 8 January 2009 (UTC)</small></i>
::::<b><big>Y</big></b>ea, that's one of the problems I haven't solved yet. The thing is, there are too many different pages with groups of items, and I'm trying to make it so you only type the name of the item in, which means I'd have to make a multitude of switch criterias, to compensate for every item's correct link. I hope too many redirects don't pose too much of a problem... &nbsp; &nbsp; <font face="Calibri">-–&lt;×vVv<small>v</small><sub>v</sub> <b>[[User talk:S1tHSL4y3r|τ<sup>λι</sup>κ]] <sub>to</sub> [[User:S1tHSL4y3r|<font color="#990000">ς1<sup>tH</sup>ςι<sub>4γ</sub><small>3r</small></font>]]</b> <small>^</small>^vVv×&gt;–-</font> <i><small>06:00, 8 January 2009 (UTC)</small></i>
:::::Redirects are fine. Don't worry about it. I hardly think a Pokémon or move named Revive is gonna pop up. '''[[User:TTEchidna|<span style="color:#FF0000">''TTE''</span>]][[User talk:TTEchidna|chidna]]''' 06:15, 8 January 2009 (UTC)
:::::Redirects are fine. Don't worry about it. I hardly think a Pokémon or move named Revive is gonna pop up. '''[[User:TTEchidna|<span style="color:#FF0000">''TTE''</span>]][[User talk:TTEchidna|chidna]]''' 06:15, 8 January 2009 (UTC)
::::::Doh.  Metronome both an item and move.  Worse still, it's sold at the game corner.  Now we need an itemtextc or something.&nbsp;&mdash;&nbsp;[[User:Laoris|Laoris]]&nbsp;<sub>([[User_Talk:Laoris|Blah]])</sub> 03:00, 9 January 2009 (UTC)
:::::::<b><big>H</big></b>mm, I think there may be a way around this. I'll see what I can do. &nbsp; &nbsp; <font face="Calibri">-–&lt;×vVv<small>v</small><sub>v</sub> <b>[[User talk:S1tHSL4y3r|τ<sup>λι</sup>κ]] <sub>to</sub> [[User:S1tHSL4y3r|<font color="#990000">ς1<sup>tH</sup>ςι<sub>4γ</sub><small>3r</small></font>]]</b> <small>^</small>^vVv×&gt;–-</font> <i><small>03:29, 9 January 2009 (UTC)</small></i>


== Item icon sprites ==
== Item icon sprites ==


<b><big>I</big></b>'ve just had a glance through the archives and located all the lovely 24x24 fitting images for every item, however the thing is they all have differently formatted names: Balls ([[:Image:PokéBallSprite.png]]) and Medicine ([[:Image:PotionSprite.png]]) are mostly <i>name with no spaces, first letters capped + "Sprite.png",</i> whereas other items such as [[:Image:Escape Rope sprite.png]], [[:Image:Cleanse Tag sprite.png]] and [[:Image:Soothe Bell sprite.png]]  have <i>name with spaces (interchangeable with underscores though), first letters capped, except for "sprite.png",</i> and still other items such as Mail ([[:Image:Orange Mail III.png]]) are in a completely different pattern, <i>name with spaces, first letters capped, + generation</i>, which means interpreting what format to use in order to derive the image link will be hardly possible. The only solution I can currently think of is to tediously create a long switch of every item matched with their format, unless the image link is manually provided... any ideas? &nbsp; &nbsp; <font face="Calibri">-–&lt;×vVv<small>v</small><sub>v</sub> <b>[[User talk:S1tHSL4y3r|τ<sup>λι</sup>κ]] <sub>to</sub> [[User:S1tHSL4y3r|<font color="#990000">ς1<sup>tH</sup>ςι<sub>4γ</sub><small>3r</small></font>]]</b> <small>^</small>^vVv×&gt;–-</font> <i><small>11:02, 8 January 2009 (UTC)</small></i>
<b><big>I</big></b>'ve just had a glance through the archives and located all the lovely 24x24 fitting images for every item, however the thing is they all have differently formatted names: Balls ([[a:Image:PokéBallSprite.png]]) and Medicine ([[a:Image:PotionSprite.png]]) are mostly <i>name with no spaces, first letters capped + "Sprite.png",</i> whereas other items such as [[a:Image:Escape Rope sprite.png]], [[a:Image:Cleanse Tag sprite.png]] and [[a:Image:Soothe Bell sprite.png]]  have <i>name with spaces (interchangeable with underscores though), first letters capped, except for "sprite.png",</i> and still other items such as Mail ([[a:Image:Orange Mail III.png]]) are in a completely different pattern, <i>name with spaces, first letters capped, + generation</i>, which means interpreting what format to use in order to derive the image link will be hardly possible. The only solution I can currently think of is to tediously create a long switch of every item matched with their format, unless the image link is manually provided... any ideas? &nbsp; &nbsp; <font face="Calibri">-–&lt;×vVv<small>v</small><sub>v</sub> <b>[[User talk:S1tHSL4y3r|τ<sup>λι</sup>κ]] <sub>to</sub> [[User:S1tHSL4y3r|<font color="#990000">ς1<sup>tH</sup>ςι<sub>4γ</sub><small>3r</small></font>]]</b> <small>^</small>^vVv×&gt;–-</font> <i><small>11:02, 8 January 2009 (UTC)</small></i>
:If those images aren't being used in many places, we could move them to a standard naming system.  It would be a lot of work though.  It might be a better idea to just add another parameter to the template.&nbsp;&mdash;&nbsp;[[User:Laoris|Laoris]]&nbsp;<sub>([[User_Talk:Laoris|Blah]])</sub> 21:33, 8 January 2009 (UTC)
:If those images aren't being used in many places, we could move them to a standard naming system.  It would be a lot of work though.  It might be a better idea to just add another parameter to the template.&nbsp;&mdash;&nbsp;[[User:Laoris|Laoris]]&nbsp;<sub>([[User_Talk:Laoris|Blah]])</sub> 21:33, 8 January 2009 (UTC)
::<b><big>A</big></b>n extra parameter might not be the best idea however, it would allow for errors such as missing images because the links have been put incorrectly, and the order of parameters would become inconsistent with the appearance (we want to keep the order easier to remember). I suppose we could try moving each of the images then correcting all the links, though would making a long switch be less work overall? &nbsp; &nbsp; <font face="Calibri">-–&lt;×vVv<small>v</small><sub>v</sub> <b>[[User talk:S1tHSL4y3r|τ<sup>λι</sup>κ]] <sub>to</sub> [[User:S1tHSL4y3r|<font color="#990000">ς1<sup>tH</sup>ςι<sub>4γ</sub><small>3r</small></font>]]</b> <small>^</small>^vVv×&gt;–-</font> <i><small>23:56, 8 January 2009 (UTC)</small></i>
:::I think a long switch would be a bad idea, because whenever we want to use a new item with the template, we'd have to modify the template, which is already being used on a couple dozen pages.&nbsp;&mdash;&nbsp;[[User:Laoris|Laoris]]&nbsp;<sub>([[User_Talk:Laoris|Blah]])</sub> 00:19, 9 January 2009 (UTC)
::::<b><big>O</big></b>h no, that won't be necessary because the switch will be on an external template, like what I did with [[Template:Trainerexp]]. The only problem will be time.
::::Now unfortunately, the other alternative, of moving all the images, will be hideous, I just had a look through most of them, heaps have been used on many Userpages, and we'd have to individually correct all the links, which will be hectic and somewhat intrusive. I think the switch may have to be the only way? &nbsp; &nbsp; <font face="Calibri">-–&lt;×vVv<small>v</small><sub>v</sub> <b>[[User talk:S1tHSL4y3r|τ<sup>λι</sup>κ]] <sub>to</sub> [[User:S1tHSL4y3r|<font color="#990000">ς1<sup>tH</sup>ςι<sub>4γ</sub><small>3r</small></font>]]</b> <small>^</small>^vVv×&gt;–-</font> <i><small>02:38, 9 January 2009 (UTC)</small></i>
:::::I think an external template still gets included with the primary template, so a change to the external template causes all pages with the primary template to get re-evaluated.&nbsp;&mdash;&nbsp;[[User:Laoris|Laoris]]&nbsp;<sub>([[User_Talk:Laoris|Blah]])</sub> 02:54, 9 January 2009 (UTC)
::::::<b><big>W</big></b>ait so when they all get re-evaluated, why's that so undesireable?
::::::Oh and I think I overstated with that previous comment of having to relink all the items, I was also looking at items that weren't purchasable, I'll go through again only with the items that will be necessary, I don't think it'll be such a big deal after all. &nbsp; &nbsp; <font face="Calibri">-–&lt;×vVv<small>v</small><sub>v</sub> <b>[[User talk:S1tHSL4y3r|τ<sup>λι</sup>κ]] <sub>to</sub> [[User:S1tHSL4y3r|<font color="#990000">ς1<sup>tH</sup>ςι<sub>4γ</sub><small>3r</small></font>]]</b> <small>^</small>^vVv×&gt;–-</font> <i><small>03:14, 9 January 2009 (UTC)</small></i>
:::::::It can cause a lot of stress on the server.  I haven't seen a lot of talk about that lately, so I don't know how big of an issue it is.  Should ask an admin or something.&nbsp;&mdash;&nbsp;[[User:Laoris|Laoris]]&nbsp;<sub>([[User_Talk:Laoris|Blah]])</sub> 03:16, 9 January 2009 (UTC)
::::::::<b><big>R</big></b>ight, I've had a look through all the necessary images, and it might still be a fair deal to move them all and fix the links, unless is there a way to redirect images? Is it still possible for the image to show? &nbsp; &nbsp; <font face="Calibri">-–&lt;×vVv<small>v</small><sub>v</sub> <b>[[User talk:S1tHSL4y3r|τ<sup>λι</sup>κ]] <sub>to</sub> [[User:S1tHSL4y3r|<font color="#990000">ς1<sup>tH</sup>ςι<sub>4γ</sub><small>3r</small></font>]]</b> <small>^</small>^vVv×&gt;–-</font> <i><small>04:42, 9 January 2009 (UTC)</small></i>


==Other currencies==
==Other currencies==
How about making this template work for other currencies, like game corner coins?  Should we just add another switch for coins, or is there a better way to do it?&nbsp;&mdash;&nbsp;[[User:Laoris|Laoris]]&nbsp;<sub>([[User_Talk:Laoris|Blah]])</sub> 21:33, 8 January 2009 (UTC)
How about making this template work for other currencies, like game corner coins?  Should we just add another switch for coins, or is there a better way to do it?&nbsp;&mdash;&nbsp;[[User:Laoris|Laoris]]&nbsp;<sub>([[User_Talk:Laoris|Blah]])</sub> 21:33, 8 January 2009 (UTC)
:<b><big>A</big></b> good idea. I think adding a separate switch option might be sufficient, rather than adding another parameter. I'll get on it. &nbsp; &nbsp; <font face="Calibri">-–&lt;×vVv<small>v</small><sub>v</sub> <b>[[User talk:S1tHSL4y3r|τ<sup>λι</sup>κ]] <sub>to</sub> [[User:S1tHSL4y3r|<font color="#990000">ς1<sup>tH</sup>ςι<sub>4γ</sub><small>3r</small></font>]]</b> <small>^</small>^vVv×&gt;–-</font> <i><small>23:48, 8 January 2009 (UTC)</small></i>
:<b><big>A</big></b> good idea. I think adding a separate switch option might be sufficient, rather than adding another parameter. I'll get on it. &nbsp; &nbsp; <font face="Calibri">-–&lt;×vVv<small>v</small><sub>v</sub> <b>[[User talk:S1tHSL4y3r|τ<sup>λι</sup>κ]] <sub>to</sub> [[User:S1tHSL4y3r|<font color="#990000">ς1<sup>tH</sup>ςι<sub>4γ</sub><small>3r</small></font>]]</b> <small>^</small>^vVv×&gt;–-</font> <i><small>23:48, 8 January 2009 (UTC)</small></i>
==Double up item/move etc==
<b><big>S</big></b>olved it. If the item happens to clash with a move, simply put in what you would for a normal link, and use the pipe template instead of a pipe:
{{User:S1tHSL4y3r/Template:Codediv|blue|<nowiki>{{mart|item| </nowiki><b><nowiki>Metronome (item){{!}}Metronome</nowiki></b><nowiki> |1000}}</nowiki>}}
...and that will come out as:
<!--
Template starts here
-->{{#switch: header
|header=
{{{!}}width="275px" cellspacing="0" cellpadding="0" style="background: #f8f8ff; border: 3px solid #88a; border-radius:20px; -moz-border-radius:20px; padding-bottom: 5px;"
{{!}}-
!height="32px" style="text-align:center; background: #ccf; border-top-left-radius: 20px; -moz-border-radius-topleft: 20px;"{{!}}Item
!height="32px" style="text-align:center; background: #ccf; border-top-right-radius: 20px; -moz-border-radius-topright: 20px;"{{!}}Price
|class=
{{!}}-
!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|Balls}}</div>
|item=
{{!}}-
{{!}}height="26px" style="padding-left:10px"{{!}}[[Poké Ball]]
{{!}}style="text-align:right;padding-right:10px"{{!}}{{pdollar}}{{formatnum:200}}
|itemtext=
{{!}}-
{{!}}height="26px" style="padding-left:10px"{{!}}Poké Ball
{{!}}style="text-align:right;padding-right:10px"{{!}}{{pdollar}}{{formatnum:200}}
|itemc=
{{!}}-
{{!}}height="26px" style="padding-left:10px"{{!}}[[Porygon]]
{{!}}style="text-align:right;padding-right:10px"{{!}}{{formatnum:9999}}<nowiki> </nowiki>coins
|itemtextc|itemctext=
{{!}}-
{{!}}height="26px" style="padding-left:10px"{{!}}{{TM|35|Flamethrower}}
{{!}}style="text-align:right;padding-right:10px"{{!}}{{formatnum:4000}}<nowiki> </nowiki>coins
|title=
{{!}}-
!height="8px" colspan="2"{{!}}
{{!}}-
!height="28px" colspan="2" style="text-align:center; background: #ccf"{{!}}Title
|titlelight=
{{!}}-
!height="8px" colspan="2"{{!}}
{{!}}-
!height="28px" colspan="2" style="text-align:center; background: #e6e6ff"{{!}}Title
|titledark=
{{!}}-
!height="8px" colspan="2"{{!}}
{{!}}-
!height="28px" colspan="2" style="text-align:center; background: #bbf"{{!}}Title
|space=
{{!}}-
!height="8px" colspan="2"{{!}}
|footer=
{{!}}}
|=
{{{!}}width="275px" cellspacing="0" cellpadding="0" style="background: #f8f8ff; border: 3px solid #88a; border-radius:20px; -moz-border-radius:20px; padding-bottom: 5px;"
{{!}}-
!height="32px" colspan="2" style="text-align:center; background: #ccf; border-top-left-radius: 20px; -moz-border-radius-topleft: 20px;"{{!}}Item
!height="32px" style="text-align:center; background: #ccf; border-top-right-radius: 20px; -moz-border-radius-topright: 20px;"{{!}}Price
{{!}}-
!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>
{{!}}-
{{!}}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
{{!}}-
{{!}}height="26px" style="padding-left:5px"{{!}}[[File:Bag Great Ball Sprite.png|Bag Great Ball Sprite.png]]
{{!}}[[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>
{{!}}-
{{!}}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
{{!}}-
{{!}}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
{{!}}-
!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>
{{!}}-
{{!}}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="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 Escape Rope Sprite.png]]
{{!}}[[Escape Rope]]
{{!}}style="text-align:right;padding-right:10px"{{!}}{{pdollar}}550
{{!}}-
{{!}}height="26px" style="padding-left:5px"{{!}}[[File:Bag Repel Sprite.png]]
{{!}}[[Repel]]
{{!}}style="text-align:right;padding-right:10px"{{!}}{{pdollar}}350
{{!}}-
{{!}}height="26px" style="padding-left:5px"{{!}}[[File:Bag Wave Mail Sprite.png]]
{{!}}[[Wave Mail]]
{{!}}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
}}
<!--
Template starts here
-->{{#switch: item
|header=
{{{!}}width="Metronome (item){{!}}Metronome" cellspacing="0" cellpadding="0" style="background: #f8f8ff; border: 3px solid #88a; border-radius:20px; -moz-border-radius:20px; padding-bottom: 5px;"
{{!}}-
!height="32px" style="text-align:center; background: #ccf; border-top-left-radius: 20px; -moz-border-radius-topleft: 20px;"{{!}}Item
!height="32px" style="text-align:center; background: #ccf; border-top-right-radius: 20px; -moz-border-radius-topright: 20px;"{{!}}Price
|class=
{{!}}-
!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|Metronome (item){{!}}Metronome}}</div>
|item=
{{!}}-
{{!}}height="26px" style="padding-left:10px"{{!}}[[Metronome (item){{!}}Metronome]]
{{!}}style="text-align:right;padding-right:10px"{{!}}{{pdollar}}{{formatnum:1000}}
|itemtext=
{{!}}-
{{!}}height="26px" style="padding-left:10px"{{!}}Metronome (item){{!}}Metronome
{{!}}style="text-align:right;padding-right:10px"{{!}}{{pdollar}}{{formatnum:1000}}
|itemc=
{{!}}-
{{!}}height="26px" style="padding-left:10px"{{!}}[[Metronome (item){{!}}Metronome]]
{{!}}style="text-align:right;padding-right:10px"{{!}}{{formatnum:1000}}<nowiki> </nowiki>coins
|itemtextc|itemctext=
{{!}}-
{{!}}height="26px" style="padding-left:10px"{{!}}Metronome (item){{!}}Metronome
{{!}}style="text-align:right;padding-right:10px"{{!}}{{formatnum:1000}}<nowiki> </nowiki>coins
|title=
{{!}}-
!height="1000px" colspan="2"{{!}}
{{!}}-
!height="28px" colspan="2" style="text-align:center; background: #ccf"{{!}}Metronome (item){{!}}Metronome
|titlelight=
{{!}}-
!height="1000px" colspan="2"{{!}}
{{!}}-
!height="28px" colspan="2" style="text-align:center; background: #e6e6ff"{{!}}Metronome (item){{!}}Metronome
|titledark=
{{!}}-
!height="1000px" colspan="2"{{!}}
{{!}}-
!height="28px" colspan="2" style="text-align:center; background: #bbf"{{!}}Metronome (item){{!}}Metronome
|space=
{{!}}-
!height="Metronome (item){{!}}Metronomepx" colspan="2"{{!}}
|footer=
{{!}}}
|=
{{{!}}width="275px" cellspacing="0" cellpadding="0" style="background: #f8f8ff; border: 3px solid #88a; border-radius:20px; -moz-border-radius:20px; padding-bottom: 5px;"
{{!}}-
!height="32px" colspan="2" style="text-align:center; background: #ccf; border-top-left-radius: 20px; -moz-border-radius-topleft: 20px;"{{!}}Item
!height="32px" style="text-align:center; background: #ccf; border-top-right-radius: 20px; -moz-border-radius-topright: 20px;"{{!}}Price
{{!}}-
!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>
{{!}}-
{{!}}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
{{!}}-
{{!}}height="26px" style="padding-left:5px"{{!}}[[File:Bag Great Ball Sprite.png|Bag Great Ball Sprite.png]]
{{!}}[[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>
{{!}}-
{{!}}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
{{!}}-
{{!}}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
{{!}}-
!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>
{{!}}-
{{!}}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="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 Escape Rope Sprite.png]]
{{!}}[[Escape Rope]]
{{!}}style="text-align:right;padding-right:10px"{{!}}{{pdollar}}550
{{!}}-
{{!}}height="26px" style="padding-left:5px"{{!}}[[File:Bag Repel Sprite.png]]
{{!}}[[Repel]]
{{!}}style="text-align:right;padding-right:10px"{{!}}{{pdollar}}350
{{!}}-
{{!}}height="26px" style="padding-left:5px"{{!}}[[File:Bag Wave Mail Sprite.png]]
{{!}}[[Wave Mail]]
{{!}}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
}}
<!--
Template starts here
-->{{#switch: footer
|header=
{{{!}}width="275px" cellspacing="0" cellpadding="0" style="background: #f8f8ff; border: 3px solid #88a; border-radius:20px; -moz-border-radius:20px; padding-bottom: 5px;"
{{!}}-
!height="32px" style="text-align:center; background: #ccf; border-top-left-radius: 20px; -moz-border-radius-topleft: 20px;"{{!}}Item
!height="32px" style="text-align:center; background: #ccf; border-top-right-radius: 20px; -moz-border-radius-topright: 20px;"{{!}}Price
|class=
{{!}}-
!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|Balls}}</div>
|item=
{{!}}-
{{!}}height="26px" style="padding-left:10px"{{!}}[[Poké Ball]]
{{!}}style="text-align:right;padding-right:10px"{{!}}{{pdollar}}{{formatnum:200}}
|itemtext=
{{!}}-
{{!}}height="26px" style="padding-left:10px"{{!}}Poké Ball
{{!}}style="text-align:right;padding-right:10px"{{!}}{{pdollar}}{{formatnum:200}}
|itemc=
{{!}}-
{{!}}height="26px" style="padding-left:10px"{{!}}[[Porygon]]
{{!}}style="text-align:right;padding-right:10px"{{!}}{{formatnum:9999}}<nowiki> </nowiki>coins
|itemtextc|itemctext=
{{!}}-
{{!}}height="26px" style="padding-left:10px"{{!}}{{TM|35|Flamethrower}}
{{!}}style="text-align:right;padding-right:10px"{{!}}{{formatnum:4000}}<nowiki> </nowiki>coins
|title=
{{!}}-
!height="8px" colspan="2"{{!}}
{{!}}-
!height="28px" colspan="2" style="text-align:center; background: #ccf"{{!}}Title
|titlelight=
{{!}}-
!height="8px" colspan="2"{{!}}
{{!}}-
!height="28px" colspan="2" style="text-align:center; background: #e6e6ff"{{!}}Title
|titledark=
{{!}}-
!height="8px" colspan="2"{{!}}
{{!}}-
!height="28px" colspan="2" style="text-align:center; background: #bbf"{{!}}Title
|space=
{{!}}-
!height="8px" colspan="2"{{!}}
|footer=
{{!}}}
|=
{{{!}}width="275px" cellspacing="0" cellpadding="0" style="background: #f8f8ff; border: 3px solid #88a; border-radius:20px; -moz-border-radius:20px; padding-bottom: 5px;"
{{!}}-
!height="32px" colspan="2" style="text-align:center; background: #ccf; border-top-left-radius: 20px; -moz-border-radius-topleft: 20px;"{{!}}Item
!height="32px" style="text-align:center; background: #ccf; border-top-right-radius: 20px; -moz-border-radius-topright: 20px;"{{!}}Price
{{!}}-
!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>
{{!}}-
{{!}}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
{{!}}-
{{!}}height="26px" style="padding-left:5px"{{!}}[[File:Bag Great Ball Sprite.png|Bag Great Ball Sprite.png]]
{{!}}[[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>
{{!}}-
{{!}}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
{{!}}-
{{!}}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
{{!}}-
!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>
{{!}}-
{{!}}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="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 Escape Rope Sprite.png]]
{{!}}[[Escape Rope]]
{{!}}style="text-align:right;padding-right:10px"{{!}}{{pdollar}}550
{{!}}-
{{!}}height="26px" style="padding-left:5px"{{!}}[[File:Bag Repel Sprite.png]]
{{!}}[[Repel]]
{{!}}style="text-align:right;padding-right:10px"{{!}}{{pdollar}}350
{{!}}-
{{!}}height="26px" style="padding-left:5px"{{!}}[[File:Bag Wave Mail Sprite.png]]
{{!}}[[Wave Mail]]
{{!}}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
}}
&nbsp; &nbsp; <font face="Calibri">-–&lt;×vVv<small>v</small><sub>v</sub> <b>[[User talk:S1tHSL4y3r|τ<sup>λι</sup>κ]] <sub>to</sub> [[User:S1tHSL4y3r|<font color="#990000">ς1<sup>tH</sup>ςι<sub>4γ</sub><small>3r</small></font>]]</b> <small>^</small>^vVv×&gt;–-</font> <i><small>04:26, 9 January 2009 (UTC)</small></i>
:Nice.  It's a little messy, but we probably won't have to do that much.&nbsp;&mdash;&nbsp;[[User:Laoris|Laoris]]&nbsp;<sub>([[User_Talk:Laoris|Blah]])</sub> 04:39, 9 January 2009 (UTC)
::<b><big>I</big></b> suppose we won't need to do this now that the itemtextc option can be used. &nbsp; &nbsp; <font face="Calibri">-–&lt;×vVv<small>v</small><sub>v</sub> <b>[[User talk:S1tHSL4y3r|τ<sup>λι</sup>κ]] <sub>to</sub> [[User:S1tHSL4y3r|<font color="#990000">ς1<sup>tH</sup>ςι<sub>4γ</sub><small>3r</small></font>]]</b> <small>^</small>^vVv×&gt;–-</font> <i><small>12:27, 10 January 2009 (UTC)</small></i>
==Column widths==
I think we should remove the 60%/40% widths on the two columns.  That way, long item names won't get forced to the next line when there's still space there that's part of the price column.&nbsp;&mdash;&nbsp;[[User:Laoris|Laoris]]&nbsp;<sub>([[User_Talk:Laoris|Blah]])</sub> 04:39, 9 January 2009 (UTC)
:<b><big>G</big></b>ood point. Though I'm not sure whether problems will arise with those columns having no set widths. &nbsp; &nbsp; <font face="Calibri">-–&lt;×vVv<small>v</small><sub>v</sub> <b>[[User talk:S1tHSL4y3r|τ<sup>λι</sup>κ]] <sub>to</sub> [[User:S1tHSL4y3r|<font color="#990000">ς1<sup>tH</sup>ςι<sub>4γ</sub><small>3r</small></font>]]</b> <small>^</small>^vVv×&gt;–-</font> <i><small>04:48, 9 January 2009 (UTC)</small></i>
== New option: itemtextc ==
<b><big>F</big></b>igured it was probably best to create the option itemtextc anyway, makes TMs a lot easier to list with custom currencies, and probably other miscellaneous things as well. &nbsp; &nbsp; <font face="Calibri">-–&lt;×vVv<small>v</small><sub>v</sub> <b>[[User talk:S1tHSL4y3r|τ<sup>λι</sup>κ]] <sub>to</sub> [[User:S1tHSL4y3r|<font color="#990000">ς1<sup>tH</sup>ςι<sub>4γ</sub><small>3r</small></font>]]</b> <small>^</small>^vVv×&gt;–-</font> <i><small>12:20, 10 January 2009 (UTC)</small></i>
== Congrats, S1tHSL4y3r==
I know I've seen these templates, heaps before. But they're just amazing. Really great work, S1tHSL4y3r. --[[User:Clarky13|<span style="color:#0000FF;">'''Clarky'''</span>]][[User talk:Clarky13|<span style="color:#000000;">'''13'''</span>]] 01:47, 22 January 2009 (UTC)
:<b><big>H</big></b>ey thanks Clarky, not a problem at all! Have a Mudkip. ^_^ &nbsp; &nbsp; <font face="Calibri">-–&lt;×vVv<small>v</small><sub>v</sub> <b>[[User talk:S1tHSL4y3r|τ<sup>λι</sup>κ]] <sub>to</sub> [[User:S1tHSL4y3r|<font color="#990000">ς1<sup>tH</sup>ςι<sub>4γ</sub><small>3r</small></font>]]</b> <small>^</small>^vVv×&gt;–-</font> <i><small>01:38, 23 January 2009 (UTC)</small></i>
== Sith ==
Love it and all, but we gotta flip it out for HGSS-style. '''[[User:TTEchidna|<span style="color:#DAA520">''TTE''</span>]][[User talk:TTEchidna|<span style="color:#C0C0C0">chidna</span>]]''' 06:07, 10 November 2009 (UTC)

Latest revision as of 05:05, 12 September 2010

I noticed many Cities/Towns are missing Poké Mart stock lists, and the ones that do are using a simple table, so I coded this template to be used to easily put stock lists in every city/town that needs one.

Will be adding item icon sprites.

Please contact me for suggestions or before changing it in any way.    -–<×vVvvv τλικ to ς1tHςι3r ^^vVv×>–- 02:30, 8 January 2009 (UTC)

I think the item names shouldn't be that close to the border... Otherwise, it's fine. Shall the revamps of the PokéMart sections begin? - espeonA 05:15, 8 January 2009 (UTC)
Mm, I was thinking that too. But that'll be where the icon sprites will go so it won't matter. Yes... it most certainly shall. *evil guffaw*     -–<×vVvvv τλικ to ς1tHςι3r ^^vVv×>–- 05:33, 8 January 2009 (UTC)
I... just realized there'll be a lot of redirects with this... - espeonA 05:36, 8 January 2009 (UTC)
Yea, that's one of the problems I haven't solved yet. The thing is, there are too many different pages with groups of items, and I'm trying to make it so you only type the name of the item in, which means I'd have to make a multitude of switch criterias, to compensate for every item's correct link. I hope too many redirects don't pose too much of a problem...     -–<×vVvvv τλικ to ς1tHςι3r ^^vVv×>–- 06:00, 8 January 2009 (UTC)
Redirects are fine. Don't worry about it. I hardly think a Pokémon or move named Revive is gonna pop up. TTEchidna 06:15, 8 January 2009 (UTC)
Doh. Metronome both an item and move. Worse still, it's sold at the game corner. Now we need an itemtextc or something. — Laoris (Blah) 03:00, 9 January 2009 (UTC)
Hmm, I think there may be a way around this. I'll see what I can do.     -–<×vVvvv τλικ to ς1tHςι3r ^^vVv×>–- 03:29, 9 January 2009 (UTC)

Item icon sprites

I've just had a glance through the archives and located all the lovely 24x24 fitting images for every item, however the thing is they all have differently formatted names: Balls (a:Image:PokéBallSprite.png) and Medicine (a:Image:PotionSprite.png) are mostly name with no spaces, first letters capped + "Sprite.png", whereas other items such as a:Image:Escape Rope sprite.png, a:Image:Cleanse Tag sprite.png and a:Image:Soothe Bell sprite.png have name with spaces (interchangeable with underscores though), first letters capped, except for "sprite.png", and still other items such as Mail (a:Image:Orange Mail III.png) are in a completely different pattern, name with spaces, first letters capped, + generation, which means interpreting what format to use in order to derive the image link will be hardly possible. The only solution I can currently think of is to tediously create a long switch of every item matched with their format, unless the image link is manually provided... any ideas?     -–<×vVvvv τλικ to ς1tHςι3r ^^vVv×>–- 11:02, 8 January 2009 (UTC)

If those images aren't being used in many places, we could move them to a standard naming system. It would be a lot of work though. It might be a better idea to just add another parameter to the template. — Laoris (Blah) 21:33, 8 January 2009 (UTC)
An extra parameter might not be the best idea however, it would allow for errors such as missing images because the links have been put incorrectly, and the order of parameters would become inconsistent with the appearance (we want to keep the order easier to remember). I suppose we could try moving each of the images then correcting all the links, though would making a long switch be less work overall?     -–<×vVvvv τλικ to ς1tHςι3r ^^vVv×>–- 23:56, 8 January 2009 (UTC)
I think a long switch would be a bad idea, because whenever we want to use a new item with the template, we'd have to modify the template, which is already being used on a couple dozen pages. — Laoris (Blah) 00:19, 9 January 2009 (UTC)
Oh no, that won't be necessary because the switch will be on an external template, like what I did with Template:Trainerexp. The only problem will be time.
Now unfortunately, the other alternative, of moving all the images, will be hideous, I just had a look through most of them, heaps have been used on many Userpages, and we'd have to individually correct all the links, which will be hectic and somewhat intrusive. I think the switch may have to be the only way?     -–<×vVvvv τλικ to ς1tHςι3r ^^vVv×>–- 02:38, 9 January 2009 (UTC)
I think an external template still gets included with the primary template, so a change to the external template causes all pages with the primary template to get re-evaluated. — Laoris (Blah) 02:54, 9 January 2009 (UTC)
Wait so when they all get re-evaluated, why's that so undesireable?
Oh and I think I overstated with that previous comment of having to relink all the items, I was also looking at items that weren't purchasable, I'll go through again only with the items that will be necessary, I don't think it'll be such a big deal after all.     -–<×vVvvv τλικ to ς1tHςι3r ^^vVv×>–- 03:14, 9 January 2009 (UTC)
It can cause a lot of stress on the server. I haven't seen a lot of talk about that lately, so I don't know how big of an issue it is. Should ask an admin or something. — Laoris (Blah) 03:16, 9 January 2009 (UTC)
Right, I've had a look through all the necessary images, and it might still be a fair deal to move them all and fix the links, unless is there a way to redirect images? Is it still possible for the image to show?     -–<×vVvvv τλικ to ς1tHςι3r ^^vVv×>–- 04:42, 9 January 2009 (UTC)

Other currencies

How about making this template work for other currencies, like game corner coins? Should we just add another switch for coins, or is there a better way to do it? — Laoris (Blah) 21:33, 8 January 2009 (UTC)

A good idea. I think adding a separate switch option might be sufficient, rather than adding another parameter. I'll get on it.     -–<×vVvvv τλικ to ς1tHςι3r ^^vVv×>–- 23:48, 8 January 2009 (UTC)

Double up item/move etc

Solved it. If the item happens to clash with a move, simply put in what you would for a normal link, and use the pipe template instead of a pipe:

{{mart|item| Metronome (item){{!}}Metronome |1000}}

...and that will come out as:

Item Price
Metronome $1,000

    -–<×vVvvv τλικ to ς1tHςι3r ^^vVv×>–- 04:26, 9 January 2009 (UTC)

Nice. It's a little messy, but we probably won't have to do that much. — Laoris (Blah) 04:39, 9 January 2009 (UTC)
I suppose we won't need to do this now that the itemtextc option can be used.     -–<×vVvvv τλικ to ς1tHςι3r ^^vVv×>–- 12:27, 10 January 2009 (UTC)

Column widths

I think we should remove the 60%/40% widths on the two columns. That way, long item names won't get forced to the next line when there's still space there that's part of the price column. — Laoris (Blah) 04:39, 9 January 2009 (UTC)

Good point. Though I'm not sure whether problems will arise with those columns having no set widths.     -–<×vVvvv τλικ to ς1tHςι3r ^^vVv×>–- 04:48, 9 January 2009 (UTC)

New option: itemtextc

Figured it was probably best to create the option itemtextc anyway, makes TMs a lot easier to list with custom currencies, and probably other miscellaneous things as well.     -–<×vVvvv τλικ to ς1tHςι3r ^^vVv×>–- 12:20, 10 January 2009 (UTC)

Congrats, S1tHSL4y3r

I know I've seen these templates, heaps before. But they're just amazing. Really great work, S1tHSL4y3r. --Clarky13 01:47, 22 January 2009 (UTC)

Hey thanks Clarky, not a problem at all! Have a Mudkip. ^_^     -–<×vVvvv τλικ to ς1tHςι3r ^^vVv×>–- 01:38, 23 January 2009 (UTC)

Sith

Love it and all, but we gotta flip it out for HGSS-style. TTEchidna 06:07, 10 November 2009 (UTC)