title: $:/core/macros/toc tags: $:/tags/Macro \define toc(tag,sort:"")
    <$list filter="[tag[$tag$]$sort$]">
  1. <$link> <$view field="caption"> <$view field="title"/> <$macrocall $name="toc" tag=<>/>
\end \define toc-expandable-body(tag,sort:"") <$set name="toc-state" value=<>>
  • <$link> <$reveal type="nomatch" state=<> text="open"> <$button set=<> setTo="open" class="tc-btn-invisible"> {{$:/core/images/right-arrow}} <$reveal type="match" state=<> text="open"> <$button set=<> setTo="close" class="tc-btn-invisible"> {{$:/core/images/down-arrow}} <$view field="caption"> <$view field="title"/> <$reveal type="match" state=<> text="open"> <$macrocall $name="toc-expandable" tag=<> sort="$sort$"/>
  • \end \define toc-expandable(tag,sort:"")
      <$list filter="[tag[$tag$]$sort$]"> <>
    \end \define toc-selective-expandable-body(tag,sort:"") <$set name="toc-state" value=<>>
  • <$link> <$list filter="[all[current]tagging[]limit[1]]" emptyMessage="<$button class='tc-btn-invisible'>{{$:/core/images/blank}}"> <$reveal type="nomatch" state=<> text="open"> <$button set=<> setTo="open" class="tc-btn-invisible"> {{$:/core/images/right-arrow}} <$reveal type="match" state=<> text="open"> <$button set=<> setTo="close" class="tc-btn-invisible"> {{$:/core/images/down-arrow}} <$view field="caption"> <$view field="title"/> <$reveal type="match" state=<> text="open"> <$macrocall $name="toc-selective-expandable" tag=<> sort="$sort$"/>
  • \end \define toc-selective-expandable(tag,sort:"")
      <$list filter="[tag[$tag$]$sort$]"> <>
    \end