Template talk:Mart: Difference between revisions

From Bulbapedia, the community-driven Pokémon encyclopedia.
Jump to navigationJump to search
No edit summary
Line 31: Line 31:
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:
{{mart|header}}
{{mart|item|Metronome (item){{!}}Metronome|1000}}
{{mart|footer}}
&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>

Revision as of 04:26, 9 January 2009

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 (Image:PokéBallSprite.png) and Medicine (Image:PotionSprite.png) are mostly name with no spaces, first letters capped + "Sprite.png", whereas other items such as Image:Escape Rope sprite.png, Image:Cleanse Tag sprite.png and 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 (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)

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)