NIH | National Cancer Institute | NCI Wiki  

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Wiki Markup
{scrollbar:icons=false}

...

A hierarchy of small wiki pages is easier to maintain than one large wiki 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. 

Panel
titleContents of this page

Table of Contents
minLevel2

...

Avoid putting a Table of Contents macro on a page that is to be reused on another page via the Include Page macro, because the links will not work on the page where the Table of Contents macro is included. 

Create a new page with a table of contents

...

  1. Open the wiki page that will be the parent page of the new page
  2. Click

...

  1. the Create Content icon in the upper right corner of the page. Select the New NCI Wiki Page template. Click Create. The editing window opens. The page already has two sample headings with sample text, and a Table of Contents macro within a Panel macro. 
  2. Click Save. The table of contents appears. 
  3. Edit the page to meet your requirements. For more information, refer to Editing a Page.

...

  1.  

The Table of Contents macro creates a table of contents

...

At the place based on the headings on the page where you want the . For instructions on adding a table of contents to appear type as much of the following as needed to open the list of available macros; select the panel macro.

Code Block
{panel

Position the cursor in the panel macro text box, and type the following.

Code Block
{toc

Click the Table of Contents macro and complete the properties to set the minimum and maximum heading levels to include in the table of contents.

an existing page, refer to the following Atlassian help page:

Show If
groupGP-CFW_ADMINS

7.3

 Table of Contents Macro

Multiexcerpt include
MultiExcerptNameExitDisclaimer
nopaneltrue
PageWithExcerptwikicontent:Exit Disclaimer to Include

Add headings to an existing page

If the page does not already have headings, you can add them. For example, to add a level 1 heading: 

  1. Type the following. 

    Code Block
    h1.
  2. Type your heading text. 

...