Thanks Eric,

The lesson for me to take out of this is to "think outside the double curly 
braces". I actually mean that quite seriously.

In my original problem I asked this
`<span style="fill:*{{!!color}}*;">{{$:/core/images/clone-button}}</span>`
and it did not work
A good strategy is to look outside the *{{!!color}}* as something I can 
replace, "fill:*desired*;" as you have done.

Regards
Tony


On Tuesday, June 9, 2020 at 10:12:26 PM UTC+10, Eric Shulman wrote:
>
> On Tuesday, June 9, 2020 at 5:01:44 AM UTC-7, TonyM wrote:
>>
>> The Following will color the SVG image in the transcluded tiddler
>> <span style="fill:blue;">{{$:/core/images/clone-button}}</span>
>> Is there a simple way to get the color from the local tiddler's color 
>> field?
>>
>
> You can use a filter parameter to construct the style definition, like 
> this:
> <span style={{{ [{!!color}addprefix[fill:]addsuffix[;]] }}}>
> {{$:/core/images/clone-button}}</span>
>
> Note: this can be simplified a bit more by omitting the trailing 
> semi-colon, like this:
> <span style={{{ [{!!color}addprefix[fill:]] }}}>
> {{$:/core/images/clone-button}}</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/b0a8f9b6-a5cf-49e1-8a5b-77c9272599d1o%40googlegroups.com.

Reply via email to