Changes between Version 3 and Version 4 of WikiTipsAndTricks
- Timestamp:
- 2009-08-22T11:26:56+02:00 (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
WikiTipsAndTricks
v3 v4 1 1 [[TOC]] 2 2 3 == Create a table of contents == 3 == Generate a table of contents == 4 See http://trac-hacks.org/wiki/TocMacro 4 5 5 Using http://trac-hacks.org/wiki/TocMacro 6 The TocMacro generates a table of contents for the current page or a set of pages. 6 7 7 8 If no arguments are given, a table of contents is generated for the current page, with the top-level title stripped: 8 9 9 10 10 {{{ 11 11 [[TOC]] 12 12 }}} 13 13 14 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: 14 15 16 {{{ 17 [[TOC(TracGuide, TracInstall, TracUpgrade, TracIni, TracAdmin, TracBackup, TracLogging, 18 TracPermissions, TracWiki, WikiFormatting, TracBrowser, TracRoadmap, TracChangeset, 19 TracTickets, TracReports, TracQuery, TracTimeline, TracRss, TracNotification)]] 20 }}} 15 21 16 {{{17 [[TOC(TracGuide, TracInstall, TracUpgrade, TracIni, TracAdmin, TracBackup, TracLogging, TracPermissions, TracWiki, WikiFormatting, TracBrowser, TracRoadmap, TracChangeset, TracTickets, TracReports, TracQuery, TracTimeline, TracRss, TracNotification)]]18 }}}19 A wildcard '*' can be used to fetch a sorted list of all pages starting with the preceding pagename stub (Since [http://trac-hacks.org/changeset/2801 "[2801]"]):20 22 23 A wildcard '*' can be used to fetch a sorted list of all pages starting with the preceding pagename stub (Since [2801]): 21 24 22 25 {{{