mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-01 23:56:18 +00:00
29 lines
630 B
Plaintext
29 lines
630 B
Plaintext
|
title: TestCases/DataWidget/ImportedTiddler
|
||
|
type: text/vnd.tiddlywiki-multiple
|
||
|
tags: [[$:/tags/wiki-test-spec]]
|
||
|
description: Imported tiddler definition
|
||
|
display-format: plaintext
|
||
|
|
||
|
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"
|
||
|
+
|
||
|
title: Output
|
||
|
|
||
|
<$data $tiddler="Hello" custom="Alpha"/>
|
||
|
+
|
||
|
title: Hello
|
||
|
modifier: JoeBloggs
|
||
|
|
||
|
This is the Hello tiddler
|
||
|
+
|
||
|
title: ExpectedResult
|
||
|
|
||
|
<p>[
|
||
|
{
|
||
|
"title": "Hello",
|
||
|
"modifier": "JoeBloggs",
|
||
|
"text": "This is the Hello tiddler",
|
||
|
"custom": "Alpha"
|
||
|
}
|
||
|
]</p>
|