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 burro 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)