Hi Bruce,

maybe my newTiddlerMacro MOD (NewTemplateTiddlerMacro[1]) can help you. I'm 
not a programmer and it is my first attempt with JS. It is not documented, 
in an early stage but it works for me. The parameters are the same as in 
newTiddlerMacro but with the additional parameter "textTemplate" (cf. 
example template in the TW file[2]).

Albert


[1] 
https://groups.google.com/forum/?fromgroups=#!topic/tiddlywiki/AyelFKqAAG4
[2] https://www.dropbox.com/s/6sy7bi6gf3xquy0/NewTemplateTiddlerMacro.html
 

Am Montag, 28. Oktober 2013 15:36:27 UTC+1 schrieb Bruce Seely:
>
> Thank you Eric,
>
> The follow-up question is how I can parametrize the macro invocation text?
> I'd like to be able to do the following, where the values "13456" and "My 
> title text" are supplied by variables:
>
> <<newTiddler label:'make foo'  title:'foo-*13456*: *My title text*' 
> text:'<<baz *13456*>>' >>
>
> I don't think assigning the variables will be difficult, but I can't see 
> how to include the first variable, "13456", into the text parameter.
>
> Can store.getTiddlerText(), accept an argument that gets substituted in 
> the included tiddler text?
> Or, can a value be included in the text with the evaluated parameters 
> approach?
>
> Thanks, again.
>
>
>
> On Friday, October 25, 2013 7:17:24 PM UTC-4, Eric Shulman wrote:
>>
>> On Friday, October 25, 2013 3:53:34 PM UTC-7, Bruce Seely wrote:
>>
>>> I would like to use the newTiddler macro to create a tiddler that 
>>> contains a macro invocation, but the closing ">>" of the inserted macro 
>>> invocation is parsed as the end of the newTiddler macro. Is there any way 
>>> around this?
>>>
>>
>> Yes.  You can use evaluated parameters to quote the ">>" symbol, like 
>> this:
>>
>>    <<newTiddler ... text:{{"<<someMacro ... >\>"}} ... >>
>>
>> or, you can move the desired text with the macro invocation into a 
>> separate tiddler (e.g,. "SomeTiddler"), and then retrieve it using:
>>
>>    <<newTiddler ... text:{{store.getTiddlerText("SomeTiddler")}} ... >>
>>
>> enjoy,
>> -e
>> Eric Shulman
>> TiddlyTools / ELS Design Studios
>>
>> HELP ME TO HELP YOU - MAKE A CONTRIBUTION TO MY "TIP JAR"...
>>    http://www.TiddlyTools.com/#Donations
>>
>> Professional TiddlyWiki Consulting Services:
>> Analysis, Design, and Custom Solutions.
>>
>>

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to