Forum:Nav collapsible collapsed

Hi there!

How can I create a "collapsible nav"? I tried to copy the code of this template (http://es.simpsons.wikia.com/wiki/Plantilla:Mafia_de_Springfield) to treate a new template on my wiki, but it didn't work! I have to edit ccs page?

Could you try to do it? This is the ccs on my wiki: http://it.squadraspecialecobra11.wikia.com/wiki/MediaWiki:Wikia.css, and this is that of the wiki in which it's possible to crate collpsible nav http://es.simpsons.wikia.com/wiki/MediaWiki:Wikia.css

I don't know which codes I need to copy to make possible it!

Thank you very much!Cento93 10:53, January 15, 2012 (UTC)

:) What you need is some javascript, ShowHide, which is quite common on Wikia. You can implement it on your wiki by copying the following and pasting it into  on your wiki:

The 888th Avatar  (talk)  11:53, January 15, 2012 (UTC)



First of all, I've done as you said, but nothing, then I tried to copy all "collapse button" paraghraph.

My wiki: http://it.simpsons.wikia.com/wiki/MediaWiki:Common.js Original wiki: http://es.simpsons.wikia.com/wiki/MediaWiki%3ACommon.js

I copied it as i found it, but nothing! What I've done wrong?--Cento93 12:28, January 15, 2012 (UTC)

Are you referring to another template? Some of the classes may be different for the javascript I've given you – that other wiki uses older javascript from Wikipedia that doesn't work as well on Wikia. The 888th Avatar  (talk)  12:43, January 15, 2012 (UTC)



The following is all of the CSS from their wiki relevant to navboxes and can be copied to your Wikia.css:






 * Ok, so I only have to copy that on Wiki.ccs and left che Common.js as it's now, right?--Cento93 12:48, January 15, 2012 (UTC)


 * It works! Look: http://it.simpsons.wikia.com/wiki/Template%3AStagione_1.
 * Now I have another question, the last one! Look at this page http://es.simpsons.wikia.com/wiki/Burns,_Baby_Burns The color of the backround of the tab and the background color coincide. In my wiki I have a darker tonality of yellow, and the two colors not coincide. Where i can edit this? Even it in ccs page? --Cento93 13:23, January 15, 2012 (UTC)