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.
<<CreateToc arguments>>
Argument |
Description |
Default value |
---|---|---|
extracollapse |
Provide a button to hide/display the Table of Contents |
true |
firstlevelstyle |
Style of first level numbering: number, letter or roman. |
number |
headers |
Which headers to include. See below. |
1,2,3,4,5 |
indentstr |
Indent string. |
|
jshide |
Boolean if the Table of Contents should be initially hidden and on click expanded. |
false |
liststyle |
List style: dl or ol or ul. Using ol is equivalent to with_counter=1. |
dl |
noheader |
Boolean if the Table of Contents header should be omitted. |
false |
notoc |
Boolean if the Table of Contents should no be displayed (headers are numbered). |
false |
pagename |
Table of Contents of which page? |
current pagename |
position |
Where to display the Table of Contents: full, left or right. |
full |
version |
Page version |
most recent version |
width |
Width of Table of Contents (if position is left or right) |
200px |
with_counter |
Boolean if hierarchical prefixes should be added. |
false |
with_toclink |
Boolean if headers should link back to the Table of Contents. |
false |
Syntax: a comma-separated list of levels. !!!,!!,! also allowed
Level |
Phpwiki syntax |
Wikicreole/Mediawiki syntax |
HTML rendering |
---|---|---|---|
1 |
!!! |
== |
h2 |
2 |
!! |
=== |
h3 |
3 |
! |
==== |
h4 |
4 |
None |
===== |
h5 |
5 |
None |
====== |
h6 |
<<CreateToc>>
<<CreateToc headers=1,2>>
<<CreateToc with_counter=1>>
<<CreateToc notoc=1>>
<<CreateToc with_counter=1 firstlevelstyle=roman>>
The Table of Contents will be incorrect if a header contains: