Extension:CSS MenuSidebar

This extension makes it possible to create a sidebar as a menu with dropdown items.

I searched some wikis but found nothing that met my needs so i created this extension with the help of the Extension:CSS Dropdowns.

The extension was designed for MediaWiki 1.14 but should also work for later and some earlier versions. Please try it out and post here!

Download and Installation
Please copy the code found below and place it in. Note: $IP stands for the root directory of your MediaWiki installation, the same directory that holds LocalSettings.php.

Paste some menu structure in the MediaWiki:MenuSidebar. The basic behaviour is similar to the MediaWiki:Sidebar with three major differences:
 * 1) You can also use text-only entrys (no links), which is useful for menus with sub-menus
 * 2) You can switch on the parser to parse every list item in your menu. This results in a different syntax for all entrys (e.g.  and  around links) see Configuration
 * 3) Use "-" as list item to create a separator

below is an Example for the MediaWiki:MenuSidebar

Then copy the CSS found below and place it in your MediaWiki:Common.css. Be aware, that you have to change the css and put the titles of your menus instead of the example menu titles (#p-MyMenu instead of #p-Menu ...)

To activate the extension, add the following to LocalSettings.php:

Configuration
You can set the following parameter in your LocalSettings.php to enable the Parser for the individual list items in the menu. This enables you to put links to files etc. Be aware that you have to use a different syntax in the MediaWiki:MenuSidebar

Example
Example for $wgParseListItems = false; (Default)
 * Menu 1
 * Submenu 1.1|Submenu 1.1
 * Item 1.1.1|Item 1.1.1
 * Item 1.1.2|Item 1.1.2
 * Submenu 1.2|Submenu 1.2
 * Another Menu
 * not a link
 * Item 2.1.1|An Item
 * bla|still a deeper level

Example for $wgParseListItems = true;
 * Menu 1
 * Submenu 1.1
 * Item 1.1.1
 * Item 1.1.2
 * Submenu 1.2
 * Another Menu
 * not a link
 * An Item
 * still a deeper level
 * [[Media:bla|also Files are possible]]