Folks,

Nice to here discussion of the double-underscore to convert a macro 
parameter $parmname$ into a <<__parmname__>> variable.

We all need information that helps us understand and remember its 
functionality, I think my first line above helps this but more work is 
needed.

Double underscore in wiki text __underlines content__ but can be used to 
convert a macro parameter $parmname$ into a <<__parmname__>> variable.

<<represents>> variables, and in filters <represents> the inclusion of 
<<__parameterbecomesvariable__>> converts the parameter to a variable.

We however need more "why" not only "what" answers

I ask my self why

<$tiddler tiddler=<<__tiddler__>>>

Is better that or necessary instead of 
<$tiddler tiddler="$tiddler$">

In fact I have often used $parameters$ to pass a string into a button 
tooltip to avoid having to use the macrocall widget to permit variables, 
and you can use $parameters$ to concatenate like 
"$parameters$$otherparam$-suffix"

*WHY is the question we need to address a lot more in the documentation.*

Tony

On Tuesday, August 7, 2018 at 8:57:00 PM UTC+10, Stuart Amor wrote:
>
> Thank you Mat, that worked.  The only reason I had two separate marcos was 
> in desperation
>
> On Tuesday, 7 August 2018 11:39:09 UTC+1, Mat wrote:
>>
>> I'm unsure why you have two separate macro calls in your example. 
>> Regardless, maybe this works:
>>
>>
>> \define image-inner() [img width=80 [$(caption)$|$(tiddler)$]]
>>
>> \define image(tiddler)
>> <$vars caption={{$tiddler$!!caption}} tiddler='$tiddler$' >
>> <<image-inner>>
>> </$vars>
>> \end
>>
>> <:-)
>>
>>
>>

-- 
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/16420061-7599-4c1b-8082-9c93e1cb508d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to