mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-14 22:04:51 +00:00
6505e4610f
* Use the testcase widget for the $action-createtiddler widget examples * Use procedure instead of macros for $action-createtiddler examples
21 lines
818 B
Plaintext
21 lines
818 B
Plaintext
created: 20200131150229551
|
|
modified: 20240602154933113
|
|
tags: ActionCreateTiddlerWidget
|
|
title: ActionCreateTiddlerWidget Example 4
|
|
type: text/vnd.tiddlywiki
|
|
|
|
<$testcase>
|
|
<$data title=Description text="Template with override fields and custom base title"/>
|
|
<$data title=Narrative text="""The $action-createtiddler widget in this example uses the basetitle attribute and template: [[ActionCreateTiddlerWidget Template]].
|
|
|
|
There will be new fields "aa" and "bb" which are added to the new tiddlers.
|
|
"""/>
|
|
<$data $tiddler="ActionCreateTiddlerWidget Template"/>
|
|
<$data title=Output text="""\procedure testCreate()
|
|
<$action-createtiddler $basetitle="base" $template="ActionCreateTiddlerWidget Template" aa="new field aa" bb="new field bb" />
|
|
\end
|
|
|
|
<$button actions=<<testCreate>> >
|
|
Create Tiddler
|
|
</$button>"""/>
|
|
</$testcase> |