starting from this snippet (thanks eric!)
.Create tiddler from textfield/dropdown,etc and adding prefix to tiddler name - #3 by EricShulman
\define form() $:/state/NewTiddlerForm
<$edit-text class='tc-edit-texteditor' tiddler=<<form>> field='name_temp' placeholder='Table'/>
<$edit-text class='tc-edit-texteditor' tiddler=<<form>> field='label' placeholder='Label'/>
<$edit-text class='tc-edit-texteditor' tiddler=<<form>> field='url' placeholder='URL'/>
<$edit-text class='tc-edit-texteditor' tiddler=<<form>> field='text' default="" placeholder='Links and stuff'/>
<$button>Create Tiddler
<$tiddler tiddler=<<form>>>
<$action-createtiddler $basetitle={{{ [{!!name_temp}addsuffix[_table]] }}}
label={{!!label}} url={{!!url}} text={{!!text}} tags="table">
<$action-navigate $to=<<createTiddler-title>>/>
</$action-createtiddler>
</$tiddler>
<$action-deletetiddler $tiddler=<<form>>/>
</$button>
<$button>Clear Form
<$action-deletetiddler $tiddler=<<form>>/>
</$button>
im attempting to modify this example and failing =/
in various ways =]
so far i have (working)
wrapped the above in
\procedure mk_fm(var:“tmp”,suffix)
added var to this ?macro! ?..
\define form() $:/state/New_$(var)$_TiddlerForm
added
addsuffix<suffix>
defined a few functions
\function join(s1,s2,delim:"") [<s1>] [<s2>] +[join<delim>]
however exactly !!!how??? to pass
{!!name_temp}
to function as arg/parameter
<<join s1:{!!name_temp}>>
or whatever lingua franca de jour
idFk!?
is this (warping in a procedure ) generally current correct approach ?
or would some other method(s) work better ??
wiki text aficionado’s ?? please advise!!!