Extension:TreeAndMenu

This extension is a single article or file which you can get from MediaWiki treeview.php which is to be included in your LocalSettings.php article or file. It's only been tested on version 1.6.7. It allows tree-views to be created by surrounding a normal nested bullet list within a div tag as folows:
 * &lt;div class="tree-view">.

Images
The images the tree-view uses are defined a the $treeviewImages global variable, opened and closed folder images and a document (leaf node) image are required, as well as plus and minus images to click on to open or close the folders. Also a spacer image is required which is just a single pixel transparent image used for layout. You can create your own images, or use our ones which are listed in OrganicDesign:Category:Tree view images.

Changes in version 2.0
This tree-view was originally created for our own Organic Design wiki which is a slightly different environment than a normal MediaWiki, so I had created a simple wrapper to allow the same code to work in normal MediaWiki's too. Using a wrapper like this meant that the trees wouldnt render properly if they were transcluded from another article, but that has now been fixed by creating a separate MediaWiki specific extension instead.

Plans: Nested trees
Now we can transclude our trees, the next step is to be able to have trees transcluded within other trees so we can define large trees from structures of smaller trees. Such a conglomerate tree would be defined as in the following syntax example: In this example, an article called Tree2 is transcluded as an item in Tree1. Tree2 would be defined as a normal tree which can be used elsewhere, so the tree-view code would have to be able to match nested trees and adjust them to the appropriate depth for them to seemlessly integrate into single whole tree.
 * Tree1
 * Item1
 * Sub item1
 * Item3
 * Item3