Let’s say I use tiddlywiki for journaling. In my journal tiddlers I have a field called mantra
. It can be missing.
I want to stick above the Story River the content of that field for the Journal’s tiddler of today.
I want to use a template for this.
I have a tiddler “Sticky Mantra” tagged $:/tags/AboveStory
which diplays on top of the story
I have a template “MantraTemplate” containing {{!!mantra}}
to display the concerned field
Let’s say today is the 10th of february 2024 and today’s journal is named 2024-02-10
I can render today’s journal as: {{2024-02-10||MantraTemplate}}
in “Sticky Mantra”
I can dynamically retrieve today’s journal title as: <$transclude $variable="now" format={{$:/config/NewJournal/Title}}/>
But I can’t find a way to combine those two.
I know that I can express the template transclusion {{2024-02-10||MantraTemplate}}
with the tiddlerWidget:
<$tiddler tiddler="2024-02-10">
<$transclude tiddler="MantraTemplate"/>
</$tiddler>
and I’m feeling that this a way to go, but I tried all my ways and I can’t find how to use the result of the transclusion <$transclude $variable="now" format={{$:/config/NewJournal/Title}}/>
as the parameter tiddler
of the above.
Am I totally in the wrong or can someone enlight the bit I am missing ?