diff --git a/core/wiki/macros/toc.tid b/core/wiki/macros/toc.tid index b55ad04f2..fb3008c26 100644 --- a/core/wiki/macros/toc.tid +++ b/core/wiki/macros/toc.tid @@ -9,6 +9,10 @@ tags: $:/tags/Macro \function tf.toc-stateTitle() [[$:/state/toc]addsuffixaddsuffix[/]addsuffix] +\function tf.toc-newPath() [addsuffix[/]addsuffix] + + +\function tf.toc-getItemClass() [get[text]matchthen[toc-item-selected]else[toc-item]] \procedure toc-caption() @@ -20,9 +24,6 @@ tags: $:/tags/Macro \end - -\function tf.toc-newPath() [addsuffix[/]addsuffix] - \procedure toc-body(tag,sort:"",itemClassFilter,exclude,path)
    @@ -48,6 +49,10 @@ tags: $:/tags/Macro
\end + \procedure toc(tag,sort:"",itemClassFilter:"",exclude) <$macrocall $name="toc-body" tag=<> sort=<> itemClassFilter=<> exclude=<>/> \end @@ -107,6 +112,9 @@ tags: $:/tags/Macro \end + \procedure toc-expandable(tag,sort:"",itemClassFilter:"",exclude,path) <$let path=<>> <$set name="excluded" filter="[subfilter] []"> @@ -153,9 +161,6 @@ tags: $:/tags/Macro \end - -\function tf.toc-getItemClass() [get[text]matchthen[toc-item-selected]else[toc-item]] - \procedure toc-unlinked-selective-expandable-body(tag,sort:"",itemClassFilter,exclude,path) <$qualify name="toc-state" title=<> >
  • >> @@ -179,6 +184,10 @@ tags: $:/tags/Macro \end + \procedure toc-selective-expandable(tag,sort:"",itemClassFilter,exclude,path) <$let tag=<> sort=<> itemClassFilter=<> path=<>> <$set name="excluded" filter="[subfilter] []"> @@ -202,6 +211,10 @@ tags: $:/tags/Macro \end + \procedure toc-tabbed-external-nav(tag,sort:"",selectedTiddler:"$:/temp/toc/selectedTiddler",unselectedText,missingText,template:"",exclude) <$tiddler tiddler={{{ [get[text]] }}}>
    @@ -232,6 +245,10 @@ tags: $:/tags/Macro \end + \procedure toc-tabbed-internal-nav(tag,sort:"",selectedTiddler:"$:/temp/toc/selectedTiddler",unselectedText,missingText,template:"",exclude) <$linkcatcher to=<>> <$macrocall