msikma / pokesprite

Database project of box and inventory sprites from the Pokémon core series games
https://msikma.github.io/pokesprite/
MIT License
972 stars 167 forks source link

Enhancement: Ability to reference a Pokemon based on Pokedex number instead of name #2

Closed peterhajas closed 10 years ago

peterhajas commented 10 years ago

It would be great to be able to reference a Pokemon based on its national Pokedex number (like '025' for Pikachu) instead of by name. Pokemon naming schemes aren't well defined, and it may be difficult for a web application to generate names that work with pokesprite. For example:

peterhajas commented 10 years ago

I just found the pkmn.json data document. This may be sufficient for clients of your API - they could look up the slug by dex number. You can close this if you agree.

msikma commented 10 years ago

I do think having the possibility to reference them by number would be a nice addition. I actually originally had this feature when everything was CSS, but didn't reimplement it for 1.0. :)

msikma commented 10 years ago

This has been added, e.g. by using <span class="pkspr pkmn-004"></span> for Charmander. The dex number simply replaces the slug.