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 page with sections. However, if you want to divide your content into sections within a single wiki page, consider using numbered headings. 

The numbered headings plugin provides the numberedheadings Numbered Headings macro, which makes it possible to number the headings on a page. The following numbered headings are created with the macro. These headings on the page must start at level one.

The markup is:

...

.

...

The following parameters are available, used in the format {numberedheadings:parameter=value}.

  • number-format= any of the formats that follow:
    • decimal (default) - 1, 2, 3, 4, etc.
    • full-decimal - one, two, three, four, etc.
    • lower-latin - a, b, c, d, etc.
    • lower-roman - i, ii, iii, iv, etc.
    • lower-greek - ?, ?, ?, ?, etc.
    • upper-latin - A, B, C, D, etc.
    • upper-roman - I, II, III, IV, etc.
    • upper-greek - ?, ?, ?, ?, etc.
    • custom - refer to the documentation
  • start-numbering-at= the desired heading level
  • start-numbering-with= the desired integer

To embed the page title at level one and use the numberedheadings macro, use the toc-zone macro. The general form is:

Code Block
{toc-zone:type:=[list,flat]|maxLevel=1}
Content in the zone, including other macros and page content.
{toc-zone}

The zone starts after the embedded page title.

The following numbered headings are created with the macro.

Info

To embed the page title at heading level one

  • Type the page title after the first heading at level one.
  • Create the table of contents within the Numbered Headings macro panel.
  • Specify the minimum level as two.
  • In the parameters of the Numbered Headings macro, set the initial level for numbering to heading level 2, and enter the number to start with, 1. Then create the other headings starting with heading level two.
Wiki Markup
{scrollbar:icons=false}