mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-02-02 04:09:09 +00:00
42 lines
1.3 KiB
Plaintext
42 lines
1.3 KiB
Plaintext
created: 20240213183404352
|
|
modified: 20240723104436360
|
|
tags: testTOC
|
|
title: test-Contents-toc-hide
|
|
type: text/vnd.tiddlywiki
|
|
|
|
<<wikitext-example-without-html src:"""\procedure openBranch()
|
|
<<toc-openBranch path:"/" currentTiddler:"test-Contents-toc-hide" manual:yes>>
|
|
\end
|
|
|
|
\procedure closeBranch()
|
|
<<toc-closeBranch path:"/" currentTiddler:"test-Contents-toc-hide" manual:yes>>
|
|
\end
|
|
|
|
<$button actions=<<openBranch>>>Open Tree</$button>
|
|
|
|
<$button actions=<<closeBranch>>>Close Tree</$button>
|
|
""">>
|
|
|
|
[[toc-1.1.1-hidden]] contains a field: `toc-hide: yes`
|
|
|
|
The following examples uses the `toc-hide: yes` field in the currentTiddler to exclude a tiddler from the current branch
|
|
|
|
<<wikitext-example-without-html src:"""<div class="tc-table-of-contents">
|
|
<<toc-selective-expandable tag:"test-Contents-toc-hide">>
|
|
</div>""">>
|
|
|
|
The following examples uses: `exclude:"[toc-hide[yes]]"`, which allows you to use any field name with a specific value to be excluded from every branch
|
|
|
|
<<wikitext-example-without-html src:"""<div class="tc-table-of-contents">
|
|
<<toc-selective-expandable tag:"test-Contents-toc-hide" exclude:"[toc-hide[yes]]">>
|
|
</div>""">>
|
|
|
|
----------
|
|
|
|
simple toc as a reference
|
|
|
|
<<wikitext-example-without-html src:"""<div class="tc-table-of-contents">
|
|
<<toc "test-Contents-toc-hide">>
|
|
</div>""">>
|
|
|