On Monday, September 20, 2021 at 12:35:18 AM UTC-7 [email protected] wrote:

> I can make the first method work by putting the URL in quotes, but I would 
> like to avoid that in general because it's more typing :): `<<todoLink "
> http://foo.org"; bar>>`. Why are the quotes required? I thought macro 
> expansion substituted text without treating the macro inputs as WikiText?
>

The `<<macroname param param param>>` syntax, in addition to handling 
*unnamed* parameters, also recognizes *named* parameters, using 
`name:value`.
Thus, a value like `http://foo.org` is parsed as a parameter named "http", 
with a value of "//foo.org".  By enclosing it in quotes, it avoids the 
named parameter parsing and passes it into the macro as a single parameter 
value

So... you can use the quotes to bypass the parameter name parsing: 
`<<todoLink "http://foo.org"; bar>>`
or, you can add a parameter *name*, like this:  `<<todoLink url:
http://foo.org bar>>`.

Either way, it's going to be "more typing" (but only a little).  Still, its 
less typing than the full `<$macrocall ...>` widget syntax.

-e

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/961a4043-498c-47ac-a2d2-1bb5eef6ab85n%40googlegroups.com.

Reply via email to