Page TOC Template

This builtin template shows the Table of content for headers h2 to h5 (by default) in any page.

To use it, just type :

{{{Template:PageTOC[|Level number]}}}

Level number is an optional argument to set the maximum header to show:

  • 2: display up to h2.
  • 3: display up to h3.
  • 4: display up to h4.
  • 5: display up to h5.

Make sure you have commit #774 or higher and execute the GXwiki Initialization procedure to register the new template.