From 8d48e194cf5cdd5ba29e3996faaf9de1618f8e5d Mon Sep 17 00:00:00 2001 From: gernert Date: Thu, 25 Sep 2014 10:23:03 +0200 Subject: [PATCH] Update TableOfContentsMacro.tid Seen the many questions in the group, the TableOfContentsMacro is a hot item but a bit difficult to understand. I thought a graphical representation with the real tags for the examples might help. --- .../tw5.com/tiddlers/macros/TableOfContentsMacro.tid | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/editions/tw5.com/tiddlers/macros/TableOfContentsMacro.tid b/editions/tw5.com/tiddlers/macros/TableOfContentsMacro.tid index 080ad788f..7b2f21cc2 100644 --- a/editions/tw5.com/tiddlers/macros/TableOfContentsMacro.tid +++ b/editions/tw5.com/tiddlers/macros/TableOfContentsMacro.tid @@ -34,5 +34,16 @@ The ''tag'' and ''sort'' parameters are combined to make a filter expression of ``` ! Examples +The top level entries of the table of contents examples are defined by the root tag 'Contents'
+The subentries under each of those entries are tagged with the title of the entry, here 'First', 'Second', 'Third', and 'Fourth'. One level deeper only '~SecondThree' has subentries. + +Graphically, shown with - clickable - tag pills: + +{{Contents||$:/core/ui/TagTemplate}} +*{{First||$:/core/ui/TagTemplate}} +*{{Second||$:/core/ui/TagTemplate}} +**{{SecondThree||$:/core/ui/TagTemplate}} +*{{Third||$:/core/ui/TagTemplate}} +*{{Fourtth||$:/core/ui/TagTemplate}} <>