Try
\define img_gallery2(target_tiddler)
<$list filter="[<__target_tiddler__>!is[missing]] ~[title<currentTiddler>]">
<div style="width: 33%; float: right;">
<<single_image3>>
<<add_gallery2>>
</div>
</$list>
\end
On Saturday, December 21, 2019 at 11:32:31 AM UTC-8, David Allen wrote:
>
> *I do not want a new plugin, so please don't suggest one!*
> I have a macro as follows:
>
> \define img_gallery2(target_tiddler)
> <div style="width: 33%; float: right;">
> <<single_image3>>
> <<add_gallery2>>
> </div>
> \end
>
> Right now, target_tiddler is not used. single_image3 and add_gallery2
> both use text references for the currentTiddler variable (such as
> {{!!images}} ).
>
> I want to expand this macro to set currentTiddler to the value of
> target_tiddler only if target_tiddler is defined, but leave it alone
> otherwise.
>
> Anyone have any suggestions?
> *I do not want a new plugin, so please don't suggest one!*
>
--
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 view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/0ee5f51b-57d5-4a89-b0ac-89919b892e39%40googlegroups.com.