Actually, let me correct that. What I showed is actually working fine. What's not working is when I try to pass a variable created by a list widget into a macro when the tiddler stored in currentTiddler contains spaces in its title. I'm doing the following:
<$macrocall $name="ezlink" input=<<currentTiddler>>/>
\define ezlink(input)
<$link to=$input$>$input$</$link>
\end
<$link to=FOO>FOO</$link><$link to=FOO BAR>FOO BAR</$link><$link to="""$input$""">$input$</$link><$link to="""FOO BAR""">FOO BAR</$link><$link to="$input$">$input$</$link><$link to="FOO"BAR">FOO"BAR</$link><$link to="""FOO"BAR""">FOO"BAR</$link>
|
This email has been sent from a virus-free computer protected by Avast. www.avast.com |
--
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/5xeFXiAMVZE/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 https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/7120e4ff-2be2-42c0-b04c-a0a8b78d8783%40googlegroups.com.
That worked for that situation, but now isn't working for another. When I pass a text reference, say {{!!faction}}, it links to a tiddler called {{!!faction}}, instead of a tiddler whose title matches the faction field.
\define macro(param)
<$setvars _myparam=$param$ myparam="myparam">
Do something cool with <<myparam>>
</$setvars>
\end