diff --git a/core/ui/EditToolbar/cancel.tid b/core/ui/EditToolbar/cancel.tid index fe21c2e99..ca2248920 100644 --- a/core/ui/EditToolbar/cancel.tid +++ b/core/ui/EditToolbar/cancel.tid @@ -5,10 +5,10 @@ description: {{$:/language/Buttons/Cancel/Hint}} \whitespace trim <$button actions=<> tooltip={{$:/language/Buttons/Cancel/Hint}} aria-label={{$:/language/Buttons/Cancel/Caption}} class=<>> -<$list filter="[match[yes]]"> +<%if [match[yes]] %> {{$:/core/images/cancel-button}} - -<$list filter="[match[yes]]"> +<%endif%> +<%if [match[yes]] %> <$text text={{$:/language/Buttons/Cancel/Caption}}/> - +<%endif%> diff --git a/core/ui/EditToolbar/delete.tid b/core/ui/EditToolbar/delete.tid index fcaed4b48..bdc6731b9 100644 --- a/core/ui/EditToolbar/delete.tid +++ b/core/ui/EditToolbar/delete.tid @@ -5,10 +5,10 @@ description: {{$:/language/Buttons/Delete/Hint}} \whitespace trim <$button actions=<> tooltip={{$:/language/Buttons/Delete/Hint}} aria-label={{$:/language/Buttons/Delete/Caption}} class=<>> -<$list filter="[match[yes]]"> +<%if [match[yes]] %> {{$:/core/images/delete-button}} - -<$list filter="[match[yes]]"> +<%endif%> +<%if [match[yes]] %> <$text text={{$:/language/Buttons/Delete/Caption}}/> - +<%endif%> diff --git a/core/ui/EditToolbar/save.tid b/core/ui/EditToolbar/save.tid index 3872e7674..b217806bb 100644 --- a/core/ui/EditToolbar/save.tid +++ b/core/ui/EditToolbar/save.tid @@ -4,8 +4,7 @@ caption: {{$:/core/images/done-button}} {{$:/language/Buttons/Save/Caption}} description: {{$:/language/Buttons/Save/Hint}} \whitespace trim -\define save-tiddler-button() -\whitespace trim +\procedure save-tiddler-button() <$fieldmangler> <$button tooltip={{$:/language/Buttons/Save/Hint}} @@ -13,12 +12,12 @@ description: {{$:/language/Buttons/Save/Hint}} class=<> > <> - <$list filter="[match[yes]]"> + <%if [match[yes]] %> {{$:/core/images/done-button}} - - <$list filter="[match[yes]]"> + <%endif%> + <%if [match[yes]] %> <$text text={{$:/language/Buttons/Save/Caption}}/> - + <%endif%> \end diff --git a/core/ui/ViewToolbar/clone.tid b/core/ui/ViewToolbar/clone.tid index 434418106..abe01eda8 100644 --- a/core/ui/ViewToolbar/clone.tid +++ b/core/ui/ViewToolbar/clone.tid @@ -5,12 +5,12 @@ description: {{$:/language/Buttons/Clone/Hint}} \whitespace trim <$button message="tm-new-tiddler" param=<> tooltip={{$:/language/Buttons/Clone/Hint}} aria-label={{$:/language/Buttons/Clone/Caption}} class=<>> -<$list filter="[match[yes]]"> +<%if [match[yes]] %> {{$:/core/images/clone-button}} - -<$list filter="[match[yes]]"> +<%endif%> +<%if [match[yes]] %> <$text text={{$:/language/Buttons/Clone/Caption}}/> - +<%endif%> \ No newline at end of file diff --git a/core/ui/ViewToolbar/close-others.tid b/core/ui/ViewToolbar/close-others.tid index 57fbf222c..19d996fda 100644 --- a/core/ui/ViewToolbar/close-others.tid +++ b/core/ui/ViewToolbar/close-others.tid @@ -5,12 +5,12 @@ description: {{$:/language/Buttons/CloseOthers/Hint}} \whitespace trim <$button message="tm-close-other-tiddlers" param=<> tooltip={{$:/language/Buttons/CloseOthers/Hint}} aria-label={{$:/language/Buttons/CloseOthers/Caption}} class=<>> -<$list filter="[match[yes]]"> +<%if [match[yes]] %> {{$:/core/images/close-others-button}} - -<$list filter="[match[yes]]"> +<%endif%> +<%if [match[yes]] %> <$text text={{$:/language/Buttons/CloseOthers/Caption}}/> - +<%endif%> \ No newline at end of file diff --git a/core/ui/ViewToolbar/close.tid b/core/ui/ViewToolbar/close.tid index bd1fbe0ee..da4db1e26 100644 --- a/core/ui/ViewToolbar/close.tid +++ b/core/ui/ViewToolbar/close.tid @@ -5,12 +5,12 @@ description: {{$:/language/Buttons/Close/Hint}} \whitespace trim <$button message="tm-close-tiddler" tooltip={{$:/language/Buttons/Close/Hint}} aria-label={{$:/language/Buttons/Close/Caption}} class=<>> -<$list filter="[match[yes]]"> +<%if [match[yes]] %> {{$:/core/images/close-button}} - -<$list filter="[match[yes]]"> +<%endif%> +<%if [match[yes]] %> <$text text={{$:/language/Buttons/Close/Caption}}/> - +<%endif%> \ No newline at end of file diff --git a/core/ui/ViewToolbar/edit.tid b/core/ui/ViewToolbar/edit.tid index f0ab31e4e..38827aa14 100644 --- a/core/ui/ViewToolbar/edit.tid +++ b/core/ui/ViewToolbar/edit.tid @@ -5,12 +5,12 @@ description: {{$:/language/Buttons/Edit/Hint}} \whitespace trim <$button message="tm-edit-tiddler" tooltip={{$:/language/Buttons/Edit/Hint}} aria-label={{$:/language/Buttons/Edit/Caption}} class=<>> -<$list filter="[match[yes]]"> +<%if [match[yes]] %> {{$:/core/images/edit-button}} - -<$list filter="[match[yes]]"> +<%endif%> +<%if [match[yes]] %> <$text text={{$:/language/Buttons/Edit/Caption}}/> - +<%endif%> \ No newline at end of file diff --git a/core/ui/ViewToolbar/export-tiddler.tid b/core/ui/ViewToolbar/export-tiddler.tid index 8c39de856..9bb3d8853 100644 --- a/core/ui/ViewToolbar/export-tiddler.tid +++ b/core/ui/ViewToolbar/export-tiddler.tid @@ -3,7 +3,4 @@ tags: $:/tags/ViewToolbar caption: {{$:/core/images/export-button}} {{$:/language/Buttons/ExportTiddler/Caption}} description: {{$:/language/Buttons/ExportTiddler/Hint}} -\define makeExportFilter() -[[$(currentTiddler)$]] -\end -<$macrocall $name="exportButton" exportFilter=<> lingoBase="$:/language/Buttons/ExportTiddler/" baseFilename=<>/> \ No newline at end of file +<$transclude $variable="exportButton" exportFilter=`[[$(currentTiddler)$]]` lingoBase="$:/language/Buttons/ExportTiddler/" baseFilename=<>/> \ No newline at end of file diff --git a/core/ui/ViewToolbar/fold-others.tid b/core/ui/ViewToolbar/fold-others.tid index 244977509..8734eaf33 100644 --- a/core/ui/ViewToolbar/fold-others.tid +++ b/core/ui/ViewToolbar/fold-others.tid @@ -6,12 +6,12 @@ description: {{$:/language/Buttons/FoldOthers/Hint}} \whitespace trim <$button tooltip={{$:/language/Buttons/FoldOthers/Hint}} aria-label={{$:/language/Buttons/FoldOthers/Caption}} class=<>> <$action-sendmessage $message="tm-fold-other-tiddlers" $param=<> foldedStatePrefix="$:/state/folded/"/> -<$list filter="[match[yes]]" variable="listItem"> +<%if [match[yes]] %> {{$:/core/images/fold-others-button}} - -<$list filter="[match[yes]]"> +<%endif%> +<%if [match[yes]] %> <$text text={{$:/language/Buttons/FoldOthers/Caption}}/> - +<%endif%> \ No newline at end of file diff --git a/core/ui/ViewToolbar/fold.tid b/core/ui/ViewToolbar/fold.tid index fd3363688..3c99c6ad6 100644 --- a/core/ui/ViewToolbar/fold.tid +++ b/core/ui/ViewToolbar/fold.tid @@ -7,26 +7,26 @@ description: {{$:/language/Buttons/Fold/Hint}} <$reveal type="nomatch" stateTitle=<> text="hide" default="show"> <$button tooltip={{$:/language/Buttons/Fold/Hint}} aria-label={{$:/language/Buttons/Fold/Caption}} class=<>> <$action-sendmessage $message="tm-fold-tiddler" $param=<> foldedState=<>/> -<$list filter="[match[yes]]" variable="listItem"> +<%if [match[yes]] %> {{$:/core/images/fold-button}} - -<$list filter="[match[yes]]"> +<%endif%> +<%if [match[yes]] %> <$text text={{$:/language/Buttons/Fold/Caption}}/> - +<%endif%> <$reveal type="match" stateTitle=<> text="hide" default="show"> <$button tooltip={{$:/language/Buttons/Unfold/Hint}} aria-label={{$:/language/Buttons/Unfold/Caption}} class=<>> <$action-sendmessage $message="tm-fold-tiddler" $param=<> foldedState=<>/> -<$list filter="[match[yes]]" variable="listItem"> +<%if [match[yes]] %> {{$:/core/images/unfold-button}} - -<$list filter="[match[yes]]"> +<%endif%> +<%if [match[yes]] %> <$text text={{$:/language/Buttons/Unfold/Caption}}/> - +<%endif%> diff --git a/core/ui/ViewToolbar/info.tid b/core/ui/ViewToolbar/info.tid index 02fd9abd7..95245d909 100644 --- a/core/ui/ViewToolbar/info.tid +++ b/core/ui/ViewToolbar/info.tid @@ -4,31 +4,30 @@ caption: {{$:/core/images/info-button}} {{$:/language/Buttons/Info/Caption}} description: {{$:/language/Buttons/Info/Hint}} \whitespace trim -\define button-content() -\whitespace trim -<$list filter="[match[yes]]"> +\procedure button-content() +<%if [match[yes]] %> {{$:/core/images/info-button}} - -<$list filter="[match[yes]]"> +<%endif%> +<%if [match[yes]] %> <$text text={{$:/language/Buttons/Info/Caption}}/> - +<%endif%> \end <$reveal state="$:/config/TiddlerInfo/Mode" type="match" text="popup"> <$button popup=<> tooltip={{$:/language/Buttons/Info/Hint}} aria-label={{$:/language/Buttons/Info/Caption}} class=<> selectedClass="tc-selected"> -<$macrocall $name="button-content" mode="inline"/> +<$transclude $variable="button-content" $mode="inline"/> <$reveal state="$:/config/TiddlerInfo/Mode" type="match" text="sticky"> <$reveal state=<> type="match" text="" default=""> <$button set=<> setTo="yes" tooltip={{$:/language/Buttons/Info/Hint}} aria-label={{$:/language/Buttons/Info/Caption}} class=<> selectedClass="tc-selected"> -<$macrocall $name="button-content" mode="inline"/> +<$transclude $variable="button-content" $mode="inline"/> <$reveal state=<> type="nomatch" text="" default=""> <$button set=<> setTo="" tooltip={{$:/language/Buttons/Info/Hint}} aria-label={{$:/language/Buttons/Info/Caption}} class=<> selectedClass="tc-selected"> -<$macrocall $name="button-content" mode="inline"/> +<$transclude $variable="button-content" $mode="inline"/> \ No newline at end of file diff --git a/core/ui/ViewToolbar/more-tiddler-actions.tid b/core/ui/ViewToolbar/more-tiddler-actions.tid index e7e75a79b..4528a4eee 100644 --- a/core/ui/ViewToolbar/more-tiddler-actions.tid +++ b/core/ui/ViewToolbar/more-tiddler-actions.tid @@ -4,7 +4,6 @@ caption: {{$:/core/images/down-arrow}} {{$:/language/Buttons/More/Caption}} description: {{$:/language/Buttons/More/Hint}} \whitespace trim -\define config-title() $:/config/ViewToolbarButtons/Visibility/$(listItem)$ <$button popup=<> tooltip={{$:/language/Buttons/More/Hint}} @@ -12,33 +11,29 @@ description: {{$:/language/Buttons/More/Hint}} class=<> selectedClass="tc-selected" > - <$list filter="[match[yes]]"> + <%if [match[yes]] %> {{$:/core/images/down-arrow}} - - <$list filter="[match[yes]]"> + <%endif%> + <%if [match[yes]] %> <$text text={{$:/language/Buttons/More/Caption}}/> - + <%endif%> <$reveal state=<> type="popup" position="belowleft" animate="yes">
- <$set name="tv-config-toolbar-icons" value="yes"> - <$set name="tv-config-toolbar-text" value="yes"> - <$set name="tv-config-toolbar-class" value="tc-btn-invisible"> - <$list filter="[all[shadows+tiddlers]tag[$:/tags/ViewToolbar]!has[draft.of]] -[[$:/core/ui/Buttons/more-tiddler-actions]]" - variable="listItem" + <$let tv-config-toolbar-icons="yes" tv-config-toolbar-text="yes" tv-config-toolbar-class="tc-btn-invisible"> + <$list filter="[all[shadows+tiddlers]tag[$:/tags/ViewToolbar]!has[draft.of]] -[[$:/core/ui/Buttons/more-tiddler-actions]]" + variable="listItem" + > + <$reveal type="match" state=`$:/config/ViewToolbarButtons/Visibility/$(listItem)$` text="hide"> + <$set name="tv-config-toolbar-class" + filter="[] [encodeuricomponent[]addprefix[tc-btn-]]" > - <$reveal type="match" state=<> text="hide"> - <$set name="tv-config-toolbar-class" - filter="[] [encodeuricomponent[]addprefix[tc-btn-]]" - > - <$transclude tiddler=<> mode="inline"/> - - - - - - + <$transclude tiddler=<> mode="inline"/> + + + +
\ No newline at end of file diff --git a/core/ui/ViewToolbar/new-here.tid b/core/ui/ViewToolbar/new-here.tid index 31e8e4158..15afe2628 100644 --- a/core/ui/ViewToolbar/new-here.tid +++ b/core/ui/ViewToolbar/new-here.tid @@ -4,23 +4,21 @@ caption: {{$:/core/images/new-here-button}} {{$:/language/Buttons/NewHere/Captio description: {{$:/language/Buttons/NewHere/Hint}} \whitespace trim -\define newHereActions() -\whitespace trim +\procedure newHereActions() <$set name="tags" filter="[] [enlist{$:/config/NewTiddler/Tags}]"> <$action-sendmessage $message="tm-new-tiddler" tags=<>/> \end -\define newHereButton() -\whitespace trim +\procedure newHereButton() <$button actions=<> tooltip={{$:/language/Buttons/NewHere/Hint}} aria-label={{$:/language/Buttons/NewHere/Caption}} class=<>> -<$list filter="[match[yes]]"> +<%if [match[yes]] %> {{$:/core/images/new-here-button}} - -<$list filter="[match[yes]]"> +<%endif%> +<%if [match[yes]] %> <$text text={{$:/language/Buttons/NewHere/Caption}}/> - +<%endif%> \end <> diff --git a/core/ui/ViewToolbar/new-journal-here.tid b/core/ui/ViewToolbar/new-journal-here.tid index b64ba7ed7..2df7a2a4e 100644 --- a/core/ui/ViewToolbar/new-journal-here.tid +++ b/core/ui/ViewToolbar/new-journal-here.tid @@ -4,29 +4,21 @@ caption: {{$:/core/images/new-journal-button}} {{$:/language/Buttons/NewJournalH description: {{$:/language/Buttons/NewJournalHere/Hint}} \whitespace trim -\define journalButtonTags() -[[$(currentTiddlerTag)$]] $(journalTags)$ -\end -\define journalButton() -\whitespace trim +\procedure journalButton() <$button tooltip={{$:/language/Buttons/NewJournalHere/Hint}} aria-label={{$:/language/Buttons/NewJournalHere/Caption}} class=<>> -<$wikify name="journalTitle" text="""<$macrocall $name="now" format=<>/>"""> -<$action-sendmessage $message="tm-new-tiddler" title=<> tags=<>/> -<$list filter="[match[yes]]"> +<$wikify name="journalTitle" text="""<$transclude $variable="now" format=<>/>"""> +<$action-sendmessage $message="tm-new-tiddler" title=<> tags=`[[$(currentTiddlerTag)$]] $(journalTags)$`/> +<%if [match[yes]] %> {{$:/core/images/new-journal-button}} - -<$list filter="[match[yes]]"> +<%endif%> +<%if [match[yes]] %> <$text text={{$:/language/Buttons/NewJournalHere/Caption}}/> - +<%endif%> \end -<$set name="journalTitleTemplate" value={{$:/config/NewJournal/Title}}> -<$set name="journalTags" value={{$:/config/NewJournal/Tags}}> -<$set name="currentTiddlerTag" value=<>> +<$let journalTitleTemplate={{$:/config/NewJournal/Title}} journalTags={{$:/config/NewJournal/Tags}} currentTiddlerTag=<>> <> - - - + diff --git a/core/ui/ViewToolbar/open-window.tid b/core/ui/ViewToolbar/open-window.tid index d8ef85c83..24e2efcca 100644 --- a/core/ui/ViewToolbar/open-window.tid +++ b/core/ui/ViewToolbar/open-window.tid @@ -5,12 +5,12 @@ description: {{$:/language/Buttons/OpenWindow/Hint}} \whitespace trim <$button message="tm-open-window" tooltip={{$:/language/Buttons/OpenWindow/Hint}} aria-label={{$:/language/Buttons/OpenWindow/Caption}} class=<>> -<$list filter="[match[yes]]"> +<%if [match[yes]] %> {{$:/core/images/open-window}} - -<$list filter="[match[yes]]"> +<%endif%> +<%if [match[yes]] %> <$text text={{$:/language/Buttons/OpenWindow/Caption}}/> - +<%endif%> \ No newline at end of file diff --git a/core/ui/ViewToolbar/permalink.tid b/core/ui/ViewToolbar/permalink.tid index 5d0677eed..4e9868b43 100644 --- a/core/ui/ViewToolbar/permalink.tid +++ b/core/ui/ViewToolbar/permalink.tid @@ -5,12 +5,12 @@ description: {{$:/language/Buttons/Permalink/Hint}} \whitespace trim <$button message="tm-permalink" tooltip={{$:/language/Buttons/Permalink/Hint}} aria-label={{$:/language/Buttons/Permalink/Caption}} class=<>> -<$list filter="[match[yes]]"> +<%if [match[yes]] %> {{$:/core/images/permalink-button}} - -<$list filter="[match[yes]]"> +<%endif%> +<%if [match[yes]] %> <$text text={{$:/language/Buttons/Permalink/Caption}}/> - +<%endif%> \ No newline at end of file diff --git a/core/ui/ViewToolbar/permaview.tid b/core/ui/ViewToolbar/permaview.tid index 4a655b970..1ab129eed 100644 --- a/core/ui/ViewToolbar/permaview.tid +++ b/core/ui/ViewToolbar/permaview.tid @@ -5,12 +5,12 @@ description: {{$:/language/Buttons/Permaview/Hint}} \whitespace trim <$button message="tm-permaview" tooltip={{$:/language/Buttons/Permaview/Hint}} aria-label={{$:/language/Buttons/Permaview/Caption}} class=<>> -<$list filter="[match[yes]]"> +<%if [match[yes]] %> {{$:/core/images/permaview-button}} - -<$list filter="[match[yes]]"> +<%endif%> +<%if [match[yes]] %> <$text text={{$:/language/Buttons/Permaview/Caption}}/> - +<%endif%> \ No newline at end of file diff --git a/plugins/tiddlywiki/qrcode/ViewToolbarButton/Button.tid b/plugins/tiddlywiki/qrcode/ViewToolbarButton/Button.tid index 2a6335545..7ac85af19 100644 --- a/plugins/tiddlywiki/qrcode/ViewToolbarButton/Button.tid +++ b/plugins/tiddlywiki/qrcode/ViewToolbarButton/Button.tid @@ -8,50 +8,28 @@ description: Generate QR code for this tiddler \whitespace trim <$button popup=<> tooltip={{$:/plugins/tiddlywiki/qrcode/ViewToolbarButton!!description}} aria-label={{$:/plugins/tiddlywiki/qrcode/ViewToolbarButton!!short-caption}} class=<> class=<> selectedClass="tc-selected"> -<$list filter="[match[yes]]"> +<%if [match[yes]] %> {{$:/plugins/tiddlywiki/qrcode/icon}} - -<$list filter="[match[yes]]"> +<%endif%> +<%if [match[yes]] %> <$text text={{$:/plugins/tiddlywiki/qrcode/ViewToolbarButton!!short-caption}}/> - +<%endif%> <$reveal state=<> type="popup" position="below" animate="yes"> +
-
- -{{$:/plugins/tiddlywiki/qrcode/ViewToolbarButton||description}} - -<$set name="tv-config-toolbar-icons" value="yes"> - -<$set name="tv-config-toolbar-text" value="yes"> - -<$set name="tv-config-toolbar-class" value="tc-btn-invisible"> - -<$set name="targetTiddler" value=<>> - -<$list filter="[all[shadows+tiddlers]tag[$:/tags/ViewToolbarButton/QRcode]!has[draft.of]]"> - -<$button popup=<> class="tc-btn-invisible" selectedClass="tc-selected"> - -<$action-sendmessage $message="tm-modal" $param=<> currentTiddler=<>/> - -<$transclude field="caption" mode="inline"/> - - - - - - - - - - - - - -
+ {{$:/plugins/tiddlywiki/qrcode/ViewToolbarButton||description}} + <$let tv-config-toolbar-icons="yes" tv-config-toolbar-text="yes" tv-config-toolbar-class="tc-btn-invisible" targetTiddler=<>> + <$list filter="[all[shadows+tiddlers]tag[$:/tags/ViewToolbarButton/QRcode]!has[draft.of]]"> + <$button popup=<> class="tc-btn-invisible" selectedClass="tc-selected"> + <$action-sendmessage $message="tm-modal" $param=<> currentTiddler=<>/> + <$transclude field="caption" mode="inline"/> + + + +
diff --git a/plugins/tiddlywiki/text-slicer/ui/slice-toolbar-button.tid b/plugins/tiddlywiki/text-slicer/ui/slice-toolbar-button.tid index ef53223d2..0a9b41414 100644 --- a/plugins/tiddlywiki/text-slicer/ui/slice-toolbar-button.tid +++ b/plugins/tiddlywiki/text-slicer/ui/slice-toolbar-button.tid @@ -6,18 +6,18 @@ description: Slice this text tiddler by headings and lists \whitespace trim -\define hint() +\procedure hint() Slice this text tiddler into chunks \end <$list filter="[!is[image]!is[binary]]" variable="ignore"> <$button tooltip=<> aria-label=<> class=<>> <$action-sendmessage $message="tm-modal" $param="$:/plugins/tiddlywiki/text-slicer/ui/slice-modal" currentTiddler=<>/> -<$list filter="[match[yes]]"> +<%if [match[yes]] %> {{$:/plugins/tiddlywiki/text-slicer/images/text-slicer-icon}} - -<$list filter="[match[yes]]"> +<%endif%> +<%if [match[yes]] %> Slice tiddler - +<%endif%>