2024-05-06 15:37:03 +01:00
|
|
|
title: TestCases/DataWidget/ImportedTiddler
|
|
|
|
type: text/vnd.tiddlywiki-multiple
|
|
|
|
tags: [[$:/tags/wiki-test-spec]]
|
|
|
|
description: Imported tiddler definition
|
2024-05-06 21:56:35 +01:00
|
|
|
display-format: plaintext
|
2024-05-06 15:37:03 +01:00
|
|
|
|
2024-05-08 13:26:14 +01:00
|
|
|
title: Narrative
|
|
|
|
|
|
|
|
Using the data widget to create a tiddler that is a copy of the tiddler "Hello" with the addition of the field "custom" set to "Alpha"
|
|
|
|
+
|
2024-05-06 15:37:03 +01:00
|
|
|
title: Output
|
|
|
|
|
2024-05-08 13:26:14 +01:00
|
|
|
<$data $tiddler="Hello" custom="Alpha"/>
|
2024-05-06 15:37:03 +01:00
|
|
|
+
|
2024-05-08 13:26:14 +01:00
|
|
|
title: Hello
|
2024-05-06 15:37:03 +01:00
|
|
|
modifier: JoeBloggs
|
|
|
|
|
2024-05-08 13:26:14 +01:00
|
|
|
This is the Hello tiddler
|
2024-05-06 15:37:03 +01:00
|
|
|
+
|
|
|
|
title: ExpectedResult
|
|
|
|
|
2024-05-06 21:56:35 +01:00
|
|
|
<p>[
|
2024-05-06 15:37:03 +01:00
|
|
|
{
|
2024-05-08 13:26:14 +01:00
|
|
|
"title": "Hello",
|
2024-05-06 15:37:03 +01:00
|
|
|
"modifier": "JoeBloggs",
|
2024-05-08 13:26:14 +01:00
|
|
|
"text": "This is the Hello tiddler",
|
2024-05-06 15:37:03 +01:00
|
|
|
"custom": "Alpha"
|
|
|
|
}
|
2024-05-06 21:56:35 +01:00
|
|
|
]</p>
|