archive_me1Add my vote for this tag stale_content2Add my vote for this tag create new tag
, view all tags

Implemented: New title parameter for TOC variable

Documentation in TWikiVariables, changed content indicated in red:

%TOC{"SomeTopic" ...}% Table of Contents. Shows a TOC that is generated automatically based on headings of a topic. Headings in WikiSyntax ("---++ text") and HTML ("<h2>text</h2>") are taken into account. Any heading text after "!!" is excluded from the TOC; for example, write "---+!! text" if you do not want to list a header in the TOC. Supported parameters:
Parameter: Description: Default:
"TopicName" topic name Current topic
web="Name" Name of web Current web
depth="2" Limit depth of headings shown in TOC 6
title="Some title" Title to appear at top of TOC none
Examples: %TOC{depth="2"}%, %TOC{"TWikiDocumentation" web="TWiki06x00" title="Contents:" }%

Test style if you want to test the TOC:

.TWikiToc { font-size: 95%; line-height: 1.3em; margin: 2em 0 2.5em 0; padding: 0; }
.TWikiToc li { margin-left: 1em; }
.TWikiToc a:link, #twikitoc a:visited { text-decoration: none; }
.TWikiToc a:hover { text-decoration: underline; }
.TWikiToc ul { list-style: outside; margin: 0; padding: 0 0 0 0.5em; }
.TWikiToc .title { margin: 0; padding: 0; font-weight: bold; color:orange; }

Patch: patch_TOC_heading4.diff (revised, in CVS)

-- ArthurClemens - 05 Jan 2004
-- PeterThoeny - 08 Jan 2004

test headers:

Test heading h1

Test heading h2 This text is ignored for the TOC.

Test heading h3

Test heading h2

Removed brainstorming and comments; see topic history.
Changed id=twikitoc to class=TWikiToc to maintain uniform CSS tagging.

-- ArthurClemens - 10 Apr 2004

Topic attachments
I Attachment History Action Size Date Who Comment
Unknown file formatdiff patch_TOC_heading.diff r1 manage 0.7 K 2004-01-05 - 17:59 ArthurClemens Patch to add a heading parameter to TOC
Unknown file formatdiff patch_TOC_heading2.diff r1 manage 1.1 K 2004-01-08 - 08:47 PeterThoeny Revised patch, in CVS
Unknown file formatdiff patch_TOC_heading3.diff r2 r1 manage 1.1 K 2004-01-06 - 15:20 ArthurClemens Revision of patch 2
Unknown file formatdiff patch_TOC_heading4.diff r1 manage 1.1 K 2004-01-08 - 08:47 PeterThoeny Revised patch, in CVS
Edit | Attach | Watch | Print version | History: r14 < r13 < r12 < r11 < r10 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r14 - 2005-06-28 - JosieMcGeever
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2016 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.