Using the following 2 classes assigned to the image, it will automatically arrange the text around the image. With the padding: setting you can adjust the gap between the image and the text.
Centering an image should make it more prominent and should not flow text around it. So it uses margins and text-align: center rule to center the image
When macro parameters are not constant values, but variables, filters or text references, the <<macroname ...>> shortcut syntax can’t be used.
In these cases, you can use the <$macrocall> widget, or the <$transclude> widget (on recent TW versions).
These examples might be slightly confusing because the image-left macro has a name parameter, and the <$macrocall> widget has a $name parameter. See the official documentation here and here for a better explanation.
hmmm. That’s strange. According to the documentation it should work.
@saqimtiaz … It seems the _images[] filter does not find the images if they are called with macros. But I am not sure why. I did not have a closer look into the code yet.
The _images filter works similarly to how links[] works, by looking at the parseTree. So when you don’t references images directly in the wikitext, they aren’t picked up.
You can try _images:all[], which wikifies the tiddler to extract all the images, but is also therefore more computationally heavy.
OK, then it uses the parse-tree to search for the image marker. It does not see the image widgets, since they are only visible in the widget-tree. The parse-tree for procedures or macros does not show links or images, it still shows this info as unresolved parameters.