User blog:Blupo/ImageMap

Good morning. Or afternoon. Or whatever daylight period you're in right now. Do you ever find yourself wanting to add an inage of something and end up having to go to the item's page and copy the image file's name?

If you don't, then I guess this blog doesn't really matter to you.

ImageMap is a template. It's not an actual template yet because I don't put things in the Template namespace unless people actually use it. Also:

No creating templates without permission from OdiousObligation, the founder of the Wikia.

Anyway, ImageMap takes the name of an item (weapon, armor, aura, etc.) and gives you the name of the image. Say you want to get the image name of the Vindicator. Normally, you'd have to go to the weapon's page, get the link of of the image from the URL, and copy it.

With ImageMap, you don't need to! You can just plug in  and you get:

But so what? What can I use this for? Well, if we plug it into an image, and we get:

You get the idea now.

How does it work? A giant switch statement. You can see the actual template if you want to see it.

All the values are hard-coded because there is a lack of a standard image naming scheme. Maybe it'll change in the future.

The following content comes from the template's documentation page.