sorry but I still have problems.  The macrocall syntax suggested by Tony 
and Álvaro does not work, the tiddler displays the code  although with the 
image itself displayed in place of the image filename.  I have tried 
replacing 
img=<<ximg imagename.jpg>>  with img="<<ximg imagename.jpg>>" and even with 
the full path to the image.    I think shiraz is installed correctly since 
the standard syntax <<image-card "ximg imagename.jpg>  ... >> works fine.  
Is it possible that shiraz macros can't be used with MacroCall ?  Or (more 
likely) the error remains with my incomplete understanding?  

I don't know if it matters but I am using TiddlyDesktop under Linux Mint 
19.3 and TiddlyWiki 5.1.22 with Shiraz 2.4.0

thanks, bye, Robin

PS My registration with Talk TiddlyWiki 5 Discourse is now complete so I 
will continue this discussion, if necessary, over there after this post.  
(i had to use an alternative email address, probably some drastic blocking 
from my work email security settings, the Talk Discourse confirmation email 
never arrived, even in my spam folder)


On Wednesday, 1 September 2021 at 22:01:51 UTC+10 Álvaro wrote:

> I think that you don't "see" the following text before your cited text:
> " *The advantages of the widget formulation are: "* 
>
> I think it is easier to understand by looking at the two codeblocks: In 
> the first block 2 examples with normal syntax and In the second block 3 
> examples with macro call *widget*.
>
> You have to use de widget. In your case, something like the 2nd example of 
> 2nd codeblock. (But you don't have to use the same indirection in a 
> macrocall (widget)
> <$macrocall $name="image-card" img=<<ximg imagename.jpg>>  width="" 
> align="left" *...*
>  
>
> El miércoles, 1 de septiembre de 2021 a las 12:51:12 UTC+2, 
> rwi...@museum.vic.gov.au escribió:
>
>> Hi all
>>
>> I have been using the very handy ximg macro of Tobias Beer [
>> http://tobibeer.github.io/tb5/#External%20Image%20Path]  to provide a 
>> URL where my images live.  Works great, except that I now wish to use  the 
>> image-card macro from the shiraz plugin for more options to display 
>> images.  According to https://tiddlywiki.com/#MacroCallWidget :  
>> Macro parameters are specified as widget attributes, thus allowing 
>> indirection via {{title!!field}}, <<macroname>> or {{{filter}}}
>>
>> so i have tried including <<ximg imagename.jpg>> within the standard 
>> syntax  
>> <<image-card img:"imagename.jpg"  width:"" align:"left" caption:"" 
>> title:"" text:"" footer:"" pos:"top" alt:"">> 
>>
>> to get
>>
>> <<image-card img:"<<ximg imagename.jpg>>"  width:"" align:"left" 
>> caption:"" title:"" text:"" footer:"" pos:"top" alt:"">>    
>>
>> but having tried various modifications I now surmise that nesting 
>> MacroCallWidgets is not allowed.  Nor could I find this addressed in the 
>> group archives
>>
>> No doubt the solution is dead simple but not for beginners like me.  I'd 
>> be grateful for help
>>
>> very many thanks, Robin
>>
>> [I would have posted this to the new Talk Tiddlywiki discourse but I'm 
>> _still_ waiting for my confirmation email to complete registration]
>>
>>
>>
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/315fcd2e-5374-4f08-b548-ed47dd15a58fn%40googlegroups.com.

Reply via email to