From d7c89de11de5feb50eb19d87bbbb80992196f97a Mon Sep 17 00:00:00 2001 From: Saq Imtiaz Date: Sun, 26 Mar 2023 19:03:02 +0200 Subject: [PATCH 1/3] Update docs for TiddlerTemplate classes (#7377) * Update docs for TiddlerTemplate classes * Update SystemTag_ $__tags_ClassFilters_TiddlerTemplate.tid --- .../SystemTag_ $__tags_ClassFilters_TiddlerTemplate.tid | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/editions/tw5.com/tiddlers/systemtags/SystemTag_ $__tags_ClassFilters_TiddlerTemplate.tid b/editions/tw5.com/tiddlers/systemtags/SystemTag_ $__tags_ClassFilters_TiddlerTemplate.tid index 49ad90100..245e7cbdb 100644 --- a/editions/tw5.com/tiddlers/systemtags/SystemTag_ $__tags_ClassFilters_TiddlerTemplate.tid +++ b/editions/tw5.com/tiddlers/systemtags/SystemTag_ $__tags_ClassFilters_TiddlerTemplate.tid @@ -1,9 +1,14 @@ caption: $:/tags/ClassFilters/TiddlerTemplate created: 20221020035738692 description: marks filters evaluated to dynamically add classes to the page template. -modified: 20221020035933363 +modified: 20230326153057521 tags: SystemTags title: SystemTag: $:/tags/ClassFilters/TiddlerTemplate type: text/vnd.tiddlywiki The [[system tag|SystemTags]] `$:/tags/ClassFilters/TiddlerTemplate` marks filters evaluated to dynamically add their output as CSS classes to the tiddler template. + +The variables available are within each filter: + +* <<.var storyTiddler>>: the tiddler in the story for which the filter should be evaluated. +* <<.var currentTiddler>>: the tiddler holding the filter definition being evaluated. From 29c22604579cc125e57d3de1d53a7fcc390a5eba Mon Sep 17 00:00:00 2001 From: Mohammad Rahmani <830394+kookma@users.noreply.github.com> Date: Tue, 28 Mar 2023 11:52:32 +0330 Subject: [PATCH 2/3] Update ListMacro.tid (#7381) The field input parameter was corrected --- editions/tw5.com/tiddlers/macros/ListMacro.tid | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editions/tw5.com/tiddlers/macros/ListMacro.tid b/editions/tw5.com/tiddlers/macros/ListMacro.tid index 33bbb5713..fd7079850 100644 --- a/editions/tw5.com/tiddlers/macros/ListMacro.tid +++ b/editions/tw5.com/tiddlers/macros/ListMacro.tid @@ -15,7 +15,7 @@ Note: Each first [[step|Filter Step]] of a [[filter run|Filter Run]] not given a ;filter : A [[filter|Filters]] selecting which tiddlers to include -;caption +;field : The name of the field to transclude for each list item, defaulting to `caption` ;type : An HTML element to use for the overall list element, defaulting to `ul` From c28dbd00257ef741f352e9bc58209057a547d357 Mon Sep 17 00:00:00 2001 From: Mohammad Rahmani <830394+kookma@users.noreply.github.com> Date: Tue, 28 Mar 2023 11:53:02 +0330 Subject: [PATCH 3/3] Update regexp.tid (#7382) The list-links by default show caption of listed tiddlers instead of their title. So in the example here ``` <$macrocall $name="wikitext-example-without-html" src="""<$set name="digit-pattern" value="[0-9]{2}"> <]" field:"title">> """/> ``` you need to use field:"title" to see the correct results visually. --- editions/tw5.com/tiddlers/filters/examples/regexp.tid | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editions/tw5.com/tiddlers/filters/examples/regexp.tid b/editions/tw5.com/tiddlers/filters/examples/regexp.tid index 161df8937..5b18a1613 100644 --- a/editions/tw5.com/tiddlers/filters/examples/regexp.tid +++ b/editions/tw5.com/tiddlers/filters/examples/regexp.tid @@ -17,5 +17,5 @@ The regular expression `[0-9]{2}` matches two consecutive digits. Because it con <$macrocall $name="wikitext-example-without-html" src="""<$set name="digit-pattern" value="[0-9]{2}"> -<]">> +<]" field:"title">> """/>