Changes for page Table of Contents
Last modified by Travis Tran on 2019/07/22 13:07
edited by Xwiki Admin
on 2018/03/14 16:00
on 2018/03/14 16:00
edited by Travis Tran
on 2019/07/22 13:07
on 2019/07/22 13:07
Change comment: Install extension [org.xwiki.contrib:application-help-center/1.5.1]
Summary
-
Page properties (3 modified, 0 added, 0 removed)
Details
- Page properties
-
- Title
-
... ... @@ -1,1 +1,1 @@ 1 - Tableof Contents1 +$services.localization.render('help.macros.toc.title') - Author
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki. XwikiAdmin1 +XWiki.ttran - Content
-
... ... @@ -1,25 +1,31 @@ 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]] 1 +{{velocity}} 2 +$services.localization.render('help.macros.toc',['**']) [[$services.localization.render('help.more.label')>>http://extensions.xwiki.org/xwiki/bin/view/Extension/TOC+Macro]] 2 2 3 -{{example}} 4 -= Section 1 = 4 += $services.localization.render('help.macros.toc.description.title') = 5 5 6 - ==Sub-Section1.1=6 +$services.localization.render('help.macros.toc.description.content', ['[[','>>https://www.xwiki.org/xwiki/bin/view/Documentation/UserGuide/Features/XWikiSyntax/?syntax=2.1§ion=Headings]]']) 7 7 8 -= =Sub-Section1.2==8 += $services.localization.render('help.macros.toc.examples.title') = 9 9 10 -= Section 2 = 10 +== $services.localization.render('help.macros.toc.simple') == 11 +{{/velocity}} 11 11 12 -= Section 3 = 13 -{{/example}} 14 - 15 15 {{example}} 16 16 {{toc/}} 17 17 {{/example}} 18 18 17 +{{velocity}} 18 +== $services.localization.render('help.macros.toc.startingPoint') == 19 +{{/velocity}} 20 + 19 19 {{example}} 20 20 {{toc start="2"/}} 21 21 {{/example}} 22 22 25 +{{velocity}} 26 +== $services.localization.render('help.macros.toc.insideBox') == 27 +{{/velocity}} 28 + 23 23 {{example}} 24 24 {{box cssClass="floatinginfobox"}} 25 25 {{toc/}}
Table of Contents Macro generates a table of contents for the page headings. Learn more
Section 1
Sub-Section 1.1
Sub-Section 1.2
Section 2
Section 3
= Section 1 =
== Sub-Section 1.1 ==
== Sub-Section 1.2 ==
= Section 2 =
= Section 3 =
== Sub-Section 1.1 ==
== Sub-Section 1.2 ==
= Section 2 =
= Section 3 =
{{toc start="2"/}}
Description
The following examples use the current page structure constituted by two sections and three subsections. Learn more about structuring a page with headings on the syntax page.
Macro Table of Contents Examples
Simple Table of Contents
Table of Contents with a starting point
Table of Contents inside a box
{{box cssClass="floatinginfobox"}}
{{toc/}}
{{/box}}
{{toc/}}
{{/box}}