This is a case where you need to call a macro inside a macro, because you
want to embed $photgrapher$ and then get the result and embed that. So
there's two levels of concatenation.
This works for me:
\define lightBox(img, caption, photographer, template)
<$macrocall $name=lightBox2 img="$img$" caption="$caption$" photographer={{$
:/_dictionary/photographers##$photographer$}} template="$template$"/>
\end
\define lightBox2(img, caption, photographer, template)
<$button message="tm-modal" param="$:/_template/lightBox" set=
"$:/_state/currentImage" setTo="
img: https://raw.githubusercontent.com/magev958/Images/master/$img$.jpg
caption: $caption$
photographer: $photographer$">
[img [https://raw.githubusercontent.com/magev958/Images/master/$img$.jpg]]
$photographer$
</$button>
\end
<$macrocall $name=lightBox img="Motovun Jack.svg" caption="Myphoto is nice"
photographer=tom template="stuff"/>
You of course would call whatever your photographer's short name is ;-)
-- Mark
--
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/d6844218-ac6c-4af8-87c1-093ebdc00800%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.