1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-23 10:07:19 +00:00

Docs for macro parameters in filter operands (#5837)

This commit is contained in:
Saq Imtiaz 2021-06-30 00:25:44 +02:00 committed by GitHub
parent 041c3e817c
commit f1f951e849
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 3 deletions

View File

@ -1,5 +1,5 @@
created: 20150220152540000 created: 20150220152540000
modified: 20201103110920722 modified: 20210629215024053
tags: [[Filter Syntax]] tags: [[Filter Syntax]]
title: Filter Parameter title: Filter Parameter
type: text/vnd.tiddlywiki 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]]. :: 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>> : <<.def variable>>
:: `<like this>` :: `<like this>`
:: 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: `[<now [UTC]YYYY0MM0DD0hh0mm0ssXXX>]`.
<<.from-version "5.1.23">> Filter operators support multiple parameters which are separated by a ` , ` character. <<.from-version "5.1.23">> Filter operators support multiple parameters which are separated by a ` , ` character.

View File

@ -1,6 +1,6 @@
caption: now caption: now
created: 20141008141616791 created: 20141008141616791
modified: 20170630223406157 modified: 20210629215024061
tags: Macros [[Core Macros]] tags: Macros [[Core Macros]]
title: now Macro title: now Macro
type: text/vnd.tiddlywiki 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. ''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<now YYYY0MM0DD>]`">>
<<.macro-examples "now">> <<.macro-examples "now">>