The CreateToc plugin allows to create a dynamical Table of Contents of all headers. It also allows to number the headers in the page.

The headers might be in classic Phpwiki syntax or in Wikicreole/Mediawiki syntax (see below).

The Table of Contents can easily be inserted by clicking on the TOC button in the Edit toolbar.

Usage

<<CreateToc arguments>>

Arguments

Plugin 'MediawikiTable' does not exist.

Headers

Syntax: a comma-separated list of levels. !!!,!!,! also allowed

Plugin 'MediawikiTable' does not exist.

Examples

Default values

<<CreateToc>>

Only two levels of headers

<<CreateToc headers=1,2>>

Table of Contents with hierarchical numbering

<<CreateToc with_counter=1>>

No Table of Contents, but headers are numbered

<<CreateToc notoc=1>>

Table of Contents with hierarchical numbering, first level in roman

<<CreateToc with_counter=1 firstlevelstyle=roman>>

See Also

Known Problems


PhpWikiDocumentation CategoryWikiPlugin

PHP Warning

Warning: "include_once(lib/plugin/MediawikiTable.php): failed to open stream: No such file or directory" (...repeated 2 times)