mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-12-27 10:30:28 +00:00
25 lines
1.1 KiB
Plaintext
25 lines
1.1 KiB
Plaintext
created: 20150220180357000
|
|
modified: 20150221224401000
|
|
title: timeline Macro
|
|
tags: Macros [[Core Macros]]
|
|
caption: timeline
|
|
|
|
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.
|
|
|
|
!! Parameters
|
|
|
|
;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">>
|