1 Date: Wed, 4 May 2011 17:46:02 +0000
2 Mime-Version: 1.0 (Produced by PhpWiki 1.4.0)
3 Content-Type: application/x-phpwiki;
4 pagename=Help%2FCreateTocPlugin;
5 flags=PAGE_LOCKED%2CEXTERNAL_PAGE;
7 Content-Transfer-Encoding: binary
9 The **~CreateToc** [[Help:WikiPlugin|plugin]] allows to create a dynamical **Table of Contents** of all headers. It also allows to number the headers in the page.
11 The headers might be in classic Phpwiki syntax or in Wikicreole/Mediawiki syntax (see below).
13 The Table of Contents can easily be inserted by clicking on the TOC button in the Edit toolbar.
17 <<CreateToc arguments>>
29 | Provide a button to hide/display the Table of Contents
33 | Style of first level numbering: //number//, //letter// or //roman//.
37 | Which headers to include. See below.
45 | Boolean if the Table of Contents should be initially hidden and on click expanded.
49 | List style: //dl// or //ol// or //ul//. Using //ol// is equivalent to //with_counter=1//.
53 | Boolean if the Table of Contents header should be omitted.
57 | Boolean if the Table of Contents should no be displayed (headers are numbered).
61 | Table of Contents of which page?
65 | Where to display the Table of Contents: //full//, //left// or //right//.
73 | Width of Table of Contents (if position is //left// or //right//)
77 | Boolean if hierarchical prefixes should be added.
81 | Boolean if headers should link back to the Table of Contents.
87 Syntax: a comma-separated list of levels. !!!,!!,! also allowed
93 ! Wikicreole/Mediawiki syntax
96 | 1 || ~!~!~! || ~=~= || h2
98 | 2 || ~!~! || ~=~=~= || h3
100 | 3 || ~! || ~=~=~=~= || h4
102 | 4 || //None// || ~=~=~=~=~= || h5
104 | 5 || //None// || ~=~=~=~=~=~= || h6
109 === Default values ===
114 === Only two levels of headers ===
116 <<CreateToc headers=1,2>>
119 === Table of Contents with hierarchical numbering ===
121 <<CreateToc with_counter=1>>
124 === No Table of Contents, but headers are numbered ===
126 <<CreateToc notoc=1>>
129 === Table of Contents with hierarchical numbering, first level in roman ===
131 <<CreateToc with_counter=1 firstlevelstyle=roman>>
135 * [[PhpWikiDemo:en/TextFormattingRules]]
139 * If you include pages via [[Help:TemplatePlugin|Template]] or [[Help:IncludePagePlugin|IncludePage]] plugins, the Table of Contents will not contain the headers of the included pages.
140 * The Table of Contents will be incorrect if a header contains:
141 ** a [[Help:TemplatePlugin|Template]] plugin call via ~{~{ ~}~},
144 * If you preview the page, the Table of Contents will not be correct if you modified headers. The Table of Contents will be taken from the last saved revision.
148 [[PhpWikiDocumentation]] [[CategoryWikiPlugin]]