Well, this works, though it may not be what you have in mind:

\define firstlevel(param1:"the parameter")
<<secondlevel "$param1$">>
\end

\define secondlevel(param1:"the other parameter)
And here I need $param1$
\end

<<firstlevel "you">>

You could also package the first parameter as a variable:

\define firstlevel(param1:"the parameter")
<$vars myvar="$param1$">
<<secondlevel>>
</$vars>
\end

\define secondlevel()
And here I need $(myvar)$
\end

<<firstlevel "you">>

Notice that when you use a parameter passed as a parameter you use 
$parameter$ but when you use a variable (I'm sure I'm using the 
terminology)  then you use $(variable)$. Both forms, $param$ and 
$(variable)$ are only good when called INSIDE a macro.

HTH
-- Mark


On Tuesday, June 19, 2018 at 3:20:49 PM UTC-7, Jan wrote:
>
> Hi! 
>
> How do I get this to work? 
>
> \define firstlevel(param1:"the parameter") 
> <<secondlevel>> 
> \end 
>
> \define secondlevel() 
> And here I need $param1$ 
> \end 
>
> <<firstlevel "you">> 
>
> Thanks! 
> Jan 
>

-- 
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/52ee0126-988e-45fe-9a72-fd07bad65a5f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to