mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-12-26 10:00:34 +00:00
106fe2dfb9
* Provide examples for the wikify widget * fix a typo in the wikify widget doc tiddler * Update and rename TestCases_WikifyWidget_WidgetInput_Fail.tid to TestCases_WikifyWidget_WidgetValue_Fail.tid * Update and rename TestCases_WikifyWidget_WidgetInput_Success.tid to TestCases_WikifyWidget_WidgetValue_Success.tid * Update WikifyWidget.tid * Update TestCases_WikifyWidget_WidgetValue_Fail.tid * Update TestCases_WikifyWidget_WidgetValue_Success.tid * Update WikifyWidget.tid * Update TestCases_WikifyWidget_WidgetValue_Success.tid fix small error causing validation to fail * Update TestCases_WikifyWidget_WidgetValue_Success.tid * remove trailing end line * remove trailing new line * add description, remove modified field
19 lines
524 B
Plaintext
19 lines
524 B
Plaintext
created: 20241202011409888
|
|
description: Accurate word count
|
|
tags: $:/tags/wiki-test-spec
|
|
title: TestCases/WikifyWidget/WordCount/Success
|
|
type: text/vnd.tiddlywiki-multiple
|
|
|
|
title: Narrative
|
|
|
|
If you use wikify, you can calculate an accurate word count.
|
|
+
|
|
title: Output
|
|
|
|
<$wikify name="lorem" text={{lorem}} output="text">Word count = <$count filter="[<lorem>split[ ]!is[blank]]"/></$wikify>
|
|
+
|
|
title: lorem
|
|
text: <$list filter="[range[1],[3]]"><$text text=" word "/></$list>
|
|
+
|
|
title: ExpectedResult
|
|
text: <p>Word count = 3</p> |