This is a stripped-down version of a single section of Grok TiddlyWiki, optimized for fast loading and readability by search engines. Some features are missing.

For the full Grok TiddlyWiki experience, please visit the wiki version of this page.

Ex:QuotedProcedureCall

 7th October 2024 at 5:32pm

Try calling wikipediaLink using the $transclude widget with variables as parameters, but surround the variable references / procedure calls in the $transclude widget with "quotation marks", like this:

\procedure wikipediaLink(articleName, linkText:"Wikipedia Link")
  <a href=`https://en.wikipedia.org/wiki/$(articleName)$`>
  <<linkText>></a>
\end

<$let
  article="Aardvark"
  description="An animal"
>

* <$transclude $variable="wikipediaLink" articleName="<<article>>" linkText="<<description>>" />

</$let>

What's wrong with the output now? Why do you think this happened? And is there something that's unexpectedly right?

Go to answer: Ex:QuotedProcedureCall/answer