[TW5] Simple question - Syntax for concatenating texts and tiddler contents

39 views
Skip to first unread message

Matthew Petty

unread,
May 7, 2016, 4:47:38 PM5/7/16
to TiddlyWiki
I have a temp tiddler that contains the current episode number of my little personal podcast: $:/temp/current_podcast_episode
I want to have links to the various parts I need to write, like the intro, outro, etc.
I have these macros:
\define join2(1, 2)
$1$$2$
\end

\define join3(1, 2, 3)
$1$$2$$3$
\end

\define join4(1, 2, 3, 4)
$1$$2$$3$$4$
\end


But I can't seem to figure out how to make the following work:
<$link><<join3 "Podcast Episode " {{$:/temp/current_podcast_episode}} " Intro">></$link>
It shows the correct text ("Podcast Episode 19 Intro"), but the link itself is just to the current tiddler.

This also doesn't work:
<$link to=<<join3 "Podcast Episode " {{$:/temp/current_podcast_episode}} " Intro">> ><<join3 "Podcast Episode " {{$:/temp/current_podcast_episode}} " Intro">></$link>

It has the link as "Podcast Episode {{$:/temp/current_podcast_episode}} Intro"

What am I doing wrong?






Jed Carty

unread,
May 7, 2016, 5:34:36 PM5/7/16
to TiddlyWiki
Reply all
Reply to author
Forward
0 new messages