Thank you. I'm getting thoroughly confused with all different kinds of bracketing in TW5.
--
You received this message because you are subscribed to a topic in the Google Groups "TiddlyWiki" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tiddlywiki/l-Yx8WOJtxA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/dd120965-9281-4e41-9eeb-484333a43cbb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Sorry, I actually meant macro definition, not invocation. I'll try this, see if it works.
\define x(y:<<currentTiddler>>)
--
--
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 tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/e17fbd6b-985c-4acb-a960-ef58f3b67b57%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Gladly! I have a tree macro, I made it parameterized on purpose, so I could display any tree from any tiddler. Then I thought it wold be nice if I could invoke it without a parameter, when I want to display the tree originating from the current tiddler.
\define _ra_treeN(node)
;[[$node$]]
:<$macrocall $name=_ra_tree node="$node$"/>
\end
\define _ra_tree(node)
<$tiddler tiddler="$node$">
<$list filter="[<currentTiddler>tagging[]!<currentTiddler>!tag[$:/_ra/tags/Bookmark]!tag[$:/_ra/tags/Archive]!nsort[score]]">
<$macrocall $name=_ra_treeN node={{!!title}}/>
</$list>
\end
The default values for macro parameters can only be specified as literal strings, I'm afraid. Can you expand on the situation, perhaps I can advise on alternatives?
\define x(y:<<currentTiddler>>)
$y$
\end
<<x>>
\define z()
This is some text
\end
\define x(y:<<z>>)
$y$
\end
<<x>>The default values for macro parameters can only be specified as literal strings, I'm afraid.
Jeremy.
On 20 Dec 2018, at 09:40, RA <8pa...@gmail.com> wrote:Just wanted to check, since I'm not following the development closely anymore… Is it still not possible to use anything but a literal as a macro parameter default? (I trimmed the old thread below, please see this in Groups for background info.)