Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changes between Version 11 and Version 12 of WikiFormatting


Ignore:
Timestamp:
Mar 22, 2006, 3:18:59 PM (19 years ago)
Author:
patrick
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • WikiFormatting

    v11 v12  
    6868[[ChangeLog(/trunk, 5)]]
    6969
    70  
     70
     71== Trac Hack: Table of Content ==
     72The TocMacro generates a table of contents for the current page or a set of pages.
     73
     74If no arguments are given, a table of contents is generated for the current page, with the top-level title stripped:
     75
     76{{{
     77[[TOC]]
     78}}}
     79[[TOC]]
     80To 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:
     81
     82{{{
     83[[TOC(TracGuide, TracInstall, TracUpgrade, TracIni, TracAdmin, TracBackup, TracLogging,
     84TracPermissions, TracWiki, WikiFormatting, TracBrowser, TracRoadmap, TracChangeset,
     85TracTickets, TracReports, TracQuery, TracTimeline, TracRss, TracNotification)]]
     86}}}
     87
     88The following ''control'' arguments change the default behaviour of the TOC macro[[FootNote(Supported from [22])]]:
     89
     90|| '''Argument''' || '''Meaning''' ||
     91|| {{{heading=<x>}}} || Override the default heading of "Table of Contents" ||
     92|| {{{noheading}}} || Suppress display of the heading. ||
     93|| {{{depth=<n>}}} || Display headings of ''subsequent'' pages to a maximum depth of '''<n>'''. ||
     94|| {{{inline}}} || Display TOC inline rather than as a side-bar. ||
     95|| {{{titleindex}}}[[FootNote(Supported since [37])]] || Only display the page name and title of each page, similar to TitleIndex. ||
     96
     97
     98
    7199
    72100== Font styles ==