Forum:Need some help with implementing hideable button

I want to implement the hideable button in this template:

http://godfather.wikia.com/wiki/Template:Succession_box

The same way that it is done in this template:

http://godfather.wikia.com/wiki/Template:Series

I was wondering what is the best way to make it work with the other template.

Would appreciate any help,

Sonny Black(Talk) 18:37, September 5, 2012 (UTC)


 * Add  classes to the header like:

 ! class="collapsible collapsed" colspan="3" style="border-radius:0.4em; background: #987217; color: #fff;"| 
 * or  to make a fade effect in it.


 * Doesn't seem to work, probably because the class does not exist in wikia.css. I copied the other template's hideable button method some time ago, but I don't know how it actually works. --Sonny Black(Talk) 20:06, September 5, 2012 (UTC)


 * You need to add those classes to the table itself, not the header:

{| class="collapsible collapsed" ...
 * - Tjcool007 (Wall) 20:20, September 5, 2012 (UTC)


 * I took the liberty of adding the "collapsible" class to the table, seems to work fine. — Sovq 20:27, September 5, 2012 (UTC)

It does, thanks for the help. And what is the class name to display the template in hideable mode? If I use the one suggested by Cafeinlove (mw-collapsible mw-collapsed) it gives the button a different name. --Sonny Black(Talk) 20:37, September 5, 2012 (UTC)

Nevermind, I got it. Thanks anyway! --Sonny Black(Talk) 20:39, September 5, 2012 (UTC)