Using collapsible tables
edit
If you wish to group your userboxes into expandable lists in the {{Userboxtop}} template, one way of doing this is by using collapsible tables with certain classes. Wikipedia's Mediawiki configuration attempts to make this happen through a combination of ECMAScript and CSS. This method is accessible to users with ECMAScript (jScript/JavaScript) disabled, and should work in most modern browsers (it is the method used by {{Navbox}}).
- Using the codes in Help:Collapsing works much better and simpler using normal wiki table markup!
{{Userboxtop|Example 2}}
<table class="collapsible collapsed" cellspacing="0" style="width:100%;background:transparent;color:inherit;">
<tr><th class="navbox-title">Caption</th></tr>
<tr><td>
Place your userboxes here...
</td></tr>
</table>
{{Userboxbottom}}
Include 'collapsed' if you want the box to start closed, omit it if you want the box to start open. You can also use multiple tables to get separate collapsible parts like in the example to the right.
|