Forum:Show and Hide templates

Hi it's me again. Can someone help me make a Show/Hide template, where you can put content that will be hidden into (((2))) and then it will hide it under (((1))). I don't want the entire dynamic navigation from Wikipedia, Can someone help? Thanks


 * Is this the sort of thing you want? Psychoadept (talk) 18:01, October 10, 2012 (UTC)


 * Yes, however I don't want any of the tables in that template. Also, I don't need to have text to hide it under (apart from the [show]). Can you tell me how to make it without the red box, as well as any css / javascript I would need?


 * I'm a bit new to this myself, but I know you will need the SpoilerBegin and SpoilerEnd templates to go with the main Spoiler template (though the second one is just the table end code and you could probably combine them into a single template as long as you don't want to put tables inside it).


 * Changing the background color is a matter of changing "LightCoral" in the SpoilerBegin template to whatever color you want. I don't think it's possible to get rid of the header box, but you could leave it blank or hard code it to say something like "Click to show".


 * The collapsing function can be found in Common.js. I didn't write it, but at a glance it looks like you'll want to copy the whole file. More information here. Psychoadept (talk) 19:40, October 10, 2012 (UTC)
 * The SHOW/HIDE button doesn't show up. I added all the js, but only the table shows up. Do you know what I am doing wrong?


 * I don't have time to fully test it right now, but it looks like the problem is with SpoilerBegin. I'll look into it more deeply as soon as I can. Psychoadept (talk) 21:18, October 12, 2012 (UTC)
 * Okay, on further review, the javascript is definitely not working. I see you have the code for the collapsible tables in both Wikia.js and Common.js. Try deleting it from one of those pages and see what happens. Psychoadept (talk) 22:06, October 12, 2012 (UTC)


 * I've taken it down from Wikia.css, but it still won't work. I don't really know what else to do.
 * Let me quote that: There is a new mechanic, explained in the Mediawiki manual, to make any element collapsible, but for the moment Wikia has 1.16 so we're stuck with […]. - FYI, Wikia now is on 1.19…
 * Also, the spoiler tags described there seem to work fine.--PedroM (talk) 21:00, October 13, 2012 (UTC)

Not so long ago I have managed to make it work on this wiki. You would need to undo all changes you have done to your "Common.js" and "Wikia.js" and copy everything from that wiki's MediaWiki:Common.js to your "Common.js". Here is the usage: hidden text Note: It will took some time for show/hide to get visible. In the best scenarios during 1 hour after you have changed your MediaWiki:Common.js.


 * It looks like this thread addresses the same issue: http://community.wikia.com/wiki/Forum:Wikia_Template_help?t=20121012021656 Psychoadept (talk) 22:45, October 15, 2012 (UTC)