Hi, first post here.
I’m new to TiddlyWiki and trying to create a simple macro to add quotes, with 3 parameters: quote, author, and class.
Here’s what I have so far:
\define bmquote(quote, autor:"", class:"escrita")
<blockquote class={{{ [[tc-quote-]addsuffix<class>] }}}>
<p><<quote>> ― <span><<autor>></span></p>
</blockquote>
\end
The issue is with the author field (<>).
For example, when I call the macro like this:
<<bmquote "Thinking about what we can't control only wastes energy and creates its own Enemy." "[[Worf]], son of Mogh" "cinema">>
It renders [[Worf]], son of Mogh
as a link, but the Worf
tiddler doesn’t show the backlink.
I asked AI, and it suggested replacing <> with one of these:
Using $wikify
(removes the link entirely):
<$wikify name="parsed-autor" text=<<autor>>>
<$text text=<<parsed-autor>>/>
</$wikify>
Using $transclude:
<$transclude $variable="autor" $mode="inline"/>
Neither gives me the desired result: a clickable link and a backlink in the target tiddler.
Is there a way to keep the link and make sure the backlink appears in the linked tiddler?
Thanks in advance!