Forum:Hide/show in infoboxes

Hi all, how do I add the "hide/show" option in infoboxes? I copy/pasted it from other wikis, but that doesn't work; something must be missing in our files (wiki: Combine OverWiki). Klow 19:19, February 23, 2010 (UTC)


 * Yes - you need to add some javascript to your's or the site's MediaWiki:Common.js. You can simply add, which means it'll draw scripts from the developers wiki. Alternatively, you can copy the entire code from Developers.  Wjxhuang ,  the 888th Avatar  {Talk} 22:11, February 23, 2010 (UTC)


 * Great walkthrough at my blog. Joey (talk) 22:13, February 23, 2010 (UTC)


 * I. am. completely. lost. Joey, I read your walkthrough and read what you linked to, and I just don't get it. I added stuff that I don't know what that is to the specified MediaWiki pages, and nothing happens. Something may be still missing, or maybe there are conflicts in some codes. I'm just completely clueless. I don't understand why it's all there in most wikis and that there's nothing in ours. HELP!! Klow 22:32, February 23, 2010 (UTC)


 * Hmm, I'm seeing collapsible tables work correctly on one of your templates - this one - perhaps refresh the page? Wjxhuang,  the 888th Avatar  {Talk} 22:42, February 23, 2010 (UTC)


 * But also, in your common.js, you've imported/copied multiple versions of the same code. They conflict with each other - so on that template for example you have show appearing behind hide when you expand it. You only need one version - probably getting rid of the Wikipedia one (the one with the entire code copied over) is better. Wjxhuang,  the 888th Avatar  {Talk} 22:48, February 23, 2010 (UTC)


 * Ah yeah that works, sorry! But where does the Wikipedia script end in Commons.js? Klow 22:59, February 23, 2010 (UTC)


 * Thanks Joey for the cleanup! So, one last thing: how do I change the show/hide pos and their color?... Klow 23:03, February 23, 2010 (UTC)


 * Should be good now. You were using both Wikipedia's and Dantman's js, when you can only use one. (I'm pretty sure the first step of my walkthrough covered that). You only had to add that one line import and clear your cache for it to have worked. Joey (talk) 23:07, February 23, 2010 (UTC)


 * Well I might have missed it... So now, what about the color and position? What do I have to change in Common.css?... Klow 23:14, February 23, 2010 (UTC)