1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-23 18:17:20 +00:00

Another batch of whitespace trims (#6587)

This commit is contained in:
Cameron Fischer 2022-04-05 11:48:07 -04:00 committed by GitHub
parent e28af8d594
commit 8990423374
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
26 changed files with 54 additions and 20 deletions

View File

@ -6,17 +6,27 @@ It appears that you have a wiki with an external ~TiddlyWiki core. The export ac
<p>You will need to view the page source in your browser. Then go to the very bottom the the source, find the last `<script>` <p>You will need to view the page source in your browser. Then go to the very bottom the the source, find the last `<script>`
element, and right-click its `src` URI. Save the link as ''$(jsFileName)$''</p> element, and right-click its `src` URI. Save the link as ''$(jsFileName)$''</p>
\end \end
\rules except wikilink
\whitespace trim
''For advanced users'' ''For advanced users''
Export the ~TiddlyWiki core ~JavaScript code for running with external ~JavaScript: Export the TiddlyWiki core JavaScript code for running with external JavaScript:
<$button tooltip="Export the ~TiddlyWiki core code for running with external ~JavaScript" aria-label="export TiddlyWiki core" class="tc-btn-big-green"> <$button
<$list filter="[[$:/boot/boot.js]is[missing]]" variable="ignore" emptyMessage="""<$action-sendmessage $message="tm-download-file" $param="$:/core/templates/tiddlywiki5.js" filename=<<jsFileName>>/>""" > tooltip="Export the TiddlyWiki core code for running with external JavaScript"
aria-label="export TiddlyWiki core"
class="tc-btn-big-green">
<$list
filter="[[$:/boot/boot.js]is[missing]]"
variable="ignore"
emptyMessage="<$action-sendmessage $message='tm-download-file' $param='$:/core/templates/tiddlywiki5.js' filename=<<jsFileName>>/>" >
<$action-setfield $tiddler=<<qualify "$:/temp/alert">> text=<<noExportMsg>> subtitle="Export ~TiddllyWiki Core"/> <$action-setfield $tiddler=<<qualify "$:/temp/alert">> text=<<noExportMsg>> subtitle="Export ~TiddllyWiki Core"/>
<$action-sendmessage $message="tm-modal" $param=<<qualify "$:/temp/alert">>/> <$action-sendmessage $message="tm-modal" $param=<<qualify "$:/temp/alert">>/>
</$list> </$list>
{{$:/core/images/download-button}} Download ~TiddlyWiki core {{$:/core/images/download-button}}
&#32;
Download TiddlyWiki core
</$button> </$button>
[[Further information|https://tiddlywiki.com/#Using%20the%20external%20JavaScript%20template]] [[Further information|https://tiddlywiki.com/#Using%20the%20external%20JavaScript%20template]]

View File

@ -2,6 +2,7 @@ title: $:/core/ui/KeyboardShortcuts/advanced-search
tags: $:/tags/KeyboardShortcut tags: $:/tags/KeyboardShortcut
key: ((advanced-search)) key: ((advanced-search))
\whitespace trim
<$navigator story="$:/StoryList" history="$:/HistoryList"> <$navigator story="$:/StoryList" history="$:/HistoryList">
<$action-navigate $to="$:/AdvancedSearch"/> <$action-navigate $to="$:/AdvancedSearch"/>
<$action-sendmessage $message="tm-focus-selector" $param="""[data-tiddler-title="$:/AdvancedSearch"] .tc-search input""" preventScroll="true"/> <$action-sendmessage $message="tm-focus-selector" $param="""[data-tiddler-title="$:/AdvancedSearch"] .tc-search input""" preventScroll="true"/>

View File

@ -2,7 +2,9 @@ title: $:/core/ui/KeyboardShortcuts/change-sidebar-layout
tags: $:/tags/KeyboardShortcut tags: $:/tags/KeyboardShortcut
key: ((change-sidebar-layout)) key: ((change-sidebar-layout))
<$list filter="[{$:/themes/tiddlywiki/vanilla/options/sidebarlayout}match[fixed-fluid]]" \whitespace trim
emptyMessage="""<$action-setfield $tiddler="$:/themes/tiddlywiki/vanilla/options/sidebarlayout" text="fixed-fluid"/>"""> <$list
filter="[{$:/themes/tiddlywiki/vanilla/options/sidebarlayout}match[fixed-fluid]]"
emptyMessage="<$action-setfield $tiddler='$:/themes/tiddlywiki/vanilla/options/sidebarlayout' text='fixed-fluid'/>">
<$action-setfield $tiddler="$:/themes/tiddlywiki/vanilla/options/sidebarlayout" text="fluid-fixed"/> <$action-setfield $tiddler="$:/themes/tiddlywiki/vanilla/options/sidebarlayout" text="fluid-fixed"/>
</$list> </$list>

View File

@ -2,6 +2,7 @@ title: $:/core/ui/KeyboardShortcuts/new-image
tags: $:/tags/KeyboardShortcut tags: $:/tags/KeyboardShortcut
key: ((new-image)) key: ((new-image))
\whitespace trim
<$navigator story="$:/StoryList" history="$:/HistoryList" openLinkFromInsideRiver={{$:/config/Navigation/openLinkFromInsideRiver}} openLinkFromOutsideRiver={{$:/config/Navigation/openLinkFromOutsideRiver}} relinkOnRename={{$:/config/RelinkOnRename}}> <$navigator story="$:/StoryList" history="$:/HistoryList" openLinkFromInsideRiver={{$:/config/Navigation/openLinkFromInsideRiver}} openLinkFromOutsideRiver={{$:/config/Navigation/openLinkFromOutsideRiver}} relinkOnRename={{$:/config/RelinkOnRename}}>
{{$:/core/ui/Actions/new-image}} {{$:/core/ui/Actions/new-image}}
</$navigator> </$navigator>

View File

@ -2,6 +2,7 @@ title: $:/core/ui/KeyboardShortcuts/new-journal
tags: $:/tags/KeyboardShortcut tags: $:/tags/KeyboardShortcut
key: ((new-journal)) key: ((new-journal))
\whitespace trim
<$navigator story="$:/StoryList" history="$:/HistoryList" openLinkFromInsideRiver={{$:/config/Navigation/openLinkFromInsideRiver}} openLinkFromOutsideRiver={{$:/config/Navigation/openLinkFromOutsideRiver}} relinkOnRename={{$:/config/RelinkOnRename}}> <$navigator story="$:/StoryList" history="$:/HistoryList" openLinkFromInsideRiver={{$:/config/Navigation/openLinkFromInsideRiver}} openLinkFromOutsideRiver={{$:/config/Navigation/openLinkFromOutsideRiver}} relinkOnRename={{$:/config/RelinkOnRename}}>
{{$:/core/ui/Actions/new-journal}} {{$:/core/ui/Actions/new-journal}}
</$navigator> </$navigator>

View File

@ -2,6 +2,7 @@ title: $:/core/ui/KeyboardShortcuts/new-tiddler
tags: $:/tags/KeyboardShortcut tags: $:/tags/KeyboardShortcut
key: ((new-tiddler)) key: ((new-tiddler))
\whitespace trim
<$navigator story="$:/StoryList" history="$:/HistoryList" openLinkFromInsideRiver={{$:/config/Navigation/openLinkFromInsideRiver}} openLinkFromOutsideRiver={{$:/config/Navigation/openLinkFromOutsideRiver}} relinkOnRename={{$:/config/RelinkOnRename}}> <$navigator story="$:/StoryList" history="$:/HistoryList" openLinkFromInsideRiver={{$:/config/Navigation/openLinkFromInsideRiver}} openLinkFromOutsideRiver={{$:/config/Navigation/openLinkFromOutsideRiver}} relinkOnRename={{$:/config/RelinkOnRename}}>
{{$:/core/ui/Actions/new-tiddler}} {{$:/core/ui/Actions/new-tiddler}}
</$navigator> </$navigator>

View File

@ -2,6 +2,7 @@ title: $:/core/ui/KeyboardShortcuts/save-wiki
tags: $:/tags/KeyboardShortcut tags: $:/tags/KeyboardShortcut
key: ((save-wiki)) key: ((save-wiki))
\whitespace trim
<$wikify name="site-title" text={{$:/config/SaveWikiButton/Filename}}> <$wikify name="site-title" text={{$:/config/SaveWikiButton/Filename}}>
<$action-sendmessage $message="tm-save-wiki" $param={{$:/config/SaveWikiButton/Template}} filename=<<site-title>>/> <$action-sendmessage $message="tm-save-wiki" $param={{$:/config/SaveWikiButton/Template}} filename=<<site-title>>/>
</$wikify> </$wikify>

View File

@ -2,8 +2,9 @@ title: $:/core/ui/KeyboardShortcuts/toggle-sidebar
tags: $:/tags/KeyboardShortcut tags: $:/tags/KeyboardShortcut
key: ((toggle-sidebar)) key: ((toggle-sidebar))
<$list filter="[[$:/state/sidebar]is[missing]] [{$:/state/sidebar}removeprefix[yes]]" emptyMessage=""" \whitespace trim
<$action-setfield $tiddler="$:/state/sidebar" text="yes"/> <$list
"""> filter="[[$:/state/sidebar]is[missing]] [{$:/state/sidebar}removeprefix[yes]]"
emptyMessage="<$action-setfield $tiddler='$:/state/sidebar' text='yes'/>">
<$action-setfield $tiddler="$:/state/sidebar" text="no"/> <$action-setfield $tiddler="$:/state/sidebar" text="no"/>
</$list> </$list>

View File

@ -1,5 +1,3 @@
title: $:/core/ui/ListItemTemplate title: $:/core/ui/ListItemTemplate
<div class="tc-menu-list-item"> <div class="tc-menu-list-item"><$link /></div>
<$link />
</div>

View File

@ -1,5 +1,6 @@
title: $:/core/ui/MissingTemplate title: $:/core/ui/MissingTemplate
\whitespace trim
<div class="tc-tiddler-missing"> <div class="tc-tiddler-missing">
<$button popup=<<qualify "$:/state/popup/missing">> class="tc-btn-invisible tc-missing-tiddler-label"> <$button popup=<<qualify "$:/state/popup/missing">> class="tc-btn-invisible tc-missing-tiddler-label">
<$view field="title" format="text" /> <$view field="title" format="text" />

View File

@ -2,6 +2,7 @@ title: $:/core/ui/MoreSideBar/Types
tags: $:/tags/MoreSideBar tags: $:/tags/MoreSideBar
caption: {{$:/language/SideBar/Types/Caption}} caption: {{$:/language/SideBar/Types/Caption}}
\whitespace trim
<$list filter={{$:/core/Filters/TypedTiddlers!!filter}}> <$list filter={{$:/core/Filters/TypedTiddlers!!filter}}>
<div class="tc-menu-list-item"> <div class="tc-menu-list-item">
<$view field="type"/> <$view field="type"/>

View File

@ -1,6 +1,7 @@
title: $:/core/ui/PageStylesheet title: $:/core/ui/PageStylesheet
\import [[$:/core/ui/PageMacros]] [all[shadows+tiddlers]tag[$:/tags/Macro]!has[draft.of]] \import [[$:/core/ui/PageMacros]] [all[shadows+tiddlers]tag[$:/tags/Macro]!has[draft.of]]
\whitespace trim
<$set name="currentTiddler" value={{$:/language}}> <$set name="currentTiddler" value={{$:/language}}>

View File

@ -9,6 +9,7 @@ $(currentTiddler)$/$(currentTab)$
\define default-tiddler-title() \define default-tiddler-title()
$:/core/ui/PluginInfo/Default/$(currentTab)$ $:/core/ui/PluginInfo/Default/$(currentTab)$
\end \end
\whitespace trim
<$transclude tiddler=<<localised-info-tiddler-title>> mode="block"> <$transclude tiddler=<<localised-info-tiddler-title>> mode="block">
<$transclude tiddler=<<currentTiddler>> subtiddler=<<localised-info-tiddler-title>> mode="block"> <$transclude tiddler=<<currentTiddler>> subtiddler=<<localised-info-tiddler-title>> mode="block">
<$transclude tiddler=<<currentTiddler>> subtiddler=<<info-tiddler-title>> mode="block"> <$transclude tiddler=<<currentTiddler>> subtiddler=<<info-tiddler-title>> mode="block">

View File

@ -1,6 +1,7 @@
title: $:/core/ui/PluginInfo/Default/contents title: $:/core/ui/PluginInfo/Default/contents
\define lingo-base() $:/language/TiddlerInfo/Advanced/PluginInfo/ \define lingo-base() $:/language/TiddlerInfo/Advanced/PluginInfo/
\whitespace trim
<<lingo Hint>> <<lingo Hint>>
<ul> <ul>
<$list filter="[all[current]plugintiddlers[]sort[title]]" emptyMessage=<<lingo Empty/Hint>>> <$list filter="[all[current]plugintiddlers[]sort[title]]" emptyMessage=<<lingo Empty/Hint>>>

View File

@ -2,13 +2,15 @@ title: $:/core/ui/SearchResults
<div class="tc-search-results"> <div class="tc-search-results">
<$list filter="[all[shadows+tiddlers]tag[$:/tags/SearchResults]!has[draft.of]butfirst[]limit[1]]" emptyMessage=""" <$list
<$list filter="[all[shadows+tiddlers]tag[$:/tags/SearchResults]!has[draft.of]]"> filter="[all[shadows+tiddlers]tag[$:/tags/SearchResults]!has[draft.of]butfirst[]limit[1]]"
<$transclude mode="block"/> emptyMessage="<$list filter='[all[shadows+tiddlers]tag[$:/tags/SearchResults]!has[draft.of]]'><$transclude mode='block'/></$list>">
</$list>
""">
<$macrocall $name="tabs" tabsList="[all[shadows+tiddlers]tag[$:/tags/SearchResults]!has[draft.of]]" default={{$:/config/SearchResults/Default}} actions="""<$action-setfield $tiddler="$:/state/search/currentTab" text=<<currentTab>>/>""" explicitState="$:/state/tab/search-results/sidebar"/> <$macrocall $name="tabs"
tabsList="[all[shadows+tiddlers]tag[$:/tags/SearchResults]!has[draft.of]]"
default={{$:/config/SearchResults/Default}}
actions="<$action-setfield $tiddler='$:/state/search/currentTab' text=<<currentTab>>/>"
explicitState="$:/state/tab/search-results/sidebar"/>
</$list> </$list>

View File

@ -2,6 +2,7 @@ title: $:/core/ui/SideBar/More
tags: $:/tags/SideBar tags: $:/tags/SideBar
caption: {{$:/language/SideBar/More/Caption}} caption: {{$:/language/SideBar/More/Caption}}
\whitespace trim
<div class="tc-more-sidebar"> <div class="tc-more-sidebar">
<$macrocall $name="tabs" tabsList="[all[shadows+tiddlers]tag[$:/tags/MoreSideBar]!has[draft.of]]" default={{$:/config/DefaultMoreSidebarTab}} state="$:/state/tab/moresidebar" class="tc-vertical tc-sidebar-tabs-more" explicitState="$:/state/tab/moresidebar-1850697562"/> <$macrocall $name="tabs" tabsList="[all[shadows+tiddlers]tag[$:/tags/MoreSideBar]!has[draft.of]]" default={{$:/config/DefaultMoreSidebarTab}} state="$:/state/tab/moresidebar" class="tc-vertical tc-sidebar-tabs-more" explicitState="$:/state/tab/moresidebar-1850697562"/>
</div> </div>

View File

@ -1,5 +1,6 @@
title: $:/core/ui/TiddlerFieldTemplate title: $:/core/ui/TiddlerFieldTemplate
\whitespace trim
<tr class="tc-view-field"> <tr class="tc-view-field">
<td class="tc-view-field-name"> <td class="tc-view-field-name">
<$text text=<<listItem>>/> <$text text=<<listItem>>/>

View File

@ -1,5 +1,6 @@
title: $:/core/ui/TiddlerFields title: $:/core/ui/TiddlerFields
\whitespace trim
<table class="tc-view-field-table"> <table class="tc-view-field-table">
<tbody> <tbody>
<$list filter="[all[current]fields[]sort[title]] -text" template="$:/core/ui/TiddlerFieldTemplate" variable="listItem"/> <$list filter="[all[current]fields[]sort[title]] -text" template="$:/core/ui/TiddlerFieldTemplate" variable="listItem"/>

View File

@ -1,5 +1,6 @@
title: $:/core/ui/TiddlerInfo title: $:/core/ui/TiddlerInfo
\whitespace trim
<div style="position:relative;"> <div style="position:relative;">
<div class="tc-tiddler-controls" style="position:absolute;right:0;"> <div class="tc-tiddler-controls" style="position:absolute;right:0;">
<$reveal state="$:/config/TiddlerInfo/Mode" type="match" text="sticky"> <$reveal state="$:/config/TiddlerInfo/Mode" type="match" text="sticky">

View File

@ -5,4 +5,5 @@ caption: {{$:/language/TiddlerInfo/Advanced/Caption}}
<$list filter="[all[shadows+tiddlers]tag[$:/tags/TiddlerInfo/Advanced]!has[draft.of]]" variable="listItem"> <$list filter="[all[shadows+tiddlers]tag[$:/tags/TiddlerInfo/Advanced]!has[draft.of]]" variable="listItem">
<$transclude tiddler=<<listItem>> mode="block"/> <$transclude tiddler=<<listItem>> mode="block"/>
</$list> </$list>

View File

@ -2,6 +2,7 @@ title: $:/core/ui/TiddlerInfo/Advanced/PluginInfo
tags: $:/tags/TiddlerInfo/Advanced tags: $:/tags/TiddlerInfo/Advanced
\define lingo-base() $:/language/TiddlerInfo/Advanced/PluginInfo/ \define lingo-base() $:/language/TiddlerInfo/Advanced/PluginInfo/
\whitespace trim
<$list filter="[all[current]has[plugin-type]]"> <$list filter="[all[current]has[plugin-type]]">
! <<lingo Heading>> ! <<lingo Heading>>

View File

@ -19,6 +19,7 @@ tags: $:/tags/TiddlerInfo/Advanced
<$list filter="[all[current]shadowsource[]]"> <$list filter="[all[current]shadowsource[]]">
<$set name="pluginTiddler" value=<<currentTiddler>>> <$set name="pluginTiddler" value=<<currentTiddler>>>
<<lingo Shadow/Source>> <<lingo Shadow/Source>>
</$set> </$set>

View File

@ -1,6 +1,7 @@
title: $:/core/ui/TopBar/menu title: $:/core/ui/TopBar/menu
tags: $:/tags/TopRightBar tags: $:/tags/TopRightBar
\whitespace trim
<$list filter="[[$:/state/sidebar]get[text]] +[else[yes]!match[no]]" variable="ignore"> <$list filter="[[$:/state/sidebar]get[text]] +[else[yes]!match[no]]" variable="ignore">
<$button set="$:/state/sidebar" setTo="no" tooltip={{$:/language/Buttons/HideSideBar/Hint}} aria-label={{$:/language/Buttons/HideSideBar/Caption}} class="tc-btn-invisible tc-hide-sidebar-btn">{{$:/core/images/chevron-right}}</$button> <$button set="$:/state/sidebar" setTo="no" tooltip={{$:/language/Buttons/HideSideBar/Hint}} aria-label={{$:/language/Buttons/HideSideBar/Caption}} class="tc-btn-invisible tc-hide-sidebar-btn">{{$:/core/images/chevron-right}}</$button>
</$list> </$list>

View File

@ -1,6 +1,7 @@
title: $:/core/ui/UntaggedTemplate title: $:/core/ui/UntaggedTemplate
\define lingo-base() $:/language/SideBar/ \define lingo-base() $:/language/SideBar/
\whitespace trim
<$button popup=<<qualify "$:/state/popup/tag">> class="tc-btn-invisible tc-untagged-label tc-tag-label"> <$button popup=<<qualify "$:/state/popup/tag">> class="tc-btn-invisible tc-untagged-label tc-tag-label">
<<lingo Tags/Untagged/Caption>> <<lingo Tags/Untagged/Caption>>
</$button> </$button>

View File

@ -1,5 +1,6 @@
title: $:/snippets/DebugStylesheets title: $:/snippets/DebugStylesheets
\whitespace trim
<style>[test]{list-style:'❌'}</style> <style>[test]{list-style:'❌'}</style>
<ul> <ul>
<$list filter="[all[shadows+tiddlers]tag[$:/tags/Stylesheet]has[modified]]" counter="n"> <$list filter="[all[shadows+tiddlers]tag[$:/tags/Stylesheet]has[modified]]" counter="n">

View File

@ -1,6 +1,7 @@
title: $:/core/wiki/title title: $:/core/wiki/title
\whitespace trim
{{$:/SiteTitle}} {{$:/SiteTitle}}
<$list filter="[{$:/SiteSubtitle}trim[]minlength[1]]" variable="ignore"> <$list filter="[{$:/SiteSubtitle}trim[]minlength[1]]" variable="ignore">
--- {{$:/SiteSubtitle}} &#32;---&#32;{{$:/SiteSubtitle}}
</$list> </$list>