1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-17 15:24:50 +00:00
TiddlyWiki5/core/wiki/macros/timeline.tid
2014-10-15 17:48:45 +01:00

20 lines
547 B
Plaintext

title: $:/core/macros/timeline
tags: $:/tags/Macro
\define timeline(limit:"100",format:"DDth MMM YYYY",subfilter:"")
<div class="tc-timeline">
<$list filter="[!is[system]$subfilter$has[modified]!sort[modified]limit[$limit$]eachday[modified]]">
<div class="tc-menu-list-item">
<$view field="modified" format="date" template="$format$"/>
<$list filter="[sameday{!!modified}!is[system]$subfilter$!sort[modified]]">
<div class="tc-menu-list-subitem">
<$link to={{!!title}}>
<$view field="title"/>
</$link>
</div>
</$list>
</div>
</$list>
</div>
\end