Timelines is a collection of four macros for creating vertical and horizontal timeline and sequence. The content or description and data of events are stored in individual tiddlers.
Timelines contain two timeline macros and two sequence macros. A sequence macro shows event contents in sequence not necessarily in chronological order. The order can be determined by tag or list field or other methods.
The date of events can be stored in a separate field or the
modifiedfield can be used.
<<timeline-horizontal filter limit:10 template:"" footer:"footer" class date:"modified" stateTiddler dateformat:"YYYY">> <<sequence-horizontal filter limit:10 template:"" footer:"footer" class date:"modified" stateTiddler dateformat:"mmm DDth YYYY">> <<timeline-vertical filter limit:10 template:"" footer:"footer" class date:"modified">> <<sequence-vertical filter limit:10 template:"" footer:"footer" class date:"modified">>Content and parameters
Parameter Type Description filter required a Tiddlywiki filter to select tiddlers for presentation limit optional maximum number of tiddlers to be shown. Default value is 10 template optional a template to display the tiddler content footer optional the field name which stores an extra text to be displayed as footer class optional an extra class to customize how tiddler content is displayed date optional the field name which stores a date in standard Tiddlywiki format. Default field is modifiedstateTiddler optional the name of a state tiddler to keep the state of events. Each call to macro needs a unique state tiddler dateformat optional only in timeline-horizontalandtimeline-vertical, the format for displaying event date.More explanation with examples can be found at GitHub demo page.
The dateformat parameter
The dateformat lets to customize the event date displayed on the timeline.
- timeline-horizontal
For
timeline-horizontalmacro the default value isYYYY, the other two forms of date are
mmm DDth, and0DD mmm YYYY.Other format will not be displayed!
- timeline-vertical
For the
timeline-verticalmacro the default value ismmm DDth YYYY, the other two forms of date are
mmm DDthto show only the month and day and hide yearYYYYto show only year and hide the monthOther format will not be displayed!
Simply drag and drop $:/plugins/kookma/timelines into your wiki
- 9th August 2019
- The
timeline-horizontalgets data format to control how event date is displayed- Timelines macros have gotten new name for consistency
- Several demo tiddlers have been added
- Documentation has been improved
- 31st July 2019
- New tehran timeline added
- New ilam timeline added
- 28th July 2019
- added gilan timeline
- added kerman timeline
- All Tiddlywikians
Excelent and great demo site. Thanks so much for this work. Lets see if lists now look a lot more beautiful.
Thanks
Tony
Thanks to great new filter operators in TW 5.1.20
Mohammad