Forum:Collapsible sections?

I intend to make a page that will have a large amount of sections (documentation for MMO addon API), so I'd like to make a list where every section is collapsed by default, and can be expanded by users.

Any tips on how to code this? Or maybe you've seen a wiki that does it so I can check it out?


 * try this code for template:collapse top (from wikipedia originally) which creates a 1 cell collasible table with header - code Here and Template:collapse bottom that goes after the content (just closed the one cell table). Note: it used the Navbox collasible routine that is added in to sites Mediawiki:common.JS and CSS pages. I've used it with a photo gallery and some text sections to reduce page size. The header text and background colour is customisable. (Note my doc page has a problem displaying correctly but code works in articles ok) - BulldozerD11 14:11, July 30, 2010 (UTC)

Have done this with most of my tables, and as Bulldozer said, you can choose text and color. example page #1 example page #2 Code is on the page. Have either converted or am converting just about every table that's long on the wiki, so if you check out other pages, you'll find it "in action" there too.

HTH!

We hope 14:29, July 30, 2010 (UTC)

You could do it with collapsible tables...
 * -- Fandyllic  (talk &middot; contr) 9:00 AM PST 30 Jul 2010


 * Thanks, that should do the trick :) I'll post a link when I finish it, for completeness sake. - IcecreamKitten