1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-15 14:24:51 +00:00
TiddlyWiki5/editions/tw5.com/tiddlers/macros/TimelineMacro.tid

25 lines
1.1 KiB
Plaintext
Raw Normal View History

created: 20150220180357000
modified: 20150221224401000
title: timeline Macro
tags: Macros [[Core Macros]]
2014-09-10 23:06:19 +00:00
caption: timeline
2014-09-08 17:58:48 +00:00
The <<.def timeline>> [[macro|Macros]] returns a list of tiddlers in reverse chronological order of modification (or some other [[date field|Date Fields]]), grouped by day.
2014-09-08 17:58:48 +00:00
!! Parameters
2014-09-08 17:58:48 +00:00
;limit
: The maximum number of tiddlers to include, defaulting to 100. But if <<.em any>> tiddlers are included for a particular day, <<.em all>> of the other tiddlers for that day will also be included -- even if this exceeds the limit
;format
: A string specifying the desired [[format|DateFormat]], defaulting to `DDth MMM YYYY`
;subfilter
: An optional extra [[filter step|Filter Step]], e.g. `tag[MyTag]`
;dateField
: The name of the date field to use, defaulting to `modified`
The tiddlers are selected by means of a [[filter expression|Filter Expression]], into which the <<.param subfilter>> and <<.param limit>> parameters are spliced as follows:
> `[!is[system]$subfilter$has[modified]!sort[modified]limit[$limit$]eachday[modified]]`
<<.macro-examples "timeline">>