Forum:Making a navbox hideable

How can I make hideable boxes? I get the impression it has something to do with classes, but is there no way to do this simply in a template? I've been using the Navbox template quite a lot in the WikiGardener site. But as some pages can have 2, 3, 4 or more of them, it can get quite cluttered and would be handy if they defaulted to hidden like on wikipedia.

Also, I've noticed that when stacking them, there appears to be quite a large gap between them like on this page: Aphid, which could do with being closed up. Is this a function of the template script, or is it of templates in general?

Thanks for any assistance.OllieMartin 13:45, July 29, 2010 (UTC)


 * If your navigation templates are made using tables you can make them into pre-collapsed collapsible tables. See mw:Manual:Collapsible tables. You add a bunch of javascript to your w:c:gardener:MediaWiki:Common.js and a little CSS to your w:c:gardener:MediaWiki:Common.css. After that you can just add  to your table and then a &#91;show&#93; link should show up on the right side of your table header and the table should be collapsed by default. --  Fandyllic  (talk &middot; contr) 1:09 PM PST 29 Jul 2010
 * Community supports collapsible tables, so here is an example:


 * -- Fandyllic  (talk &middot; contr) 1:17 PM PST 29 Jul 2010