Extension:Expandable tables

This extension is obsolete

For similar functionality see W:Wikipedia:Collapsible tables.

This extension is a single snippet of code to be included in your LocalSettings.php script, it's only been tested on version 1.6.7. It allows expandable/collapsable tables to be created by giving them a class attribute of "expandable", and a title attribute. If an id attribute is included and set to 1, the table will be expanded by default.

Bugs & warnings

 * It doesn't currently work in page preview
 * The class and title attributes must be first

Installation
Copy the code from OrganicDesign:Extension:ExpandableTables.php, save it in your extensions directory and include it from your LocalSettings.php file.

CSS Styles
Here's an example of the CSS styles used for the tables: