created: 20241202003148804 description: Using a widget as a value tags: $:/tags/wiki-test-spec title: TestCases/WikifyWidget/WidgetValue/Success type: text/vnd.tiddlywiki-multiple title: Narrative If you use <<.wid wikify>>, you can get the rendered output and use it as a value. + title: Output <$wikify name="wikified-color" text={{widget}} > > style.background={{target}}> {{widget}} text on {{target}} is a good contrast + title: widget <$transclude $variable="contrastcolour" target={{target}} fallbackTarget=<> colourA={{colourA}} colourB={{colourB}} /> + title: target text: purple + title: colourA text: white + title: colourB text: black + title: ExpectedResult

white text on purple is a good contrast