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:
parent
041c3e817c
commit
f1f951e849
@ -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>>
|
||||
:: `<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.
|
||||
|
||||
|
@ -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<now YYYY0MM0DD>]`">>
|
||||
|
||||
|
||||
<<.macro-examples "now">>
|
||||
|
Loading…
Reference in New Issue
Block a user