1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-07-06 20:14:22 +00:00
TiddlyWiki5/editions/tw5.com/tiddlers/filters/examples/days.tid
Jermolene b2fd3366e3 Move staged content from prerelease
These updates had been staged so that I could still perform updates of
tiddlywiki.com for the previous release
2016-01-05 13:05:10 +00:00

19 lines
645 B
Plaintext

tags: [[Operator Examples]] [[days Operator]]
title: days Operator (Examples)
type: text/vnd.tiddlywiki
<<.operator-example 1 "[days[-14]]" "tiddlers modified within the last 14 days">>
<<.operator-example 2 "[!days:created[-800]]" "tiddlers created more than 800 days ago">>
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>days[-120]]"> @@color:red;^^new^^@@</$list>
</li>
</$list>
</ul>
"""/>