Files
TiddlyWiki5/editions/tw5.com/tiddlers/testcases/RevealWidget/TextReference.tid
lin onetwo e339f112a4 Fix/Widget css leading space (#9427)
* fix: trim tc-reveal class

* test: " tc-reveal" -> "tc-reveal"

* Create #9427.tid

* fix: more widgets

* Update #9427.tid
2025-11-12 11:57:02 +00:00

23 lines
650 B
Plaintext

created: 20240721163229297
description: Reveal widget text references
modified: 20240721174826529
tags: $:/tags/wiki-test-spec
title: TestCases/RevealWidget/TextReference
type: text/vnd.tiddlywiki-multiple
title: Narrative
The state attribute of the reveal widget can use the text reference syntax to refer to a specific field. In this example if the field ``jeremy`` contains the text ``tiddlywiki``, then the reveal widget's content will be displayed.
+
title: Output
jeremy: tiddlywiki
<$reveal type="match" state="!!jeremy" text="tiddlywiki">
~TiddlyWiki!
</$reveal>
+
title: ExpectedResult
<p><span class="tc-reveal">
TiddlyWiki!
</span></p>