This is only available for the V3 template.
The table of contents macro goes through your headings and adds an anchor to each heading, then generates a bulleted list (with subheadings indented).
HTML headings are hierarchical (Heading 1, Heading 2, Heading 3, Heading 4, Heading 5; the largest is Heading 1).
The first heading in your page must be a higher number than any other heading (e.g. if you have Heading 2, Heading 3, and Heading 4 headings in your page, the first heading must be Heading 2; if you have Heading 3, Heading 4, and Heading 5 headings in your page, the first one must be Heading 3).
The table of contents macro can be inserted after the main heading of the page and will only list headings that occur after it on the page.
To create a table of contents, enter the following macro:
Example of table of contents macro