1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-07-06 12:13:16 +00:00
TiddlyWiki5/editions/tw5.com/tiddlers/filters/examples/days.tid

21 lines
756 B
Plaintext
Raw Normal View History

2015-12-23 12:19:47 +00:00
tags: [[Operator Examples]] [[days Operator]]
title: days Operator (Examples)
2015-07-03 22:31:37 +00:00
type: text/vnd.tiddlywiki
2015-12-23 12:19:47 +00:00
<<.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">>
2015-07-09 06:26:15 +00:00
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[-180]]"> @@color:red;^^new^^@@</$list>
<$list filter="[<currentTiddler>days[-500]!days[-180]]"> @@color:black;^^recent^^@@</$list>
2015-07-09 06:26:15 +00:00
</li>
</$list>
</ul>
"""/>