Wiki source code of Table of Contents

Version 2.1 by Leon Poon on 2019/04/20 06:15

Hide last authors
Leon Poon 1.1 1 **Table of Contents Macro** generates a table of contents for the page headings. [[Learn more>>http://extensions.xwiki.org/xwiki/bin/view/Extension/TOC+Macro]]
2
Leon Poon 2.1 3 = Description =
Leon Poon 1.1 4
Leon Poon 2.1 5 The following examples use the current page structure constituted by two sections and three subsections.
Leon Poon 1.1 6
Leon Poon 2.1 7 Learn more about structuring a page with headings [[on the syntax page.>>https://www.xwiki.org/xwiki/bin/view/Documentation/UserGuide/Features/XWikiSyntax/?syntax=2.1&section=Headings]]
Leon Poon 1.1 8
Leon Poon 2.1 9 = Macro Table of Contents Examples =
Leon Poon 1.1 10
Leon Poon 2.1 11 == Simple Table of Contents ==
Leon Poon 1.1 12
13 {{example}}
14 {{toc/}}
15 {{/example}}
16
Leon Poon 2.1 17 == Table of Contents with a starting point ==
18
Leon Poon 1.1 19 {{example}}
20 {{toc start="2"/}}
21 {{/example}}
22
Leon Poon 2.1 23 == Table of Contents inside a box ==
24
Leon Poon 1.1 25 {{example}}
26 {{box cssClass="floatinginfobox"}}
27 {{toc/}}
28 {{/box}}
29 {{/example}}