From 96cb66a27ee604e551a1c7417e6c5b9e3f5884d2 Mon Sep 17 00:00:00 2001 From: "jeremy@jermolene.com" Date: Sat, 21 May 2022 14:38:05 +0100 Subject: [PATCH] New example for tm-new-tiddler Fixes #6690 --- .../messages/WidgetMessage_ tm-new-tiddler.tid | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/editions/tw5.com/tiddlers/messages/WidgetMessage_ tm-new-tiddler.tid b/editions/tw5.com/tiddlers/messages/WidgetMessage_ tm-new-tiddler.tid index d060552d8..49b255afd 100644 --- a/editions/tw5.com/tiddlers/messages/WidgetMessage_ tm-new-tiddler.tid +++ b/editions/tw5.com/tiddlers/messages/WidgetMessage_ tm-new-tiddler.tid @@ -1,6 +1,6 @@ caption: tm-new-tiddler created: 20140226194405353 -modified: 20141107132122081 +modified: 20220521143507491 tags: Messages navigator-message title: WidgetMessage: tm-new-tiddler type: text/vnd.tiddlywiki @@ -28,7 +28,7 @@ To make a button that creates new tiddlers tagged "task", create a tiddler calle <$button message="tm-new-tiddler" param="TaskTemplate">New Task ``` -To create a new tiddler with given attributes rather than from a template: +To create a new tiddler with explicit parameters rather than by cloning a template tiddler: ``` <$button> @@ -36,3 +36,12 @@ To create a new tiddler with given attributes rather than from a template: New Tiddler ``` + + To create a new tiddler from a template with additional parameters: + +``` + <$button> + <$action-sendmessage $message="tm-new-tiddler" $param=<> fieldname="field value"/> + New Tiddler + + ```