I was answering someone elses’ question when I realized I had one of my own. According to the documentation release notes for 5.2.0, I should be able to embed a variable directly into a wikitext macro call.
First, it is now possible to nest macro calls within the parameters to other macros. For example:
<<mymacro arg:"""nested <<macro>> call""">>
So, this should work, right?:
<<toc tag:"""<<currentTiddler>>""" >>
When I put this at the top of “HelloThere”, I don’t get the expected TOC.
But it does transfer the name if I call my own macro like this:
\define echo(tag: "") I see tag: <<__tag__>> <<echo tag:"""<<currentTiddler>>""" >
Output:
I see tag: HelloThere
So I wonder what the real rules for embedding, and if it only works under certain conditions.
Thanks!