NIH | National Cancer Institute | NCI Wiki  

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

A hierarchy of small wiki pages is easier to maintain than one large wiki pages page with sections. However, if you want to divide your content into sections within a single wiki page, a table of contents at the top is helpful to the reader. 

...

Add a table of contents to an existing page

  1. In the page you want to change, click Edit
  2. At the place on the page where you want the table of contents to appear, type as much of the following as needed to open the macro browser. 

    Code Block
    {panel
  3. Select the Panel macro.
  4. Position the cursor in the panel macro text box, and type the following.

    Code Block
    {toc
  5. Select the Table of Contents macro. Buttons appear for that macro. Click Edit. The Edit ‘Table of Contents’ Macro dialog box appears. Complete the properties to set the minimum and maximum heading levels to include in the table of contents. Click Save.
  6. If the page does not already have headings, add them. For example, to add a level 1 heading: 

    1. Type the following. 

      Code Block
      h1.
    2. Type your heading text. 
  7. Click Save. The table of contents appears.

...