Hi Jeremy,
Thanks for taking the time to review, very helpful.
> Note that "$macroParameter$" and [[$macroParameter$]] are both really a
> combination of two bits of syntax: double square brackets and double quotes
> to quote a tiddler title that might contain spaces, and the $dollar$
> notation for substituting a macro parameter.
>
Yes, that is indeed obvious. My intention was to provide a quick visual
that that's indeed the case to provoke an "sure thing" effect.
> You've listed {{transclusion}} under "within macros" which might be
> misleading: there's no special handling for {{transclusion}} processing
> within macros; the transclusion is just part of the output of the macro and
> gets wikified at that point.
>
Yes, thank you. I have moved it to the "general wikitext" section and
mentioned that it, of course, applies to a macro body just the same.
Similarly, listing <$widget param="$macroParameter$"/> as a way to pass
> widget parameters; it's again a compound syntax, whereas the other examples
> in that section are basic variants of the attribute syntax.
>
Good to know and be reminded that it's not just about widgets, but any html
element attribute. I have renamed that section accordingly
> If we teach people that <$widget param="$macroParameter$"/> is an
> out-of-the-box syntax then they risk missing that they can do things
> like <$widget param="mytiddlertitleprefix-$macroParameter$"/>. The key is
> to gain an understanding of the two layers involved.
>
Yes, so that is actually an very good example which I have now added,
although surely important to know that the same does not work for macro
parameters.
I have restructured the whole thing now and put it here for reference...
general wiki text, including macros» <<variable>>» {{transclusion}}»
<variable>, "<variable>", [[<variable>]]general html element attributes,
including widgets, e.g. $macrocall» <$widget attribute=<<variable>>/>» <$widget
attribute=<<callMacroToComputeValue>>/>» <$widget
attribute={{transclusion}}/>» <$widget attribute="prefix-<<variable>>"/>»
<$widget
attribute=[[prefix-<<variable>>]]/>» <$widget
attribute="prefix-{{transclusion}}"/>within macro body» $macroParameter$,
"$macroParameter$", [[$macroParameter$]]» $(variable)$ (references a
variable from the context of the calling macro)» <$widget
attribute="prefix-$macroParameter$"/>» <$widget attribute=$macroParameter$/>
(unsafe
when having spaces)» $variable$, "$variable$", [[$variable$]]macro parameter
» <<macro param="$macroParameter$">> (only inside macro)» <<macro
<<variable>> >>» <<macro "<<variable>>" >>» <<macro param:<<variable>> >>»
<<macro
{{transclusion}}>>» <<macro param:{{transclusion}}>>in filters»
[$macroParameter$] (only filters within macros)» [tag<variable>] (no inner
square brackets!)» [tag{transclusion}] (only single curly brackets!)»
[tag[$(variable)$]]» [tag[$(variable)$]]
Best wishes, Tobias.
<javascript:>
--
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.