Forum:Wonky Javascript on an Infobox Template

''Wiki in question is the Gosick Wiki on w:c:gosick. Template in question is Template:Infobox-Album. ''

I'm currently having problems with this newly-created template. First of all, the Javascript which is supposed to update the template's preview whenever a value has been given to a parameter doesn't work — and it only happens when I try to enter a value on a parameter that has an empty value; otherwise, the Javascript just loads properly. It's happening on just that template, and I doubt that I did something wrong since the infobox is just in a way a carbon copy of my other templates... which do not have this problem.

Ah, this is so confusing. heraldofmeridian♣ 12:40, May 3, 2011 (UTC)


 * I don't really see any Javascript hooks in the template. Could you be more specific about what you want the template to do or give a link to the script? If you're talking about preview in the Rich Text Editor - it's a buggy tool and it's easier just not to use it when creating templates. Sovq 13:06, May 3, 2011 (UTC)
 * Only partly true - it's actually easier to not use it at all. It causes far to many problems and hinders your ability to do anything other than fix typos. And even then, the MW editor loads faster, so if you're just fixing typos, the RTE is still a burden.
 * Uselessness of the RTE aside, the only script you have is Splarka's countdown timer, and the infobox doesn't have a timer hook - so what script are you talking about?

I'm talking about the template editor when editing articles. Whenever I use Template:Infobox-Album on an article, I can't punch in values because both the Preview button and the OK button doesn't save the values. I always end up with an empty Infobox-Album template on my article and I have to switch to Source Mode to add in parameter values.

Here is the entire code of the template:  heraldofmeridian♣ 00:17, May 4, 2011 (UTC)


 * It's likely just an RTE glitch. The best solution is to stop using the RTE. Either that, or spend hours moving pipes around until the RTE decides it wants to work.
 * Now that you mentioned it, I tried moving this template and making it work on another Wiki I handle, and it also yields the same results. Then I decided to change the template's parameter names. It worked. WTF. heraldofmeridian♣ 00:30, May 4, 2011 (UTC)