Thread:Extension talk:SideBarMenu/inline queries within the SideBarMenu ondiscussionpage:Extension talk:SideBarMenu/reply

Just tested it myself. I got it to work with the following code:

Countries

This creates a sidebarmenu with the contents:

Countries
 * Norway
 * Germany

This solution however requires the extensions Extension:Arrays and Extension:Loops