On Saturday, July 10, 2021 at 7:30:22 AM UTC-7 [email protected] wrote:

> I can create a field with *color*.
> And *caption*
> @@color:{{!!color}}; {{!!title}} @@
> The name is transmitted correctly, but the color is ignored. How to do it 
> right?
> In HTML*:*
> *<span class="tc-inline-style" style="color:{{!!color}};"> New Tiddler 
> 121231 </span>*
>

1) You can't use a field reference as *part* of the inline style syntax
2) You can't use a field reference as *part* of an HTML style attribute 
value

To achieve the results you want, you can *construct the entire style 
attribute value using filtered transclusion*, like this:
<span style={{{ [[color:]addsuffix{!!color}] }}}> {{!!title}} </span>

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/12f780e0-76bf-408d-92dc-6a528c355390n%40googlegroups.com.

Reply via email to