Did you try photographer="name with spaces" or photographer="""name with
quotes and spaces"""
On Monday, 24 December 2018 11:29:32 UTC+11, Magnus wrote:
>
> Thanks for your suggestion but I can't get this either to work, the
> photographer variable does not show
>
> Den söndag 23 december 2018 kl. 23:49:17 UTC+1 skrev Mark S.:
>>
>> 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/f2b893f5-528e-4d65-b168-66a4f0fd9b2c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.