You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: editions/tw5.com/tiddlers/macros/TableOfContentsMacro.tid
+4-1Lines changed: 4 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
created: 20140919155729620
2
-
modified: 20240624102502089
2
+
modified: 20260124130054271
3
3
tags: Macros [[Core Macros]]
4
4
title: Table-of-Contents Macros
5
5
type: text/vnd.tiddlywiki
@@ -74,6 +74,9 @@ These two parameters are combined into a single [[filter expression|Filter Expre
74
74
; exclude <<.from-version "5.3.0">>
75
75
: This optional parameter can be used to exclude tiddlers from the TOC list. It allows a [[Title List]] or a <<.olink subfilter>>. Eg: `exclude:"HelloThere [[Title with spaces]]"` or `exclude:"[has[excludeTOC]]"`. Where the former will exclude two tiddlers and the later would exclude every tiddler that has a field <<.field excludeTOC>> independent of its value.<br>''Be aware'' that eg: `[prefix[H]]` is a shortcut for `[all[tiddlers]prefix[H]]`, which can have a performance impact, if used carelessly. So use $:/AdvancedSearch -> ''Filters'' tab to test the <<.param exclude>> parameter
76
76
77
+
; level <<.from-version "5.4.0">>
78
+
: This optional parameter can be used to define how many toc levels are shown by the toc-macro. By default all levels are shown.
* The [[toc-macro|Table-of-Contents Macros]] now supports a ''level'' parameter, that allows us to limit the [[toc-levels|Table-of-Contents Macros (Examples)]], that are listed.
14
+
* If the level parameter is active, levels, which have children will show a level indicator at the front. By default it uses the core "+" icon
0 commit comments