I wonder if this is the same as: Github issue #3333 
<https://github.com/Jermolene/TiddlyWiki5/issues/3333>  and this Google 
Groups post 
<https://groups.google.com/forum/#!msg/tiddlywiki/gmddqRgRFaI/Vz2B1KXlDwAJ>.

On Tuesday, March 12, 2019 at 4:11:06 PM UTC+7, Arlen Beiler wrote:
>
> I just discovered something that I think is undocumented but could be 
> extremely useful! When arguments are passed to the macrocall widget, it 
> first processes the param substitutions of the macro, AND THEN processes 
> the variable substitutions. This means that you can pass in a variable 
> substitution as a paramater, like this: 
>
> \define gt(a, b) $a$ $b$ +[nsort[]last[]remove[$b$]]
> <$list filter=<<gt "$(window-width)$" "512">> variable="temp">
>
> </$list>
>
> In case you're curious about the filter, it sorts the two arguments and if 
> the second one is larger the list will not output a DOM element. 
>
> Enjoy!
> Arlen
>

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
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/a7a7f305-b7cf-421a-9761-838952c2db8d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to