I'm trying out the navbox template at [[w:Wikipedia:WikiProject Transwiki/Template:Navbox]], and I seem to hit a bug in the code there and I want to see how I can fix it. In particular, when I do this:
{{Navbox | group1 = Foo | list1 = {{Navbox | group1 = Foo1 | list1 = Bar1 | group2 = Foo2 | list2 = Bar2 }} }}
That seems fine enough. However, if I do this,
{{Navbox | group1 = Foo | list1 = {{Navbox|child | group1 = Foo1 | list1 = Bar1 | group2 = Foo2 | list2 = Bar2 }} }}
I get messed up data - The row with Foo has four columns instead of two (the second of which is the wikitext of the start of the table that makes up the child navbox), and the Foo2 group in the child navbox is manifesting itself as a second group in the main table.
Looking at the wikicode, it looks like something is up with the {{#switch}} at the very top and bottom of the template. Any ideas on how I can fix it?