mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-12-04 15:29:56 +00:00
1 line
23 KiB
JSON
1 line
23 KiB
JSON
{"tiddlers":{"$:/plugins/wikilabs/tocP/macros":{"title":"$:/plugins/wikilabs/tocP/macros","created":"20170127103951869","modified":"20170202134116229","tags":"$:/tags/Macro","type":"text/vnd.tiddlywiki","text":"\\define tocP-open-icon() $:/core/images/down-arrow\n\\define tocP-closed-icon() $:/core/images/right-arrow\n\n\\define tocP-viewfield(viewField:\"caption\")\n\\whitespace trim\n<span class=\"tc-toc-caption\" title={{!!tooltip}}>\n<$set name=\"tv-wikilinks\" value=\"no\">\n\t<$transclude tiddler={{{ [<__viewFieldTemplate__>!is[blank]then<__viewFieldTemplate__>else<currentTiddler>] }}}\n\t\tfield=<<__viewField__>>\n\t>\n\t\t<$view field=\"title\"/>\n\t</$transclude>\n</$set>\n</span>\n\\end\n\n\\define tocP-body(tag,exclude,path,field:\"parent\",viewField,itemClassFilter:\"\",sort:\"[sort[]]\")\n\\whitespace trim\n<$let currentTiddler=<<__tag__>> >\n<ol class=\"tc-tocP\">\n\t<$list filter=\"\"\"[has<__field__>!has[draft.of]] -[<__tag__>] -[subfilter<__exclude__>] :filter[get<__field__>match<__tag__>] +[subfilter<__sort__>]\"\"\">\n\t\t<$let item=<<currentTiddler>> path={{{ [<__path__>addsuffix[/]addsuffix<__tag__>] }}}>\n\t\t\t<$set name=\"excluded\" filter=\"[subfilter<__exclude__>] [<__tag__>]\">\n\t\t\t\t<$set name=\"toc-item-class\" filter=<<__itemClassFilter__>> emptyValue=\"toc-item-selected\" value=\"toc-item\">\n\t\t\t\t\t<li class=<<toc-item-class>>>\n\t\t\t\t\t\t<$list variable=\"ignore\" filter=\"[all[current]!toc-link[no]]\" emptyMessage=\"\"\"<$macrocall $name=\"tocP-viewfield\" viewField=<<__viewField__>>/>\"\"\">\n\t\t\t\t\t\t\t<$link to={{{ [<item>get[target]else<item>] }}}>\n\t\t\t\t\t\t\t\t<$macrocall $name=\"tocP-viewfield\" viewField=<<__viewField__>>/>\n\t\t\t\t\t\t\t</$link>\n\t\t\t\t\t\t</$list>\n\t\t\t\t\t\t<$transclude tiddler=\"$:/config/wikilabs/tocP/newChild\"/>\n\t\t\t\t\t\t<$macrocall $name=\"tocP-body\" tag=<<item>> sort=<<__sort__>> itemClassFilter=<<__itemClassFilter__>> exclude=<<excluded>> path=<<path>> field=<<__field__>> viewField=<<__viewField__>>/>\n\t\t\t\t\t</li>\n\t\t\t\t</$set>\n\t\t\t</$set>\n\t\t</$let>\n\t</$list>\n</ol>\n</$let>\n\\end\n\n\\define tocP(tag,exclude,path,field,viewField,viewFieldTemplate,itemClassFilter,sort:\"[sort[]]\")\n<$macrocall $name=\"tocP-body\" tag=<<__tag__>> sort=<<__sort__>> itemClassFilter=<<__itemClassFilter__>> exclude=<<__exclude__>> field=<<__field__>> viewField=<<__viewField__>>/>\n\\end\n\n\\define tocP-linked-expandable-body(tag,exclude,path,field:\"parent\",viewField,itemClassFilter,sort:\"[sort[]]\")\n\\whitespace trim\n<!-- helper function -->\n<$qualify name=\"tocP-state\" title={{{ [[$:/state/tocP]addsuffix<__path__>addsuffix[-]addsuffix<currentTiddler>] }}}>\n\t<$set name=\"toc-item-class\" filter=<<__itemClassFilter__>> emptyValue=\"toc-item-selected\" value=\"toc-item\">\n\t\t<li class=<<toc-item-class>>>\n\t\t<$link to={{{ [<currentTiddler>get[target]else<currentTiddler>] }}}>\n\t\t\t<$reveal type=\"nomatch\" stateTitle=<<tocP-state>> text=\"open\">\n\t\t\t\t<$button setTitle=<<tocP-state>> setTo=\"open\" class=\"tc-btn-invisible tc-popup-keep tc-tiny-gap-right\">\n\t\t\t\t\t<$transclude tiddler=<<tocP-closed-icon>> />\n\t\t\t\t</$button>\n\t\t\t</$reveal>\n\t\t\t<$reveal type=\"match\" stateTitle=<<tocP-state>> text=\"open\">\n\t\t\t\t<$button setTitle=<<tocP-state>> setTo=\"close\" class=\"tc-btn-invisible tc-popup-keep tc-tiny-gap-right\">\n\t\t\t\t\t<$transclude tiddler=<<tocP-open-icon>> />\n\t\t\t\t</$button>\n\t\t\t</$reveal>\n\t\t\t<$macrocall $name=\"tocP-viewfield\" viewField=<<__viewField__>>/>\n\t\t</$link>\n\t\t<$transclude tiddler=\"$:/config/wikilabs/tocP/newChild\"/>\n\t\t<$reveal type=\"match\" stateTitle=<<tocP-state>> text=\"open\">\n\t\t\t<$macrocall $name=\"tocP-expandable\" tag=<<currentTiddler>> sort=<<__sort__>> itemClassFilter=<<__itemClassFilter__>> exclude=<<__exclude__>> viewField=<<__viewField__>> path=<<__path__>> field=<<__field__>>/>\n\t\t</$reveal>\n\t\t</li>\n\t</$set>\n</$qualify>\n\\end\n\n\\define tocP-unlinked-expandable-body(tag,exclude,path,field:\"parent\",viewField,itemClassFilter,sort:\"[sort[]]\")\n\\whitespace trim\n<!-- helper function -->\n<$qualify name=\"tocP-state\" title={{{ [[$:/state/tocP]addsuffix<__path__>addsuffix[-]addsuffix<currentTiddler>] }}}>\n\t<$set name=\"toc-item-class\" filter=<<__itemClassFilter__>> emptyValue=\"toc-item-selected\" value=\"toc-item\">\n\t\t<li class=<<toc-item-class>>>\n\t\t\t<$reveal type=\"nomatch\" stateTitle=<<tocP-state>> text=\"open\">\n\t\t\t\t<$button setTitle=<<tocP-state>> setTo=\"open\" class=\"tc-btn-invisible tc-popup-keep\">\n\t\t\t\t\t<$transclude tiddler=<<tocP-closed-icon>>/>\n\t\t\t\t\t<$macrocall $name=\"tocP-viewfield\" viewField=<<__viewField__>>/>\n\t\t\t\t</$button>\n\t\t\t</$reveal>\n\t\t\t<$reveal type=\"match\" stateTitle=<<tocP-state>> text=\"open\">\n\t\t\t\t<$button setTitle=<<tocP-state>> setTo=\"close\" class=\"tc-btn-invisible tc-popup-keep tc-tiny-gap-right\">\n\t\t\t\t\t<$transclude tiddler=<<tocP-open-icon>> />\n\t\t\t\t\t<$macrocall $name=\"tocP-viewfield\" viewField=<<__viewField__>>/>\n\t\t\t\t</$button>\n\t\t\t</$reveal>\n\t\t\t<$transclude tiddler=\"$:/config/wikilabs/tocP/newChild\"/>\n\t\t\t<$reveal type=\"match\" stateTitle=<<tocP-state>> text=\"open\">\n\t\t\t\t<$macrocall $name=\"tocP-expandable\" tag=<<currentTiddler>> sort=<<__sort__>> itemClassFilter=<<__itemClassFilter__>> exclude=<<__exclude__>> path=<<__path__>> field=<<__field__>> viewField=<<__viewField__>>/>\n\t\t\t</$reveal>\n\t\t</li>\n\t</$set>\n</$qualify>\n\\end\n\n\\define tocP-expandable-empty-message(viewField)\n<$macrocall $name=\"tocP-linked-expandable-body\" tag=<<__tag__>> sort=<<__sort__>> itemClassFilter=<<__itemClassFilter__>> field=<<__field__>> viewField=<<__viewField__>> path=<<path>> exclude=<<excluded>>/>\n\\end\n\n\\define tocP-expandable(tag,exclude,path,field:\"parent\",viewField,viewFieldTemplate,itemClassFilter,sort:\"[sort[]]\")\n\\whitespace trim\n<$let path={{{ [<__path__>addsuffix[/]addsuffix<__tag__>] }}} currentTiddler=<<__tag__>> >\n\t<$set name=\"excluded\" filter=\"[subfilter<__exclude__>] [<__tag__>]\">\n\t\t<ol class=\"tc-toc toc-expandable\">\n\t\t\t<$list filter=\"\"\"[has<__field__>!has[draft.of]] -[<__tag__>] -[subfilter<__exclude__>] :filter[get<__field__>match<__tag__>] +[subfilter<__sort__>]\"\"\">\n\t\t\t\t<$list filter=\"[all[current]toc-link[no]]\" emptyMessage=\"\"\"<$macrocall $name=\"tocP-expandable-empty-message\" viewField=<<__viewField__>>/>\"\"\" >\n\t\t\t\t\t<$macrocall $name=\"tocP-unlinked-expandable-body\" tag=<<__tag__>> sort=<<__sort__>> itemClassFilter=<<__itemClassFilter__>> viewField=<<__viewField__>> field=<<__field__>> exclude=<<excluded>> path=<<path>>/>\n\t\t\t\t</$list>\n\t\t\t</$list>\n\t\t</ol>\n\t</$set>\n</$let>\n\\end\n\n\\define tocP-linked-selective-expandable-body(tag,exclude,path,field:\"parent\",viewField,itemClassFilter,sort:\"[sort[]]\")\n\\whitespace trim\n<$qualify name=\"tocP-state\" title={{{ [[$:/state/tocP]addsuffix<__path__>addsuffix[-]addsuffix<currentTiddler>] }}}>\n\t<$set name=\"toc-item-class\" filter=<<__itemClassFilter__>> emptyValue=\"toc-item-selected\" value=\"toc-item\" >\n\t\t<li class=<<toc-item-class>>>\n\t\t\t<$link to={{{ [<currentTiddler>get[target]else<currentTiddler>] }}}>\n\t\t\t\t\t<$list filter=\"[has<__field__>] :filter[get<__field__>match<..currentTiddler>] +[limit[1]]\"\n\t\t\t\t\t\tvariable=\"ignore\"\n\t\t\t\t\t\temptyMessage=\"\"\"<$button class='tc-btn-invisible'>{{$:/core/images/blank}}</$button>\"\"\"\n\t\t\t\t\t>\n\t\t\t\t\t<$reveal type=\"nomatch\" stateTitle=<<tocP-state>> text=\"open\">\n\t\t\t\t\t\t<$button setTitle=<<tocP-state>> setTo=\"open\" class=\"tc-btn-invisible tc-popup-keep tc-tiny-gap-right\">\n\t\t\t\t\t\t<$transclude tiddler=<<tocP-closed-icon>> />\n\t\t\t\t\t\t</$button>\n\t\t\t\t\t</$reveal>\n\t\t\t\t\t<$reveal type=\"match\" stateTitle=<<tocP-state>> text=\"open\">\n\t\t\t\t\t\t<$button setTitle=<<tocP-state>> setTo=\"close\" class=\"tc-btn-invisible tc-popup-keep tc-tiny-gap-right\">\n\t\t\t\t\t\t\t<$transclude tiddler=<<tocP-open-icon>> />\n\t\t\t\t\t\t</$button>\n\t\t\t\t\t</$reveal>\n\t\t\t\t</$list>\n\t\t\t\t<$macrocall $name=\"tocP-viewfield\" viewField=<<__viewField__>>/>\n\t\t\t</$link>\n\t\t\t<$transclude tiddler=\"$:/config/wikilabs/tocP/newChild\"/>\n\t\t\t<$reveal type=\"match\" stateTitle=<<tocP-state>> text=\"open\">\n\t\t\t\t<$macrocall $name=\"tocP-selective-expandable\" tag=<<currentTiddler>> sort=<<__sort__>> itemClassFilter=<<__itemClassFilter__>> exclude=<<__exclude__>> path=<<__path__>> field=<<__field__>> viewField=<<__viewField__>>/>\n\t\t\t</$reveal>\n\t\t</li>\n\t</$set>\n</$qualify>\n\\end\n\n\\define tocP-unlinked-selective-expandable-body(tag,exclude,path,field:\"parent\",viewField,itemClassFilter,sort:\"[sort[]]\")\n\\whitespace trim\n<$qualify name=\"tocP-state\" title={{{ [[$:/state/tocP]addsuffix<__path__>addsuffix[-]addsuffix<currentTiddler>] }}}>\n\t<$set name=\"toc-item-class\" filter=<<__itemClassFilter__>> emptyValue=\"toc-item-selected\" value=\"toc-item\">\n\t\t<li class=<<toc-item-class>>>\n\t\t\t<$list filter=\"[has<__field__>] :filter[get<__field__>match<..currentTiddler>] +[limit[1]]\"\n\t\t\t\tvariable=\"ignore\"\n\t\t\t\temptyMessage=\"\"\"<$button class='tc-btn-invisible'>{{$:/core/images/blank}}</$button><$macrocall $name=\"tocP-viewfield\" viewField=<<__viewField__>>/>\"\"\"\n\t\t\t>\n\t\t\t\t<$reveal type=\"nomatch\" stateTitle=<<tocP-state>> text=\"open\">\n\t\t\t\t\t<$button setTitle=<<tocP-state>> setTo=\"open\" class=\"tc-btn-invisible tc-popup-keep\">\n\t\t\t\t\t\t<$transclude tiddler=<<tocP-closed-icon>>/>\n\t\t\t\t\t\t<$macrocall $name=\"tocP-viewfield\" viewField=<<__viewField__>>/>\n\t\t\t\t\t</$button>\n\t\t\t\t</$reveal>\n\t\t\t\t<$reveal type=\"match\" stateTitle=<<tocP-state>> text=\"open\">\n\t\t\t\t\t<$button setTitle=<<tocP-state>> setTo=\"close\" class=\"tc-btn-invisible tc-popup-keep\">\n\t\t\t\t\t\t<$transclude tiddler=<<tocP-open-icon>> />\n\t\t\t\t\t\t<$macrocall $name=\"tocP-viewfield\" viewField=<<__viewField__>>/>\n\t\t\t\t\t</$button>\n\t\t\t\t</$reveal>\n\t\t\t</$list>\n\t\t\t<$transclude tiddler=\"$:/config/wikilabs/tocP/newChild\"/>\n\t\t\t<$reveal type=\"match\" stateTitle=<<tocP-state>> text=\"open\">\n\t\t\t\t<$macrocall $name=\"tocP-selective-expandable\" tag=<<currentTiddler>> sort=<<__sort__>> itemClassFilter=<<__itemClassFilter__>> exclude=<<__exclude__>> path=<<__path__>> field=<<__field__>> viewField=<<__viewField__>>/>\n\t\t\t</$reveal>\n\t\t</li>\n\t</$set>\n</$qualify>\n\\end\n\n\\define tocP-selective-expandable-empty-message(viewField)\n<$macrocall $name=\"tocP-linked-selective-expandable-body\" tag=<<__tag__>> sort=<<__sort__>> itemClassFilter=<<__itemClassFilter__>> field=<<__field__>> viewField=<<__viewField__>> exclude=<<excluded>> path=<<path>>/>\n\\end\n\n\\define tocP-selective-expandable(tag,exclude,path,field:\"parent\",viewField,viewFieldTemplate,itemClassFilter,sort:\"[sort[]]\")\n\\whitespace trim\n<$let path={{{ [<__path__>addsuffix[/]addsuffix<__tag__>] }}} currentTiddler=<<__tag__>> >\n\t<$set name=\"excluded\" filter=\"[subfilter<__exclude__>] [<__tag__>]\">\n\t\t<ol class=\"tc-toc toc-selective-expandable\">\n\t\t\t<$list filter=\"\"\"[has<__field__>!has[draft.of]] -[<__tag__>] -[subfilter<__exclude__>] :filter[get<__field__>match<__tag__>] +[subfilter<__sort__>]\"\"\">\n\t\t\t\t<$list filter=\"[all[current]toc-link[no]]\"\n\t\t\t\t\tvariable=\"ignore\"\n\t\t\t\t\temptyMessage=\"\"\"<$macrocall $name=\"tocP-selective-expandable-empty-message\" viewField=<<__viewField__>>/>\"\"\"\n\t\t\t\t>\n\t\t\t\t\t<$macrocall $name=\"tocP-unlinked-selective-expandable-body\" tag=<<__tag__>> sort=<<__sort__>> itemClassFilter=<<__itemClassFilter__>> field=<<__field__>> viewField=<<__viewField__>> exclude=<<excluded>> path=<<path>>/>\n\t\t\t\t</$list>\n\t\t\t</$list>\n\t\t</ol>\n\t</$set>\n</$let>\n\\end\n\n<!-- path is ignored only there for consistency reasons -->\n\\define tocP-tabbed-external-nav(tag,exclude,path,selectedTiddler:\"$:/temp/tocP/selectedTiddler\",unselectedText,missingText,template:\"\",field:\"parent\",viewField,sort:\"[sort[]]\")\n\\whitespace trim\n<$tiddler tiddler={{{ [<__selectedTiddler__>get[text]] }}}>\n\t<div class=\"tc-tabbed-table-of-contents\">\n\t\t<$linkcatcher to=<<__selectedTiddler__>>>\n\t\t\t<div class=\"tc-table-of-contents\">\n\t\t\t\t<$macrocall $name=\"tocP-selective-expandable\" tag=<<__tag__>> sort=<<__sort__>> itemClassFilter=\"[all[current]] -[<__selectedTiddler__>get[text]]\" exclude=<<__exclude__>> field=<<__field__>> viewField=<<__viewField__>>/>\n\t\t\t</div>\n\t\t</$linkcatcher>\n\t\t<div class=\"tc-tabbed-table-of-contents-content\">\n\t\t\t<$reveal stateTitle=<<__selectedTiddler__>> type=\"nomatch\" text=\"\">\n\t\t\t\t<$transclude mode=\"block\" tiddler=<<__template__>>>\n\t\t\t\t\t<h1><<tocP-viewfield>></h1>\n\t\t\t\t\t<$transclude mode=\"block\">\n\t\t\t\t\t\t<!-- should never happen with tocP since tiddlers have to exist to be shown -->\n\t\t\t\t\t\t<<__missingText__>>\n\t\t\t\t\t</$transclude>\n\t\t\t\t</$transclude>\n\t\t\t</$reveal>\n\t\t\t<$reveal stateTitle=<<__selectedTiddler__>> type=\"match\" text=\"\">\n\t\t\t\t<<__unselectedText__>>\n\t\t\t</$reveal>\n\t\t</div>\n\t</div>\n</$tiddler>\n\\end\n\n<!-- path is ignored only there for consistency reasons -->\n\\define tocP-tabbed-internal-nav(tag,exclude,path,selectedTiddler:\"$:/temp/tocP/selectedTiddler\",unselectedText,missingText,template:\"\",field:\"parent\",viewField,sort:\"[sort[]]\")\n\\whitespace trim\n<$linkcatcher to=<<__selectedTiddler__>>>\n\t<$macrocall $name=\"tocP-tabbed-external-nav\" tag=<<__tag__>> sort=<<__sort__>> selectedTiddler=<<__selectedTiddler__>> unselectedText=<<__unselectedText__>> missingText=<<__missingText__>> template=<<__template__>> exclude=<<__exclude__>> field=<<__field__>> viewField=<<__viewField__>>/>\n</$linkcatcher>\n\\end\n"},"$:/plugins/wikilabs/tocP/Stylesheet":{"title":"$:/plugins/wikilabs/tocP/Stylesheet","created":"20170201173552575","modified":"20170201214003877","tags":"$:/tags/Stylesheet","type":"text/css","text":".tc-tabbed-table-of-contents .wltc-btn-new-child {\n display: none;\n}\n\n.tocp .tc-tiddlylink {\n color: green;\n}\n\n/* needed if streams headings are shown */\n\n.tc-toc-caption h1,\n.tc-toc-caption h2,\n.tc-toc-caption h3,\n.tc-toc-caption h4,\n.tc-toc-caption h5,\n.tc-toc-caption h6 {\n display: inline-block;\n}"},"$:/plugins/wikilabs/tocP/toggle-new-child-button":{"title":"$:/plugins/wikilabs/tocP/toggle-new-child-button","created":"20170127145849380","modified":"20170201213725315","tags":"","type":"text/vnd.tiddlywiki","text":"<$button>\n<$action-setfield $tiddler=\"$:/config/wikilabs/tocP/newChild\" text=\"<span class='wltc-btn-new-child tc-tiny-gap-left'>{{||$:/wikilabs/ui/buttons/new-child-alone}}</span>\"/>\nEnable \"New Child\" buttons\n</$button>\n<$button>\n<$action-deletetiddler $tiddler=\"$:/config/wikilabs/tocP/newChild\"/>\nDisable \"New Child\" buttons\n</$button>"},"$:/wikilabs/images/new-child-alone":{"title":"$:/wikilabs/images/new-child-alone","created":"20170127140027445","modified":"20170201213725304","tags":"","type":"text/vnd.tiddlywiki","text":"<svg class=\"tc-image-edit-button tc-image-button\" viewBox=\"0 0 128 128\" width=\"22pt\" height=\"22pt\">\n\t<path d=\"M6.9 27.9a6.72 6.96 0 1 0 0 13.9h41a6.72 6.96 0 1 0 0-13.9z\"\n\t\tstyle=\"text-decoration-line:none;text-indent:0;text-transform:none\"\n\t\ttransform=\"translate(13.6 62.5)\" />\n\t<path d=\"M27.3 4.57a6.72 6.96 0 0 0-6.64 7.05v46.5a6.72 6.96 0 1 0 13.4 0v-46.5a6.72 6.96 0 0 0-6.81-7.05z\"\n\t\tstyle=\"text-decoration-line:none;text-indent:0;text-transform:none\"\n\t\ttransform=\"translate(13.6 62.5)\" />\n\t<path\n\t\td=\"M60.5 58.1c-3.75-.055-6.82 3.08-6.82 6.96s3.07 7.01 6.82 6.96h46.1c3.75.055 6.82-3.08 6.82-6.96s-3.07-7.01-6.82-6.96zM20.5 28.4c-3.75-.055-6.82 3.08-6.82 6.96s3.07 7.01 6.82 6.96h86.1c3.75.055 6.82-3.08 6.82-6.96s-3.07-7.01-6.82-6.96z\"\n\t\tstyle=\"text-decoration-line:none;text-indent:0;text-transform:none\" />\n</svg>\n\n"},"$:/wikilabs/ui/buttons/new-child-alone":{"title":"$:/wikilabs/ui/buttons/new-child-alone","caption":"{{$:/wikilabs/images/new-child-alone}} NewChildHere","created":"20170127140235853","description":"NewChildHere & add parent field","modified":"20170202134649899","tags":"$:/tags/ViewToolbar","type":"text/vnd.tiddlywiki","text":"\\define newHereValue()\n$(currentTiddler)$\n\\end\n\n\\define newChildButton(field:\"parent\")\n<$button tooltip=\"\"\"New Child -> \"$field$: $(currentTiddler)$\" \"\"\" aria-label=\"new child here\" class=<<tv-config-toolbar-class>>>\n<$action-sendmessage $message=\"tm-new-tiddler\" $field$=<<newHereValue>>/>\n<$list filter=\"[<tv-config-toolbar-icons>prefix[yes]]\">\n{{$:/wikilabs/images/new-child-alone}}\n</$list>\n<$list filter=\"[<tv-config-toolbar-text>prefix[yes]]\">\n<span class=\"tc-btn-text\"><$text text=\"New Child Here\"/></span>\n</$list>\n</$button>\n\\end\n<$macrocall $name=newChildButton field=<<field>> />"},"$:/plugins/wikilabs/tocP/history":{"title":"$:/plugins/wikilabs/tocP/history","text":"V 0.3.2 - 2023.07.01\n\n* Improve \"cooperation\" with streams-plugin\n\nV 0.3.0 - 2023.06.27\n\n''Important'': These macros use a new parameter order\n\n* Add a `viewField` parameter, that will allow us to change the link text\n** defaults to: `caption`\n\n* Add a `viewFieldTemplate` parameter, which works in combination with the `viewField` parameter\n* This will make it possible to work with stream-lists\n\n* Add examples to show, how tocP can work with the \"streams-plugin\" fields\n** tocP can read the streams structure\n** The other way around ''is not possible'' atm, \n*** tocP uses does not use the `stream-list` field. It's not needed\n\nV 0.2.0 - 2023.06.22\n\n* Custom icons can be used for open and closed state\n\n* New \"New Child\" icon. Only 1 toolbar icon is left\n** The second toolbar icon caused confusion anyway\n\n* ''sort'' parameter is a subfilter now\n** ''Important:'' The ''sort'' parameter is ''not'' backwards compatible\n\n* ''exclude'' parameter is a subfilter now\n* Update code based on core TOC macros from TW v5.3.0\n* Plugin is compatible with TW >=v5.2.1\n\nV 0.1.3 - 2020.12.25\n\n* update to TW v5.2.2\n\nV 0.1.2 - 2020.12.25\n\n* update license\n\nV 0.1.1 - 2020.01.19\n\n* Update license link/text\n\nV 0.1.0 - 2017\n\n* improved / fixed tool button tooltips\n* fixed plugin license typo\n* new [[StyleSheet|$:/plugins/wikilabs/tocP/Stylesheet]] setting for `.tocp` class. It sets the default link color to green, which should set it apart from the standard toc\n** This is probably a temporary solution, because it doesn't work for tabbed tocPs\n\n* The \"New Child\" buttons now show a more detailed tooltip\n** The actual \"field-name: value\" pair which will be used to create the new child\n\n* tocP now shows the tooltip field, if available in tiddlers. see [[examples|GettingStarted]] or open [[level-1]] in edit mode"},"$:/plugins/wikilabs/tocP/icon":{"title":"$:/plugins/wikilabs/tocP/icon","text":"<svg width=\"22pt\" height=\"22pt\" version=\"1.1\" viewBox=\"0 0 128 128\">\n<path transform=\"scale(4.36)\" d=\"m18.6 0-14.5 7.32-3.93 14.7 10.5 7.32 14.5-7.32 3.93-14.7-10.5-7.32zm-9.55 5.93h12.8c0.508 0 0.918 0.408 0.918 0.916v0.453c0 0.508-0.41 0.916-0.918 0.916h-12.8c-0.508 0-0.918-0.408-0.918-0.916v-0.453c0-0.508 0.41-0.916 0.918-0.916zm0.0254 3.42h12.8c0.508 0 0.916 0.408 0.916 0.916v0.453c0 0.508-0.408 0.916-0.916 0.916h-12.8c-0.508 0-0.916-0.408-0.916-0.916v-0.453c0-0.508 0.408-0.916 0.916-0.916zm3.66 3.5h12.8c0.508 0 0.918 0.408 0.918 0.916v0.453c0 0.508-0.41 0.916-0.918 0.916h-12.8c-0.508 0-0.918-0.408-0.918-0.916v-0.453c0-0.508 0.41-0.916 0.918-0.916zm6.62 3.51h2.84c0.843 0 1.49 0.189 1.94 0.564 0.453 0.373 0.68 0.905 0.68 1.6 0 0.695-0.227 1.23-0.68 1.61-0.45 0.373-1.1 0.559-1.94 0.559h-1.13v2.3h-1.71v-6.63zm-15.9 0.244h1.59v1.41h1.64v1.13h-1.64v2.11c0 0.231 0.0469 0.388 0.139 0.471 0.0917 0.0799 0.273 0.119 0.545 0.119h0.818v1.14h-1.36c-0.627 0-1.07-0.13-1.34-0.391-0.26-0.263-0.391-0.709-0.391-1.34v-2.11h-0.791v-1.13h0.791v-1.41zm17.6 0.994v1.85h0.947c0.331 0 0.587-0.0804 0.768-0.24 0.181-0.163 0.27-0.392 0.27-0.688 0-0.296-0.089-0.524-0.27-0.684-0.181-0.16-0.436-0.24-0.768-0.24h-0.947zm-11.1 0.297c0.855 0 1.52 0.232 2 0.693 0.482 0.462 0.723 1.1 0.723 1.92 0 0.817-0.24 1.46-0.723 1.92-0.479 0.462-1.15 0.691-2 0.691-0.858 0-1.53-0.23-2.02-0.691-0.482-0.462-0.725-1.1-0.725-1.92 0-0.817 0.242-1.46 0.725-1.92 0.485-0.462 1.16-0.693 2.02-0.693zm6.37 0c0.26 0 0.518 0.0249 0.77 0.0723 0.255 0.0444 0.506 0.111 0.758 0.203v1.3c-0.216-0.148-0.433-0.257-0.652-0.328-0.216-0.071-0.44-0.107-0.674-0.107-0.444 0-0.79 0.13-1.04 0.391-0.246 0.257-0.369 0.619-0.369 1.08 0 0.465 0.124 0.827 0.369 1.09 0.249 0.257 0.595 0.385 1.04 0.385 0.249 0 0.483-0.0373 0.705-0.111 0.225-0.074 0.432-0.183 0.621-0.328v1.3c-0.249 0.0917-0.5 0.161-0.758 0.205-0.255 0.0474-0.512 0.0703-0.77 0.0703-0.897 0-1.6-0.229-2.1-0.688-0.506-0.462-0.76-1.1-0.76-1.92s0.254-1.46 0.76-1.92c0.506-0.462 1.21-0.693 2.1-0.693zm-6.37 1.14c-0.352 0-0.622 0.128-0.809 0.383-0.183 0.252-0.275 0.615-0.275 1.09 0 0.476 0.0919 0.841 0.275 1.1 0.186 0.252 0.456 0.377 0.809 0.377 0.346 0 0.609-0.125 0.793-0.377 0.183-0.255 0.275-0.619 0.275-1.1 0-0.476-0.0919-0.84-0.275-1.09-0.183-0.255-0.447-0.383-0.793-0.383z\" style=\"stroke-width:.229\"/>\n</svg>"},"$:/plugins/wikilabs/tocP/license":{"title":"$:/plugins/wikilabs/tocP/license","text":"[[Parent Based TOC Plugin|https://wikilabs.github.io/#edition-tocP]] (c) Mario Pietsch - 2017-2024\n\nhttps://opensource.org/licenses/BSD-3-Clause\n"},"$:/plugins/wikilabs/tocP/readme":{"title":"$:/plugins/wikilabs/tocP/readme","text":"This plugin contains several \"Table of Content\" macros, that have the same parameters as the core toc macro. The main difference is, that it doesn't use tags to create the TOC scructure. It uses a \"parent\" field in so called \"child - tiddlers\".\n\n''Detailed Documentation''\n\nMore details about this plugin can be found at: https://wikilabs.github.io/editions/tocP\nMore plugins, themes and editions can be found at: https://wikilabs.github.io/\n\n''Important''\n\nThese macros are intended to be \"drop in replacement\" of the core macros. ... They have the exact same parameter names. Instead of \"parent\" it still uses \"tag\" as the first parameter. \n\n''Usage''\n\n```\n<div class=\"tocp tc-table-of-contents\">\n<<tocP root>>\n</div>\n\n<div class=\"tocp tc-table-of-contents\">\n<<tocP-expandable root>>\n</div>\n\n<div class=\"tocp tc-table-of-contents\">\n<<tocP-selective-expandable root field:\"any-name\">>\n</div>\n\n<div class=\"tc-table-of-contents\">\n<<tocP-tabbed-internal-nav root>>\n</div>\n\n<div class=\"tc-table-of-contents\">\n<<tocP-tabbed-external-nav root>>\n</div>\n\n<div class=\"tc-table-of-contents\">\n<<tocP-selective-expandable root field:\"asdf\">>\n</div>\n\n```\n\n''For Streams .. WIP''\n\n```\n<div class=\"tocp tc-table-of-contents\">\n<$set name=\"tv-wikilinks\" value=\"no\">\n<<tocP \"Streams 0.2 improvements\" viewField:\"text\" sort:\"[sortby{!!stream-list}]\">>\n</div>\n```\n\n''streamTextTemplate'': is just a `<$transclude mode=block/>`\n''viewField'': usually needs to be `text` if a template is used\n\n```\n<div class=\"tocp tc-table-of-contents\">\n<$set name=\"tv-wikilinks\" value=\"no\">\n<<tocP \"Streams 0.2 improvements\" viewField:\"text\" sort:\"[sortby{!!stream-list}]\" viewFieldTemplate:\"streamTextTemplate\">>\n</$set>\n</div>\n```\n\n''Simple Configuration''\n\n* Enable / Disable the inline \"New Child\" button\n** {{$:/plugins/wikilabs/tocP/toggle-new-child-button}}\n\n''Known Problems''\n\n* The \"tabbed\" versions don't show the \"New Child\" buttons\n* Color customisation isn't possible atm"}}} |