Version 17 (modified by minondoa, 5 years ago) (diff)

--

# The Sandbox

This is just a page to practice and learn WikiFormatting.

This has a pointer.

### [[TOC]]

Generate a table of contents for the current page or a set of pages. If no arguments are given, a table of contents is generated for the current page, with the top-level title stripped:

[[TOC]]

To generate a table of contents for a set of pages, simply pass them as comma separated arguments to the TOC macro, e.g. as in

TracLogging, TracPermissions, TracWiki, WikiFormatting, TracBrowser,

A wildcard '*' can be used to fetch a sorted list of all pages starting with the preceding pagename stub:

[[TOC(Trac*, WikiFormatting, WikiMacros)]]

The following control arguments change the default behaviour of the TOC macro:

 Argument Meaning heading= Override the default heading of "Table of Contents" noheading Suppress display of the heading. depth= Display headings of subsequent pages to a maximum depth of . inline Display TOC inline rather than as a side-bar. sectionindex Only display the page name and title of each page in the wiki section. titleindex Only display the page name and title of each page, similar to TitleIndex. notitle Supress display of page title.

For 'titleindex' argument, an empty pagelist will evaluate to all pages: