There are several long pages in this wiki with a table of contents. This page has little content to make it easy to copy the markup to create a table of contents for a page. The markup is at the top and the bottom of the page. In the markup, enter the maximum number of levels to show in the table of contents, here 2. Save the text to see the table of contents; the preview does not show it until the page has been saved.
First heading one
Some text.
First heading two
Some level two text.
Second heading two
Second level two text.
Second and last heading one
Second and last level one text.