…display some text depending of this User fields color…
@@color:{{!!color}};Status:@@
The @@...; content@@
syntax is basically shorthand for <span style="...">content</span>
and when the above wikitext is parsed, it results in the following HTML:
<span class="tc-inline-style" style="color:{{!!color}};"> Status:</span>
The problem is that you are trying to mix literal text syntax (color:
) with a wiki reference ({{!!color}}
) within the style="..."
attribute value and the TWCore does not parse text attribute values. Instead, they are simply passed along for handling by the TWCore code that processes the particular widget.
However, the TWCore does parse attribute values that are transclusions or variable references. Thus, you can achieve the results you want by using “filtered transclusion” to construct the entire style attribute value, like this:
<span style={{{ [[color:]addsuffix{!!color}] }}}>Status:</span>
enjoy,
-e