<$setvars
_dq='"'
_nameoutputprefix="<$macrocall $name="
_nameoutputspecies={{Doff_Species!!species}}
_nameoutputname={{$:/temp/genericname}}
_nameoutputsuffix="/>"
nameone="nameoutputname[1]"
nametwo="nameoutputname[2]"
namethree="nameoutputname[3]"
nameoutputline="nameoutputprefix dq \name_output\ dq \ species=\
nameoutputspecies \ first=\ dq nameone dq \ second=\ dq nametwo dq \
third=\ dq namethree dq nameoutputsuffix">
<<nameoutputline>>
</$setvars>
This builds a macrocall widget that can contain, if needed, both single and
double quotes. _dq is defined as a double-quote inside single quotes.
nameone, nametwo, and namethree are surrounded with the dq variable to
allow single quotes inside the name if present. Otherwise, both the macro
widget and the << >> way of calling a macro would not work.
<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
This
email has been sent from a virus-free computer protected by Avast.
www.avast.com
<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
<#DDB4FAA8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
On Tue, Jan 12, 2016 at 1:18 AM, Tobias Beer <[email protected]> wrote:
> Hi David,
>
> Would you mind posting an example to play around with?
>>
>>
> Best wishes,
>
> Tobias.
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "TiddlyWiki" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/tiddlywiki/-Fw2LzCs5MM/unsubscribe.
> To unsubscribe from this group and all its topics, 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/d8fe290c-fa3a-4dca-b25b-de6537723614%40googlegroups.com
> <https://groups.google.com/d/msgid/tiddlywiki/d8fe290c-fa3a-4dca-b25b-de6537723614%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>
--
David Allen
--
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/CALaYjLj5w8vMBz5LKfxKVGTJF3dfZdbO1eCWu64gwtmFJQJ%3DFA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.