Template:Navbox_with_collapsible_groups and Template:Navbox has instructions for the template options