Forum:Infobox "Switch" Function working in different ways

Hi, we (The Reborn Wikia: w:c:reborn recently added the "Switch" option in our infoboxes, but seem to be getting variable results for the same code. Could you please help us figure out why..

For reference see:

http://reborn.wikia.com/wiki/Malocchio_(Hell_Rings)

http://reborn.wikia.com/wiki/Extra_Danza_Spettro_Spada

To recreate our issue, first go to the first link, and click on the "Power of the Ring" option in the infobox..

Then go to the Second link and click on the "The Clones" option in that infobox..

The Malocchio (Hell Rings) page works properly, but the Extra Danza Spettro Spada page doesn't.. it uses the same code for the infobox, so was wondering why we get 2 different results.

I did contact staff about this, and they said that it might be a JavaScript issue, and to post the problem here, to get help on how to fix it

Thanks for your help ..AlienGamer (Userpage ⁝ Talk) 05:21, November 17, 2011 (UTC)


 * Couldn't identify what the exact problem is, but apparently changing the option2 parameter in the broken template from "The Clones" to "Clones" fixes the issue. So my guess is, that the fact that both parameters use the prefix "The" confuses the script and causes this to happen. — Sovq 07:37, November 17, 2011 (UTC)


 * Thanks, really appreciate the help. Any idea how to fix this? ..AlienGamer (Userpage ⁝ Talk) 07:40, November 17, 2011 (UTC)


 * Just tested that theory on another page, and your definitively right. If Option 1 and 2 have the same first word, this issues seems to pop up. ..AlienGamer (Userpage ⁝ Talk) 07:42, November 17, 2011 (UTC)


 * I'm sorry, but this one is a bit beyond me. Perhaps someone with more JavaScript experience would be able to help. You could also try to work around the issue simply by trying to avoid option parameters having the same first word, although I imagine this is not a solution you were looking for. — Sovq 09:02, November 17, 2011 (UTC)


 * Nah, thanks for your time. We already started a work around, which we should be able to continue if no one can solve this.. Thanks for pointing out the problem so we know how to avoid this in the future. ..AlienGamer (Userpage ⁝ Talk) 09:04, November 17, 2011 (UTC)