On Wednesday, January 9, 2019 at 2:27:34 AM UTC-8, Mohammad wrote:
>
> Mark,
>
> What I am curious about it is as below
>
>    1. Is this a way to use the value of some variable in different scope 
>    or program flow as Bimlas asked in his first post?
>    2. Why the code does not work without wikify widget? This is important 
>    question: why maco call cannot directly be used?
>
>
> -- Mohammad
>
>
>
Hi Mohammad,

1. If I understand your question, and Bimlas' question, then the answer is 
a qualified "yes". Under some circumstances it allows flows that are 
otherwise impossible.

For instance, if you have a set of tags and want use a count of each one as 
the input to another macro, perhaps for graphing purposes, you immediately 
encounter a problem: the count operator generates exactly one output. The 
only way to get an output like "5 12 16" is take a series of list outputs 
and combine them via wikify.

2. You can't use the output of a widget as the input to the attribute of 
another widget. That is, you can't do something like:

<$widget name=<$otherwidget attrib="stuff"/>/>

Widgets are like HTML tags, and you can't pass a HTML tag to the attribute 
of another HTML tag.

Also, a filter wants a single string with no line breaks: 
"[tag[stuff]has[field]]" but the list widget outputs everything with line 
breaks. OK, I "think" it outputs with linebreaks. It's hard to tell because 
if you let the browser render the output without explicitly putting in 
<br/> the browser renderer compresses out the line spaces.In any event, if 
you let Wikify do the rendering, any excess linefeeds will be removed 
before conversion to a string, just like the browser renderer does.

HTH
-- Mark

-- 
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 https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/0da1442e-8cea-4d4a-ae95-011399d96554%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to