macrocall to transclude... Why no worky?

107 views
Skip to first unread message

Mat

unread,
Sep 10, 2015, 6:10:35 PM9/10/15
to TiddlyWiki
A: {{Lorem}}

B
: <$transclude tiddler="Lorem"/>

C
: <$macrocall $name="transclude" tiddler="Lorem"/>



A works fine. B works fine. C... nothing!?

What am I misunderstanding?

<:-)

Evolena

unread,
Sep 10, 2015, 6:19:51 PM9/10/15
to tiddl...@googlegroups.com
Maybe transclude is a widget and not a macro? ;)

A : transclusion
B : widget call
C : macro call of something that doesn't exist

Mat

unread,
Sep 10, 2015, 7:37:55 PM9/10/15
to TiddlyWiki
On Friday, September 11, 2015 at 12:19:51 AM UTC+2, Evolena wrote:
Maybe transclude is a widget and not a macro? ;)


Thanks!!! I wish I could say "Aw, I knew that!" and, in a way I can, but I know I've done this exact mistake many times before so... Well, thank you Evolena!

<:-)

Evolena

unread,
Sep 11, 2015, 2:25:16 AM9/11/15
to TiddlyWiki
I haven't understood it at the first glance. And because of the final smiley I was wondering if you were kidding (sharing a funny mistakes that you had already resolved) or if it was serious.

If it often happens to you, you can define that macro:

\define transclude(tiddler) <$transclude tiddler="$tiddler$"/>

PMario

unread,
Sep 11, 2015, 4:38:12 AM9/11/15
to TiddlyWiki

doesn't work for tiddler titles, that contain a double quote.

\define transclude(tiddler) <$transclude tiddler="""$tiddler$"""/>

This is less likely to fail if there are double quotes in a tiddler title. The problem here is, that the transclude widget has a lot more additional parameters too, which won't work here.
Also block mode is a problem ...

-m
 

Mat

unread,
Sep 11, 2015, 8:50:26 AM9/11/15
to TiddlyWiki
Thank you both. I'll probably not make a macro because I don't want to encourage myself to make the a similar mistake for other widgets. But I sincerely appreciate your suggestions.

On Friday, September 11, 2015 at 8:25:16 AM UTC+2, Evolena wrote:
because of the final smiley I was wondering if you were kidding (sharing a funny mistakes that 

<:-)  <----- my dead serious look. Never play poker with me.
Reply all
Reply to author
Forward
0 new messages