Where I want tiddlers to be transcluded if they exist and a button to
create the tiddler if they don't exist in my table.
\define conditionaltiddler(title : "Tiddler Title")
<$set name="btn">
<$button class="tc-btn-invisible tc-tiddlylink">
<$action-createtiddler $basetitle="$title$" />
Create Tiddler: $title$
</$button>
</$set>
<$list filter="[$title$]" emptyMessage="$btn$">{{$title$}}</$list>
\end
|Value|Description|h
|Absent|<<conditionaltiddler title:"Observation-Regurgitation-Absent">>|
|Mild|<<conditionaltiddler title:"Observation-Regurgitation-Mild">>|
|Mild to moderate|<<conditionaltiddler
title:"Observation-Regurgitation-Mild to moderate">>|
|Value|Description|h
|Absent|{{Observation-Regurgitation-Absent}}|
|Mild|<$button class="tc-btn-invisible
tc-tiddlylink"><$action-createtiddler
$basetitle="Observation-Regurgitation-Mild" />Create Tiddler:
Observation-Regurgitation-Mild</$button>|
|Mild to moderate|{{Observation-Regurgitation-Mild to moderate}}|
The bottom table is what I want it to look like, the top is my attempt so
far. The transclusion part is working fine. I made a variable to hold the
button and put that in the empty message, but it's showing up all the
time. I feel like I have a little while to go before I grok the
macro/filter/widget system.
[image: Capture.PNG]
Thanks in advance,
Cade
--
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/707190b4-8802-4f61-b1b7-6200f6a63dda%40googlegroups.com.