Hi Måns,

It's all a question of what's parsed when. Macros are just a simple text 
substitution system. They know nothing about WikiText: the only special 
notation they know about is *$param$* and *$(var)$*. And their results are 
not parsed as WikiText either, unless they happen to be returned to a 
parsed context, such as the surface level of a tiddler. So if you write 
*<$widget 
attribute=<<m>>/>*, the result of the call to *m* will *not* be treated as 
WikiText.

In your case, you're passing the value *[[item one with 
{{!!see_fieldvalue}}]] [[item two]]* as a parameter to your *appendButton* 
macro, and therefore *that exact string* will be appended to the text of 
*SomeTiddler*. The string then finds itself at the surface of a tiddler, 
and so it duly gets parsed as WikiText, but by then it's too late: the 
*!!field* notation will refer to a field of *SomeTiddler* rather than 
*ThisTiddler*.

Setting *tv-wikilinks* to *no* doesn't suppress the *{{…}}* functionality, 
but as you say, the string you're dealing with has *{{…}}* inside *[[…]]*, 
and the WikiText parser always treats the contents of *[[…]]* literally, 
doing no further analysis on it, other than looking for the optional *|* 
suffix.

– æ

-- 
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/d/optout.

Reply via email to