Can you elaborate on "The url field contains a syntax that renders image 
urls"?

<$transclude field=url> should be the same thing as {{!!url}}, so I don't 
think that's actually your problem. If you mean that it contains wikitext 
references like transclusions, you need to *wikify* the contents of the URL 
field in order to get that URL. Probably what's happening is that you were 
able to use {{!!url}} as a parameter to the img tag, but were only able to 
use the transclude widget at the top level of your wikitext (where anything 
that comes out of a transclusion is automatically wikified), so it looks 
like the transclude widget is making the difference.

Wikifying the contents would look something like:

<$wikify name=wikifiedLink text={{!!url}}>
  <img src=<<wikifiedLink>>>
</$wikify>



On Tuesday, November 24, 2020 at 12:01:20 AM UTC-6 W Yan wrote:

> Mohammad, thank you for the solution! Just tried it and it worked great. 
> Now I'm having a go with <img src> thing, and I think I am pretty close... 
> I'm at
>  
> \define imgsrc(url)
> <img src="$(url)$">
> \end
> <$set name=url value={{!!url}}>
> <<imgsrc url>>
> </$set>
>  
> right now, but can't get my head around using <$transclude field=image/> 
> instead of {{!!url}}. The url field contains a syntax that renders image 
> urls, and just transcluding with {{!!url}} doesn't seem to render the 
> syntax at all. It only works when I use transclusion widget, but you can't 
> include widgets inside attributes, so I'm stuck.
>

-- 
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/08bf42b7-7723-41b4-a941-e82ad9dbe1b8n%40googlegroups.com.

Reply via email to