2014-10-09 14:35:17 +00:00
|
|
|
title: $:/core/ui/Buttons/new-journal-here
|
|
|
|
tags: $:/tags/ViewToolbar
|
|
|
|
caption: {{$:/core/images/new-journal-button}} {{$:/language/Buttons/NewJournalHere/Caption}}
|
|
|
|
description: {{$:/language/Buttons/NewJournalHere/Hint}}
|
|
|
|
|
2017-07-12 15:47:52 +00:00
|
|
|
\whitespace trim
|
2024-09-05 17:40:18 +00:00
|
|
|
\procedure journalButton()
|
2014-10-09 14:35:17 +00:00
|
|
|
<$button tooltip={{$:/language/Buttons/NewJournalHere/Hint}} aria-label={{$:/language/Buttons/NewJournalHere/Caption}} class=<<tv-config-toolbar-class>>>
|
2024-09-05 17:40:18 +00:00
|
|
|
<$wikify name="journalTitle" text="""<$transclude $variable="now" format=<<journalTitleTemplate>>/>""">
|
|
|
|
<$action-sendmessage $message="tm-new-tiddler" title=<<journalTitle>> tags=`[[$(currentTiddlerTag)$]] $(journalTags)$`/>
|
|
|
|
<%if [<tv-config-toolbar-icons>match[yes]] %>
|
2014-10-09 14:35:17 +00:00
|
|
|
{{$:/core/images/new-journal-button}}
|
2024-09-05 17:40:18 +00:00
|
|
|
<%endif%>
|
|
|
|
<%if [<tv-config-toolbar-text>match[yes]] %>
|
2017-07-12 15:47:52 +00:00
|
|
|
<span class="tc-btn-text">
|
|
|
|
<$text text={{$:/language/Buttons/NewJournalHere/Caption}}/>
|
|
|
|
</span>
|
2024-09-05 17:40:18 +00:00
|
|
|
<%endif%>
|
2018-05-10 07:52:02 +00:00
|
|
|
</$wikify>
|
2014-10-09 14:35:17 +00:00
|
|
|
</$button>
|
|
|
|
\end
|
2024-09-05 17:40:18 +00:00
|
|
|
<$let journalTitleTemplate={{$:/config/NewJournal/Title}} journalTags={{$:/config/NewJournal/Tags}} currentTiddlerTag=<<currentTiddler>>>
|
2014-10-09 14:35:17 +00:00
|
|
|
<<journalButton>>
|
2024-09-05 17:40:18 +00:00
|
|
|
</$let>
|