CollapsibleInfobox

A script for easily collapsing sections of infobox (collapsible).

Template
Template:Infobox (collapsible) should be copied to your wiki. New wikis come with a variation of this template already, but this one has altered code to work with the script. If you're already using the default version of the infobox, you should be able to copy this template code to "Template:Infobox", without breaking the infoboxes you already use.

JavaScript
This line should go in your wiki's MediaWiki:Common.js: importScriptPage('CollapsibleInfobox/code.js', 'dev');

CSS
If you want to style the infobox yourself you can do so. If not you can copy this sample styling (.darktable) to your wiki's MediaWiki:Common.css. If you decide to use your own class, replace "darktable" in the template code with it's name.