diff --git a/editions/tw5.com/tiddlers/Examples_TOC_SimpleToc b/editions/tw5.com/tiddlers/Examples_TOC_SimpleToc new file mode 100644 index 000000000..a19e2efc2 --- /dev/null +++ b/editions/tw5.com/tiddlers/Examples_TOC_SimpleToc @@ -0,0 +1,42 @@ +title: Narrative + +* The following code defines a "Simple Table of Contents" using "root" as the base tag. +* Click through all the tabs to get additional info + +{{Narrative-extended}} + ++ +title: root +list: First Third Fourth + +The list-field in the "root" tag-tiddler can be used to define the "sort order" of the TOC ++ +title: First +tags: root + +1st 1st 1st 1st 1st ++ +title: Second +tags: First + +2nd 2nd 2nd 2nd 2nd ++ +title: Third +tags: root + +3rd 3rd 3rd 3rd 3rd ++ +title: Fourth +caption: fourth-caption +tags: root + +4th 4th 4th 4th 4th + +This tiddler contains a caption, which will be shown in the TOC instead of the tiddler title ++ +title: Output + +
+<> +
+ diff --git a/editions/tw5.com/tiddlers/Examples_TOC_SimpleToc.meta b/editions/tw5.com/tiddlers/Examples_TOC_SimpleToc.meta new file mode 100644 index 000000000..3a06eb2fd --- /dev/null +++ b/editions/tw5.com/tiddlers/Examples_TOC_SimpleToc.meta @@ -0,0 +1,7 @@ +created: 20240724070813184 +description: Simple TOC +display-format: wikitext +modified: 20240724100513345 +tags: $:/tags/wiki-test-spec +title: Examples/TOC/SimpleToc +type: text/vnd.tiddlywiki-multiple \ No newline at end of file diff --git a/editions/tw5.com/tiddlers/Examples_TOC_SimpleToc_captionField.tid b/editions/tw5.com/tiddlers/Examples_TOC_SimpleToc_captionField.tid new file mode 100644 index 000000000..7f93e51e5 --- /dev/null +++ b/editions/tw5.com/tiddlers/Examples_TOC_SimpleToc_captionField.tid @@ -0,0 +1,20 @@ +created: 20240724082221230 +modified: 20240724100646572 +tags: +title: Examples/TOC/SimpleToc/captionField +type: text/vnd.tiddlywiki + +<$testcase testOutput="Output"> + +<$data title="Description" text="Simple TOC - captionField parameter"/> + +<$data title="Narrative-extended" text="""* The "Fifth" tiddler has an alternative "caption-field" """/> + +<$data $compound-tiddler="Examples/TOC/SimpleToc"/> + +<$data title="Fifth" tags="Fourth" text="5th" alt="alt-caption"/> + +<$data title="Output" text="""
+<> +
+"""/> diff --git a/editions/tw5.com/tiddlers/test-tags_Global-tv-toc-show-new-child.tid b/editions/tw5.com/tiddlers/test-tags_Global-tv-toc-show-new-child.tid deleted file mode 100644 index f1eef83f8..000000000 --- a/editions/tw5.com/tiddlers/test-tags_Global-tv-toc-show-new-child.tid +++ /dev/null @@ -1,8 +0,0 @@ -code-body: yes -created: 20240618150559884 -modified: 20240618150722129 -tags: $:/tags/Global -title: test-tags/Global-tv-toc-show-new-child -type: text/vnd.tiddlywiki - -\define tv-toc-show-new-child() yes \ No newline at end of file