A quick & Dirty example.

tiddler: New Button
projecttitle (required field): "Project #00001, YYYY-0MM-0DD 0hh:0mm:0ss"
text:
\define journalButton()
<$button tooltip={{$:/language/Buttons/NewJournal/Hint}} aria-label={{$:
/language/Buttons/NewJournal/Caption}} class=<<tv-config-toolbar-class>>>
<$action-sendmessage $message="tm-new-tiddler" title=<<now 
"$(journalTitleTemplate)$">> tags="$(journalTags)$" text="$(journalText)$"/>
<$list filter="[<tv-config-toolbar-icons>prefix[yes]]">
{{$:/core/images/new-journal-button}}
</$list>
<$list filter="[<tv-config-toolbar-text>prefix[yes]]">
<span class="tc-btn-text"><$text text={{$:/language/Buttons/NewJournal/
Caption}}/></span>
</$list>
<$action-increment $reference="New Project!!projecttitle"/>
</$button>
\end
<$set name="journalTitleTemplate" value={{New Project!!projecttitle}}>
<$set name="journalTags" value={{$:/config/NewJournal/Tags}}>
<$set name="journalText" value={{$:/config/NewJournal/Text}}>
<<journalButton>>
</$set></$set></$set>

I took the complete code from the $:/core/ui/Buttons/new-journal tiddler 
and just changed

"$:/config/NewJournal/Title" to "New Project!!projecttitle"
and added <$action-increment $reference="New Project!!projecttitle"/>
which requires you  to have my action-increment plugin installed

The Projectnumber will increase with every click and the title will be 
something like "Project #00001, 2018-02-022 13:14:15".

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/092a8c0d-807e-483a-bf77-ef7de7962687%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to