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:MacroCallAsParameter

9th April 2021 at 2:48pm

Rewrite the example in The $macrocall widget can take variables as parameters to call a macro animalLinkText to get the value of the linkText parameter to the wikipediaLink macro. In other words, replace the <<linktext>> variable that's currently there with a macro.

The animalLinkText macro should take a letter as a parameter and output the text An animal which begins with {LETTER}, where {LETTER} is the parameter passed. Update the example to display the appropriate link text for each of the three animals.

Go to answer: Ex:MacroCallAsParameter/answer