You can insert a Table of Contents into your page by using a special wiki tag. It will be automatically populated with all the headers on a page. The placement of the Table of Contents is determined by where you put the tag in the page.
Insert
[[Special::TOC]] on a line by itself in a page to add a Table of Contents.
The Table of Contents expects the first header on a page to be a Level 1 header. If you use any other level header first, that header and any headers after it will be represented by hash marks until a Level 1 header is encountered. From that point on, the headers will be numbered properly.
Create a page with these contents::
[[Special::TOC]]
To add a Table of Contents to a page.
= My level one header
== My level two header
=== My level three header
==== My level four header
===== My level five header
====== My level six header
When you save the page, there will be a Table of Contents that looks like this at the top of the page:
Table of Contents
1. My level one header
1. My level two header
2. My next level two header
1. My level three header
1. My level four header
1. My level five header
1. My level six header