Table of contents
Alert
Dynamic blocks work in dynamic tables and on pages created in the old editor.
Wiki pages created in the old editor may automatically generate a table of contents based on headings. This is done using a dynamic block named toc
.
Adding a table of contents for a page
-
Make sure your page is created in the old editor.
-
Make sure the page headings are marked up properly. To quickly view the table of contents for a page, click in the right-hand panel.
If there are matching headers on the page, the links in the table of contents may not work correctly. -
Create a table of contents using a dynamic block:
{{toc}}
By default, all headings of the current Wiki page are added to the table of contents. You can configure the additional TOC settings using the advanced parameters.
Here is an example of a table of contents that includes first (
h1
) to third (h3
) level headings:{{toc from="h1" to="h3"}}
Block parameters (optional)
Parameter | Description |
---|---|
from |
Highest level of headings to be included first in the table of contents |
to |
Lowest level of headings to be included last in the table of contents |
page |
Relative address of the table of contents source page, e.g., userName/pageName/ ; default address of the page where the toc block is added |
Adding a table of contents for a page group
There are two ways to add a table of contents:
-
Following the guide.
-
Using links:
WikiMarkdown((<link> <page_name>))
[<page_name>](<link>)