1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-01 15:46:18 +00:00
TiddlyWiki5/editions/test/tiddlers/tests/data/messages/tm-new-tiddler/default.tid
Mario Pietsch 38657a2323
tm-new-tiddler - Create empty tags field only if template or additionalFields contain a tags-field (#8559)
* create empty tags only if template or additionalFields contain a tags-field

* fix typos

* add tests for tm-new-tiddler message

* tm-new-tiddler add standard test with tags field
2024-09-06 19:46:53 +01:00

39 lines
838 B
Plaintext

title: Message/tm-new-tiddler/default
description: tm-new-tiddler message will create a new draft tiddler
type: text/vnd.tiddlywiki-multiple
tags: [[$:/tags/wiki-test-spec]]
title: Output
<pre>{{Draft of 'New Tiddler'||output-template}}</pre>
+
title: Actions
<$navigator story="$:/StoryList">
New in TW v5.3.6
Create a draft tiddler which should have __no__ tags field
<$action-sendmessage $message="tm-new-tiddler"
text="some text"
z-field="a"
/>
</$navigator>
+
title: output-template
<!-- This template is used for saving tiddlers in TiddlyWeb *.tid format -->
<$fields exclude='text bag created modified' template='$name$: $value$
'></$fields>
<$view field="text" format="text" />
+
title: ExpectedResult
<p><pre>draft.of: New Tiddler
draft.title: New Tiddler
title: Draft of 'New Tiddler'
z-field: a
some text</pre></p>