This is exactly the case, because the color field value is not wikified, so transclusions don’t work there.
HOWEVER…here’s a little trick that does work:
The $:/config/TiddlerColourFilters/color-field shadow tiddler defines a filter that is used in a cascade to determine when to apply the !!color field value to a tiddler. By default, this shadow tiddler contains:
[has[color]then{!!color}]
Edit this shadow tiddler and change the filter definition to:
[get[color]removeprefix[{{]split[!!]first[]get[color]] ~[has[color]then{!!color}]
What this does:
- Get the
color field value. Note that get[color] only returns a value if the color field has a non-blank value, so it implicitly applies the has[color] test.
- Look for a
{{ prefix in the color field value and remove it.
- Split the remaining field value at the
!! and take the first[] part to get the title of the tiddler being “transcluded”
- Then, get the color field value from that tiddler
Note that, if the tiddler doesn’t have a color field value, or that value doesn’t start with {{, or the referenced tiddler doesn’t have a color field, or that color field value is blank, then the filter uses the previously defined TWCore standard test for when to apply a color field value.
Let me know how it goes…
enjoy,
-e