1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-27 20:10:03 +00:00

Merge pull request #1874 from nameanyone/master

Expanded example
This commit is contained in:
Jeremy Ruston 2015-07-09 08:30:19 +01:00
commit 0c276c327b

View File

@ -4,3 +4,15 @@ type: text/vnd.tiddlywiki
<<.operator-example 1 "[recent[1]]" "tiddlers modified yesterday and today">> <<.operator-example 1 "[recent[1]]" "tiddlers modified yesterday and today">>
<<.operator-example 2 "[recent:created[14]]" "tiddlers created within the last 14 days">> <<.operator-example 2 "[recent:created[14]]" "tiddlers created within the last 14 days">>
The filter can be used to highlight new items in a list. For example:
<$macrocall
$name="wikitext-example-without-html" src=
"""
<ul>
<$list filter="[tag[ReleaseNotes]!<currentTiddler>!sort[modified]]">
<li>
<$link><$view field="title"/></$link><$list filter="[<currentTiddler>recent[90]]"> @@color:red;^^new^^@@</$list>
</li>
</$list>
</ul>
"""/>