You might try invoking it like this:

<$macrocall $name="listlinks" text={{!!authors}}/>

Where "text" is whatever you have set up as your parameter variable name. 
That seemed to work on my quick test.

Mark

On Wednesday, April 13, 2016 at 8:26:20 AM UTC-7, Tristan Kohl wrote:
>
> Hey guys,
>
> i started creating my e-book management with TW a couple days ago. But 
> there are still some things I do not get right away so I hope you can help 
> me out with them.
>
> First a short explanation of my "design": I have a template tiddler which 
> is used to show the details of a book. In this template a call my custom 
> macro to make a comma separated list of links from a field with comma 
> separated author names. So i.e. field "authors" contains *Mark Twain* and 
> *J.R.R. 
> Tolkien* separated by comma. My macro produces links like *[[Mark 
> Twain]], [[J.R.R. Tolkien]]* so I can find books for every author via 
> backlinks.
>
> My problem is that I can not figure out, how to use the value of "authors" 
> within my JavaScript macro. At the moment I use the *set* widget to 
> create a variable authors:
> <$set name=authors value={{!!authors}}><$macrocall $name="linklist" field=<
> <authors>> /></$set>
>
> But this looks like overkill for me and is not that readable, so I wonder 
> if it Is possible to replace this whole setup with something like (which 
> does not work for me):
> <<linklist {{!!authors}}>>
>
> There is another question that bothers me. As I am not a native English 
> speaker I do not get the difference between substitution and transclusion. 
> I figure one is *before* the macro call and the other one *after* that? 
> But which is when and how do I use substitution at all? Unfortunately the 
> documentation is very short and abstract about this I feel.
>
> Thanks for your help
> Tristan
>

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@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/611c5898-cc13-43b7-94a6-2ac17124e9f4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to