Wow! Already three brackets have been used! Thank you. суббота, 10 июля 2021 г. в 18:22:55 UTC+3, Eric Shulman:
> 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/8aab0f01-965b-496c-97d1-ed0d7107ccf8n%40googlegroups.com.

