Template talk:Mart

From Bulbapedia, the community-driven Pokémon encyclopedia.
Jump to: navigation, search

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 PokémonDollar.png1,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)
http://m.bulbapedia.bulbagarden.net/w/index.php?title=Template_talk:Mart&mobileaction=toggle_view_mobile
m.bulbapedia.bulbagarden.net
crawl=CC-MAIN-2016-36
37475
application/http; msgtype=response
sha1:BNALVPY7XEQNBBRL72T72ACABODLFYYV
<urn:uuid:4c206dcb-78d2-44bd-b49b-335fc45ee0cb>
2016-08-28T14:12:07Z
52.22.100.108
sha1:DINBOXXUPYO7SCEYY535CS4Z6FFYY3M4
<urn:uuid:fd551e61-3a1e-4da6-9cf0-51c6a723d604>
http://m.bulbapedia.bulbagarden.net/w/index.php?title=Template_talk:Mart&mobileaction=toggle_view_mobile
response
<urn:uuid:ade46189-2830-4154-b5e0-07be4105147e>
robots: classic
hostname: ip-10-153-172-175.ec2.internal
software: Nutch 1.6 (CC)/CC WarcExport 1.0
isPartOf: CC-MAIN-2016-36
operator: CommonCrawl Admin
description: Wide crawl of the web for August 2016
publisher: CommonCrawl
format: WARC File Format 1.0
conformsTo: http://bibnum.bnf.fr/WARC/WARC_ISO_28500_version1_latestdraft.pdf