I am having some trouble thinking about how to properly setup my research journal.
What I have now is a new research journal button that creates a tiddler with the following content:
<h3 style="display:inline">[[Weekly Goals|Week WW - YYYY]]</h3> <$appear $state="goals" mode="custom" show="{{$:/.dm/config/appearPlugin!!downarrow}}" hide="{{$:/.dm/config/appearPlugin!!uparrow}}">
{{Week WW - YYYY}}
</$appear>
<hr/>
THE ACTUAL TEXT OF MY RESEARCH DIARY
<hr/><h3 style="display:inline">[[Papers of Interest]]</h3> <$appear
$state="papers" mode="custom" show="{{$:/.dm/config/appearPlugin!!downarrow}}" hide="{{$:/.dm/config/appearPlugin!!uparrow}}">
{{Papers of Interest}}
</$appear>
where WW and YYYY are replaced by the correct week number and year number by wrapping all this in a now macro within the button code.
This has been working fine, but I find myself:
- frequently changing the look/style of a research journal entry.
- wanting to learn more about templates and transclusion.
With this in mind, I want to go about making a "Research Journal Template" that will have all the correct behavior, and somehow having my actual Daily Entries just contain the daily text, but get rendered according to the template.
I tried making a new template with the above and replacing "THE ACTUAL TEXT OF MY RESEARCH DIARY" with {{!!text}}, and then making my daily journal with just the following content:
This is a test
{{|MyTemplate}}
Unsurprisingly, this gives a recursive transclusion error in both the template and the daily entry.
My desired result is:
- have all tiddlers tagged with both Journal and Research are rendered using the same template I can edit whenever I need to.
- Have each daily journal entry correctly link to its corresponding weekly goals tiddler.
- Not sure how this would be accomplished - perhaps have the template parse the "created" field? I don't want the link to the weekly goals to change with time.
- The text body of each daily entry contains only relevant (and formatted) daily information.
- I don't want to have rendering code in these entries since I want to be able to change that after the fact.
- I don't want to have to stick everything in a field.
Any and all help would be greatly appreciated!
Thanks!
Diego