As I build a large documentation wiki (behind corporate walls, so can’t share, sorry), I’m tracking the status of my Tiddlers: complete (-ish, of course!), entirely missing, and tagged TODO. I have something that works all right, but would be improved.
I list my titles in a table, with a column that shows status of a checkmark or “todo”. A separate, smaller list simply shows the missing titles. That works fine, but it would be better if I could find a way to show either of three states in that column: ‘missing’, ‘todo’, or a checkbox if neither is true.
Is there a straightforward way to extend this:
<$text text={{{ [<currentTiddler>tag[TODO]then[todo]else[✓]] }}}/>
to include the text “missing” if the title is missing?
For context, it’s running in here:
<$list filter="[all[tiddlers]!is[system]sort[]]">
<tr>
<td><$link/></td>
<td><$text text={{{ [<currentTiddler>tag[TODO]then[todo]else[✓]] }}}/></td>
</tr>
</$list>
I know I would have to change the $list
filter
to start with [all[tiddler+missing]]
. But how do I extend the then
-else
logic to a third case? I want to interject something like is[missing]then[missing]
, but I’m not sure how it can be combined.
Any suggestions?
Even more context
This is the complete tiddler:
caption: Status
created: 20221215211815574
modified: 20221216151538049
tags: $:/tags/MoreSideBar
title: $:/_/Status
type: text/vnd.tiddlywiki
<$list filter="[all[missing]first[]]">
''Missing''
<<list-links filter:[all[missing]]>>
<hr/>
</$list>
''Complete <$text text={{{ [all[]!tag[TODO]count[]] }}}/>,
TODO: <$text text={{{ [tag[TODO]count[]] }}}/>,
Missing: <$text text={{{ [all[missing]count[]] }}}/>''
<table>
<tr><th>Title</th><th>Status</th></tr>
<$list filter="[all[tiddlers]!is[system]sort[]]">
<tr>
<td><$link/></td>
<td><$text text={{{ [<currentTiddler>tag[TODO]then[todo]else[✓]] }}}/></td>
</tr>
</$list>
</table>