Hi Evolena,

Great news !
I didn't know of default values for macros. I've learnt a lot today.
Most of my use-cases are text references like {{!!title}} or some other 
field as it is common when using templates.

Thanks !

FrD


Le samedi 19 septembre 2015 21:44:08 UTC+2, Evolena a écrit :
>
> As all the examples you provided used a literal default value, it could 
> have been a suitable solution.
>
> But... after a little test... good news: a macro or variable seems to be 
> OK as default parameter value of a macro:
>
> \define default() test
> \define somevariablevalue(value:<<default>>) $value$
>
> <$macrocall $name="somevariablevalue" value=<<somevariable>>/>
>
> And textreference are ok too:
>
> \define somevariablevalue(value:{{!!field}}) $value$
>
> <$macrocall $name="somevariablevalue" value=<<somevariable>>/>
>
> What else? ^^
> (I've learnt some things today too!)
>
> Le samedi 19 septembre 2015 21:35:20 UTC+2, FrD a écrit :
>>
>> Hi Evolena,
>>
>> Thanks for the tip. I've tested it : it works.
>> But as Tobias says, it's only useful for literals.
>>
>> Anyway it's pretty useful for many cases.
>>
>> Thanks
>>
>> FrD
>>
>

-- 
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 http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/f8560461-c7f1-4e2c-90ff-f12e162e9e77%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to