I don't believe you can use a dynamic default as you are attempting in your
example.
Instead, try:
\define test( level:3 base )
$level$, $base$
<$reveal type=gteq state="$base$!!depth" text=2>
WHEEE
</$reveal>
\end
<$macrocall $name="test" level=4 base={{!!title}}/>
-- Mark
On Wednesday, July 25, 2018 at 1:50:45 PM UTC-7, Joe Bush wrote:
>
> This is a very short text case for a macro I want to use inside a larger
> <$list>, so just using the default/currentTiddler won't work then.
>
> \define test( level:3 base:{{!!title}} )
> $level$, $base$
> <$reveal type=gteq state="$base$!!depth" text=2>
> WHEEE
> </$reveal>
> \end
>
> <<test level:4>>
>
>
> The intent is to build a list tree macro where I can pass in a level and
> have it build a tree that many levels deep. I'm using Reveal for the deeper
> parts, and am trying to use set the state in the macro parameters. As far
> as I understand it, I can't just do
>
> state="$level$"
>
> to get the state because state is a TextReference, which expects to be
> either a tiddler or a field, not just a simple string. I don't want to have
> to create state tiddlers manually for each time I want to call this macro,
> because there'll be a lot of them.
>
> Any ideas?
>
--
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/02557e28-cbc1-44d9-b06a-06b69e1e7a8f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.