Generating a wiki table of contents requires the Wiki TOC plugin, available through CollabNet Professional Services.
To enable TOC for a Wiki page, place the following in your Wiki page at the spot where you want the Table of Contents to appear. %%insert-toc %%
The Table of Contents is generated automatically based on the heading markers in the wiki page, i.e.: !!!Heading