mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-12-29 11:30:28 +00:00
6505e4610f
* Use the testcase widget for the $action-createtiddler widget examples * Use procedure instead of macros for $action-createtiddler examples
20 lines
775 B
Plaintext
20 lines
775 B
Plaintext
created: 20200131144828713
|
|
modified: 20240602155008453
|
|
tags: ActionCreateTiddlerWidget
|
|
title: ActionCreateTiddlerWidget Example 5
|
|
type: text/vnd.tiddlywiki
|
|
|
|
<$testcase>
|
|
<$data title=Description text="Child action widget uses the created tiddler title"/>
|
|
<$data title=Narrative text="""The $action-createtiddler widget in this example uses the <<.var createTiddler-title>> variable to navigate to the created tiddler"""/>
|
|
<$data $tiddler="ActionCreateTiddlerWidget Template"/>
|
|
<$data title=Output text="""\procedure testCreate()
|
|
<$action-createtiddler $basetitle="base" $template="ActionCreateTiddlerWidget Template">
|
|
<$action-navigate $to=<<createTiddler-title>>/>
|
|
</$action-createtiddler>
|
|
\end
|
|
|
|
<$button actions=<<testCreate>> >
|
|
Create Tiddler
|
|
</$button>"""/>
|
|
</$testcase> |