Hello!
I’m a little confused when trying to use variables.
Mainly, I have a lot tag tiddlers, and I like when they contain toc-selective-expandable, so I can effectively navigate through and grasp the contents of my wiki. But when creating new tag each time I need to copy/paste and then modify the name in toc, so it shows proper list. Therefore I’m interested in creating a template:
<$macrocall $name="toc-selective-expandable" tag="CurentTiddlerNameHere" sort="sort[created]" />
but nothing I try works The following things properly return the current tiddler name, when used by themselves, but not when put in macrocall:
<<currentTiddler>>
<$text text=<<currentTiddler>>/>
<$text text={{{ [<currentTiddler>] }}} />
So first of all, how can I use such variable in macrocall?
And the other thing, what is the difference between those 3 currentTiddler notations? I have also seen something like !!title, or something like this, so I would be most grateful if someone could explain to me what’s going on.
Oh and btw. I also happen to struggle with usage of mathematical operators. I’m interested in defining 2 variables, let’s say x=2 and y=3, and be able to perform x+y to obtain the result. Again, I would be most thankful for pointing out how to do it.
Have a great day!