Wiki source code of Table of Contents

Version 2.1 by Thomas Mortagne on 2019/05/03 11:19

Show last authors
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
3 = Description =
4
5 The following examples use the current page structure constituted by two sections and three subsections.
6
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]]
8
9 = Macro Table of Contents Examples =
10
11 == Simple Table of Contents ==
12
13 {{example}}
14 {{toc/}}
15 {{/example}}
16
17 == Table of Contents with a starting point ==
18
19 {{example}}
20 {{toc start="2"/}}
21 {{/example}}
22
23 == Table of Contents inside a box ==
24
25 {{example}}
26 {{box cssClass="floatinginfobox"}}
27 {{toc/}}
28 {{/box}}
29 {{/example}}