Hi,
I think the TOC gets generated automatically if it finds the elements in order. As of now I tried with the HTML header equivalent contents.
See you can try the below in your page and see what happens. It should automatically display a TOC with the three elements, where first being the root/top element and the next 2 are under first element.
===== Page Title =====
==== Section 1 ====
==== Section 2 ====
Type them as what they are given without any modifications. You can refer more in the wiki syntax page (that comes automatically with your wiki.) [Try this :
wiki%3Bsyntax after your
http://yoursite.com/yourwiki/]