Forum:Can't Get Different Image Names to Link to Same Image

I can't find a way, but I heard it's not supported yet (would like confirmation about this though).

I want some code which will make: and display the same image: I'd like to do this with only uploading one image: Z.jpg.

Making and redirect to: currently doesn't work.

Is there some way to do this? Nicolasjager 04:49, 5 April 2008 (UTC)


 * No. There isn't. --Ciencia Al Poder (talk) -WikiDex 11:21, 5 April 2008 (UTC)


 * What would you use that feature for? -- Danny (talk ) 14:03, 5 April 2008 (UTC)
 * Well, in shaiya spells come in 3 levels, and each level has a distinct name, but share the same skill image. Ex. the first spell for pagans is Magic Ball, 2nd level of that is Magic Arrow, third is Magic Missle.  Another example is: Wind, Storm, Hurricane.  I'd like  to use the same image I use for Wind for Storm and Hurricane, but uploading extra copies would be annoying.  The template uses the input for the variable "name" to decide what image to use, and I can't have the "name" for Wind, Storm and Hurricane be the same.


 * Are there plans to implement this in the future? Nicolasjager 15:40, 5 April 2008 (UTC)
 * It's on the to-do list for a later MediaWiki version (I think), but it would be somewhat difficult as you'd then have to take the md5 of the image name the redirect takes you to and such. It'd certainly be an intriguing problem to work on... I'll ask brion (head MediaWiki dev for those that don't know) if I can start working on it. --Skizzerz talk 16:09, 5 April 2008 (UTC)
 * Thanks, I look forward to it. Let me know when it's available, please.  Nicolasjager 16:51, 5 April 2008 (UTC)


 * Maybe a   could be a solution, to select a proper image, depending on the quantity of different possible images. --Ciencia Al Poder (talk) -WikiDex 16:59, 5 April 2008 (UTC)
 * Nice suggestion, but unfortunately, that wouldn't work in my case. There's over 300 distinct skill names, and over 100 images.  To modify the template so it uses switch to call the right image would be a whole bunch of code, and would need changing if there is ever a new skill.
 * I'll just wait till it's implemented in the new version. Nicolasjager 17:37, 5 April 2008 (UTC)


 * On Guild Wars Wikia, with the templates we are using, this would be easy to do. We have a template Skill that is use by hundred of other templates. One per skill. In each skill template we can specify what image to use. So, many skill can have the same image.
 * By the way, it's a french wiki so the main template is not really name skill but Compétence. We also have some brother template of the main one like Compétence m and Compétence ligne that will call and use all data in stored each skill template to ouput it in a different format.
 * Want to learn more about this ? — TulipVorlax 06:27, 6 April 2008 (UTC)