Changes between Version 45 and Version 46 of TocMacro
- Timestamp:
- Jan 21, 2014, 6:53:34 AM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TocMacro
v45 v46 13 13 }}} 14 14 15 To generate a table of contents for a set of pages, simply pass them as comma separated arguments to the TOC macro . This is the macro call for the table of contents visible on the right side of this page:15 To generate a table of contents for a set of pages, simply pass them as comma separated arguments to the TOC macro, e.g. as in 16 16 17 17 {{{ 18 [[TOC(TracGuide, TracInstall, TracUpgrade, TracIni, TracAdmin, TracBackup, TracLogging, 19 TracPermissions, TracWiki, WikiFormatting, TracBrowser, TracRoadmap, TracChangeset, 20 TracTickets, TracReports, TracQuery, TracTimeline, TracRss, TracNotification)]] 18 [[TOC(TracGuide, TracInstall, TracUpgrade, TracIni, TracAdmin, TracBackup, 19 TracLogging, TracPermissions, TracWiki, WikiFormatting, TracBrowser, 20 TracRoadmap, TracChangeset, TracTickets, TracReports, TracQuery, 21 TracTimeline, TracRss, TracNotification)]] 21 22 }}} 22 23 23 24 A wildcard '*' can be used to fetch a sorted list of all pages starting with the preceding pagename stub (Since [2801]): 24 A wildcard `*` can be used to fetch a sorted list of all pages starting with the preceding pagename stub: 25 25 26 26 {{{ … … 28 28 }}} 29 29 30 For 'titleindex' argument, an empty pagelist will evaluate to all pages (Since [2801]): 30 The following ''control'' arguments change the default behaviour of the TOC macro: 31 ||= Argument =||= Description =|| 32 || `heading=<x>` || Override the default heading of "Table of Contents" || 33 || `noheading` || Suppress display of the heading. || 34 || `depth=<n>` || Display headings of ''subsequent'' pages to a maximum depth of '''<n>'''. || 35 || `inline` || Display TOC inline rather than as a side-bar. || 36 || `sectionindex` || Only display the page name and title of each page in the wiki section. || 37 || `titleindex` || Only display the page name and title of each page, similar to TitleIndex. || 38 || `notitle` || Supress display of page title. || 39 || `reverse` || Display TOC sorted in reversed order. //(Since 11.0.0.4)// || 40 41 For `titleindex` argument, an empty pagelist will evaluate to all pages: 31 42 32 43 {{{ … … 34 45 }}} 35 46 36 'sectionindex' allows to generate a title index for all pages in a given section of the wiki. A section is defined by wiki page name, using '/' as a section level delimiter (like directories in a file system). Giving '/' or '*' as the page name produces the same result as 'titleindex' (title of all pages). If a page name ends with a '/', only children of this page will be processed. Else the page given in the argument is also included, if it exists. For 'sectionindex'argument, an empty pagelist will evaluate to all page below the same parent as the current page:47 The `sectionindex` argument allows a title index to be generated for all pages in a given section of the wiki. A section is defined by wiki page name, using `/` as a section level delimiter (like directories in a file system). Giving `/` or `*` as the page name produces the same result as `titleindex` (title of all pages). If a page name ends with a `/`, only children of this page will be processed. Otherwise, the page given in the argument is also included, if it exists. For `sectionindex` argument, an empty pagelist will evaluate to all page below the same parent as the current page: 37 48 38 49 {{{ 39 50 [[TOC(sectionindex, notitle, heading=This section pages)]] 40 51 }}} 41 42 The following ''control'' arguments change the default behaviour of the TOC macro (Since [22]):43 44 || '''Argument''' || '''Meaning''' ||45 || `heading=<x>` || Override the default heading of "Table of Contents" or "Page Index" for titleindex. ||46 || `noheading` || Suppress display of the heading. ||47 || `depth=<n>` || Display headings of ''subsequent'' pages to a maximum depth of '''<n>'''. ||48 || `inline` || Display TOC inline rather than as a side-bar. ||49 || `sectionindex`|| Only display the page name and title of each page for all pages in a given section. (Since [3417]). ||50 || `titleindex`|| Only display the page name and title of each page, similar to TitleIndex. (Since [37]). ||51 || `notitle` || Supress display of page title (Since [2801]). ||52 52 53 53 == Bugs/Feature Requests == … … 63 63 #!sh 64 64 easy_install http://trac-hacks.org/svn/tocmacro/0.10 # 0.10 65 easy_install http://trac-hacks.org/svn/tocmacro/0.11 # 0.11 and 0.1265 easy_install http://trac-hacks.org/svn/tocmacro/0.11 # 0.11, 0.12, 1.0 66 66 }}} 67 67