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:ContactInformationPicture/answer

29th January 2021 at 10:15pm

The simplest way to do this is using the $image widget:

<$list filter="[all[current]addsuffix[/Picture]is[tiddler]]">
  <$image source=<<currentTiddler>> width=300/>
</$list>

If you didn't go look up the $image widget in the documentation (tip: there's pretty much always a widget for what you want if you go look for it!), you might have used a macro with the wikitext syntax for including an image:

\define getImage() [img width=300 [$(currentTiddler)$]]

<$list filter="[all[current]addsuffix[/Picture]is[tiddler]]">
  <<getImage>>
</$list>

Or, if you prefer using a macro with parameters, you'll have to use a $macrocall widget to get the value of <<currentTiddler>> into the macro:

\define getImage(img) [img width=300 [$img$]]

<$list filter="[all[current]addsuffix[/Picture]is[tiddler]]">
  <$macrocall $name="getImage" img=<<currentTiddler>>/>
</$list>

Notice that, in all these cases, we took advantage of the current tiddler being set to the name of the picture tiddler within the $list widget, and the $list widget never displaying its body if the tiddler didn't turn out to exist.

Go to question: Ex:ContactInformationPicture