NIH | National Cancer Institute | NCI Wiki  

Error rendering macro 'rw-search'

null

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 23 Next »

Contents
Add a table of contents to a new page

Click Add Page and then the link to Select a page template to start from. Select the table of contents template. When you save the page the table of contents is displayed. The page has a table of contents in the left column. You can edit the markup to meet your requirements.

Add a table of contents to an existing page

Add markup like the following at the place on the page where you want the table of contents to appear:

{panel:title=Contents}
{toc:minLevel=5}
{panel}

OR

{panel:title=Contents}
{toc:maxLevel=2}
{panel}

In the markup, enter either the minimum heading level to include in the table of contents, or the maximum number of levels to show in the table of contents.

Save the text to see the table of contents; the preview does not show it until the page has been saved.

You may also copy the markup on the page with minimal markup for a table of contents. This page provides markup for a table of contents in the left column.

First heading at second level

Some level two text to demonstrate the table of contents.

Second heading at second level

More level two text to demonstrate the table of contents.

  • No labels