From f1f951e849aa5161eb24ca4fd27b542629b1dd76 Mon Sep 17 00:00:00 2001 From: Saq Imtiaz Date: Wed, 30 Jun 2021 00:25:44 +0200 Subject: [PATCH] Docs for macro parameters in filter operands (#5837) --- .../tw5.com/tiddlers/filters/syntax/Filter Parameter.tid | 5 +++-- editions/tw5.com/tiddlers/macros/NowMacro.tid | 4 +++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/editions/tw5.com/tiddlers/filters/syntax/Filter Parameter.tid b/editions/tw5.com/tiddlers/filters/syntax/Filter Parameter.tid index 6b7b49eca..d394f1900 100644 --- a/editions/tw5.com/tiddlers/filters/syntax/Filter Parameter.tid +++ b/editions/tw5.com/tiddlers/filters/syntax/Filter Parameter.tid @@ -1,5 +1,5 @@ created: 20150220152540000 -modified: 20201103110920722 +modified: 20210629215024053 tags: [[Filter Syntax]] title: Filter Parameter type: text/vnd.tiddlywiki @@ -24,7 +24,8 @@ The parameter to a [[filter operator|Filter Operators]] can be: :: The parameter is the text indicated by the [[text reference|TextReference]] whose name appears between the curly brackets, i.e. a [[field|TiddlerFields]] of a specified tiddler, or the value of a property of a specified [[data tiddler|DataTiddlers]]. : <<.def variable>> :: `` -:: The parameter is the current value of the [[variable|Variables]] whose name appears between the angle brackets. Macro parameters are <<.em not>> supported. +:: The parameter is the current value of the [[variable|Variables]] whose name appears between the angle brackets. Macro parameters are <<.em not>> supported up to and including ~TiddlyWiki v5.1.23. +::<<.from-version "5.2.0">> Literal macro parameters are supported. For example: `[]`. <<.from-version "5.1.23">> Filter operators support multiple parameters which are separated by a ` , ` character. diff --git a/editions/tw5.com/tiddlers/macros/NowMacro.tid b/editions/tw5.com/tiddlers/macros/NowMacro.tid index f3f0ddf57..04a9a5b68 100644 --- a/editions/tw5.com/tiddlers/macros/NowMacro.tid +++ b/editions/tw5.com/tiddlers/macros/NowMacro.tid @@ -1,6 +1,6 @@ caption: now created: 20141008141616791 -modified: 20170630223406157 +modified: 20210629215024061 tags: Macros [[Core Macros]] title: now Macro type: text/vnd.tiddlywiki @@ -16,5 +16,7 @@ The value doesn't update automatically, like a ticking clock. It updates wheneve ''Note'': The format string `[UTC]YYYY0MM0DD0hh0mm0ssXXX` will return a date string representing the UTC time-stamp as it is used in the ~TiddlyWiki `created` and `modified` time-stamp fields. +<<.from-version 5.2.0>><<.tip "You can now pass literal parameters to the `now` macro in filters. For example, this filter will return all tiddlers created today: `[all[tiddlers]] :filter[get[created]format:date[YYYY0MM0DD]match]`">> + <<.macro-examples "now">>