[tw5] Re: pass variable to macro via macrocall not working

2020-07-02 Thread Dave Parker
Tony - yes, I use the {{||tiddler}} format a lot as its very convenient for setting up a remote tiddler as a template to view the local tiddler's data, especially if the code to transform the data is quite big. (in this case its quite simple) Thank you Mark, wikify for the win!! You can see i

[tw5] Re: pass variable to macro via macrocall not working

2020-07-02 Thread 'Mark S.' via TiddlyWiki
We don't know what's in vasSumGraph (or New Tiddler 1 in your other example), so it's hard to comment. I can only speculate that vasSumGraph contains a process for generating a list of numbers. In which case you might need to wikify it first, <$wikify text={{||vasSumGraph}} name="nums"> <$spar

[tw5] Re: pass variable to macro via macrocall not working

2020-07-02 Thread TW Tones
Dave, - You use value={{||New Tiddler 1}} - This is uncommon, I think you want the value to equal the content of New Tiddler 1 ? - *Use this without the "||" {{New Tiddler 1}} the default field is text* - you could equally say {{New Tiddler 1!!text}} or any other fieldname, bu

[tw5] Re: pass variable to macro via macrocall not working

2020-07-02 Thread Dave Parker
That didn't work :'( I think I'm getting closer though: if you go to here: http://tobibeer.github.io/tw5-plugins/#sparkl and in [[New Tiddler]] paste this

[tw5] Re: pass variable to macro via macrocall not working

2020-07-02 Thread Dave Parker
Oh, yes Eric showed me that the other day on a different thread. (Got to get my different brain cells to talk to one another) Thank you!, I'll try that out later today -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this grou

[tw5] Re: pass variable to macro via macrocall not working

2020-07-02 Thread Mat
Try \define sprk2(val) <$sparkl values={{{ [enlist[$val$]] }}} /> > <:-) -- 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

[tw5] Re: pass variable to macro via macrocall not working

2020-07-02 Thread Dave Parker
Thank you for looking at this Tony, when I take out the quotes, Enter code here..\define sprk2(val) <$sparkl values="$val$"/> $val$ :: <$sparkl values="13 7 19 15"/> \end \define sprk() <$macrocall $name=sprk2 val={{||vasSumGraph}}/> \end ..<>... here's what happens As you can see, now the p

[tw5] Re: pass variable to macro via macrocall not working

2020-07-01 Thread TW Tones
Dave, First thing I notice is val="{{||vasSumGraph}}" The contents will be passed as a literal string. Use this instead. val={{||vasSumGraph}} When using macros or transclusions the delimiters they use such as `<<` and `{{` doubles as a way to delimit themselves. Additional delimiters just sa