mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-17 23:34:50 +00:00
881aed879b
* Update Basics.tid * Update new-tiddler.tid * Update new-journal.tid * Update new-image.tid * Update new-here.tid * Update new-journal-here.tid * Update NewJournalTags.tid * Update NewJournalTags.tid
32 lines
1.2 KiB
Plaintext
32 lines
1.2 KiB
Plaintext
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}}
|
|
|
|
\whitespace trim
|
|
\define journalButtonTags()
|
|
[[$(currentTiddlerTag)$]] $(journalTags)$
|
|
\end
|
|
\define journalButton()
|
|
<$button tooltip={{$:/language/Buttons/NewJournalHere/Hint}} aria-label={{$:/language/Buttons/NewJournalHere/Caption}} class=<<tv-config-toolbar-class>>>
|
|
<$wikify name="journalTitle" text="""<$macrocall $name="now" format=<<journalTitleTemplate>>/>""">
|
|
<$action-sendmessage $message="tm-new-tiddler" title=<<journalTitle>> tags=<<journalButtonTags>>/>
|
|
<$list filter="[<tv-config-toolbar-icons>match[yes]]">
|
|
{{$:/core/images/new-journal-button}}
|
|
</$list>
|
|
<$list filter="[<tv-config-toolbar-text>match[yes]]">
|
|
<span class="tc-btn-text">
|
|
<$text text={{$:/language/Buttons/NewJournalHere/Caption}}/>
|
|
</span>
|
|
</$list>
|
|
</$wikify>
|
|
</$button>
|
|
\end
|
|
<$set name="journalTitleTemplate" value={{$:/config/NewJournal/Title}}>
|
|
<$set name="journalTags" value={{$:/config/NewJournal/Tags}}>
|
|
<$set name="currentTiddlerTag" value=<<currentTiddler>>>
|
|
<<journalButton>>
|
|
</$set>
|
|
</$set>
|
|
</$set>
|