On Tuesday, January 19, 2021 at 4:50:47 AM UTC-8 [email protected] wrote:

> I want to transclude an image in the text field if the tiddler has tag:
> Tag "Cold" show image "Blue.png"
> Tag "Cool" show image "Aqua.png" "
> Tag "Neutral" show image "White.png"
> Tag "Warm" show image "Orange.png"
> Tag "Hot" show image "Red.png"
>

Try this:
Create a tiddler, e.g., ShowColorImage, tagged with $:/tags/ViewTemplate, 
containing:
<$list filter="[<currentTiddler>tag[Cold]]">{{Blue.png}}</$list>
<$list filter="[<currentTiddler>tag[Cool]]">{{Aqua.png}}</$list>
<$list filter="[<currentTiddler>tag[Neutral]]">{{White.png}}</$list>
<$list filter="[<currentTiddler>tag[Warm]]">{{Orange.png}}</$list>
<$list filter="[<currentTiddler>tag[Hot]]">{{Red.png}}</$list>

enjoy,
-e

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/f9e28364-115c-4edf-90ae-5a9a38522110n%40googlegroups.com.

Reply via email to