User:Cacycle/navbox demo



Demo page for improved Template:Navbox for better usability, please see Template talk:Navbox.

Please use Shift-Reload to update to the latest version.

Installation
In order to see the correct demo you have to add the following code snippets to your user script and user style pages:

Add to User:YourUsername/monobook.js (or User:YourUsername/vector.js):

importScript('User:Cacycle/navbox.js');

Add to User:YourUsername/monobook.css (or User:YourUsername/vector.css):

@import url(http://en.wikipedia.org/w/index.php?title=User:Cacycle/navbox.css&action=raw&ctype=text/css);

After saving these changes you have to clear your browser cache, e.g. with Shift-Reload.

For testing simply use  or the first unnamed parameter set to. Note that the evenodd parameter is used to reverse striping in some of the subgroups in order to get all of the stripes to line up properly. If you wish to remove the striping altogether, you can set  in each of the navboxes.

Multiple show/hides in a single container
The example below is generated using a regular navbox for the main container, then its list1, list2, and list3 parameters each contain another navbox, with  set. Note that each of the child navboxes has its own VDE navbar; these could be hidden using  for each of them, or by just leaving out the name parameter (child navboxes do not require the name parameter to be set, unlike regular navboxes).