mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-12-24 00:50:28 +00:00
Another batch of whitespace trims (#6587)
This commit is contained in:
parent
e28af8d594
commit
8990423374
@ -3,20 +3,30 @@ title: $:/core/ui/ExportTiddlyWikiCore
|
||||
\define jsFileName() tiddlywikicore-$(version)$.js
|
||||
\define noExportMsg()
|
||||
It appears that you have a wiki with an external ~TiddlyWiki core. The export action cannot be performed.
|
||||
<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>
|
||||
\end
|
||||
\rules except wikilink
|
||||
\whitespace trim
|
||||
|
||||
''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">
|
||||
<$list filter="[[$:/boot/boot.js]is[missing]]" variable="ignore" emptyMessage="""<$action-sendmessage $message="tm-download-file" $param="$:/core/templates/tiddlywiki5.js" filename=<<jsFileName>>/>""" >
|
||||
<$button
|
||||
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-sendmessage $message="tm-modal" $param=<<qualify "$:/temp/alert">>/>
|
||||
</$list>
|
||||
{{$:/core/images/download-button}} Download ~TiddlyWiki core
|
||||
{{$:/core/images/download-button}}
|
||||
 
|
||||
Download TiddlyWiki core
|
||||
</$button>
|
||||
|
||||
[[Further information|https://tiddlywiki.com/#Using%20the%20external%20JavaScript%20template]]
|
||||
|
@ -2,6 +2,7 @@ title: $:/core/ui/KeyboardShortcuts/advanced-search
|
||||
tags: $:/tags/KeyboardShortcut
|
||||
key: ((advanced-search))
|
||||
|
||||
\whitespace trim
|
||||
<$navigator story="$:/StoryList" history="$:/HistoryList">
|
||||
<$action-navigate $to="$:/AdvancedSearch"/>
|
||||
<$action-sendmessage $message="tm-focus-selector" $param="""[data-tiddler-title="$:/AdvancedSearch"] .tc-search input""" preventScroll="true"/>
|
||||
|
@ -2,7 +2,9 @@ title: $:/core/ui/KeyboardShortcuts/change-sidebar-layout
|
||||
tags: $:/tags/KeyboardShortcut
|
||||
key: ((change-sidebar-layout))
|
||||
|
||||
<$list filter="[{$:/themes/tiddlywiki/vanilla/options/sidebarlayout}match[fixed-fluid]]"
|
||||
emptyMessage="""<$action-setfield $tiddler="$:/themes/tiddlywiki/vanilla/options/sidebarlayout" text="fixed-fluid"/>""">
|
||||
\whitespace trim
|
||||
<$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"/>
|
||||
</$list>
|
||||
|
@ -2,6 +2,7 @@ title: $:/core/ui/KeyboardShortcuts/new-image
|
||||
tags: $:/tags/KeyboardShortcut
|
||||
key: ((new-image))
|
||||
|
||||
\whitespace trim
|
||||
<$navigator story="$:/StoryList" history="$:/HistoryList" openLinkFromInsideRiver={{$:/config/Navigation/openLinkFromInsideRiver}} openLinkFromOutsideRiver={{$:/config/Navigation/openLinkFromOutsideRiver}} relinkOnRename={{$:/config/RelinkOnRename}}>
|
||||
{{$:/core/ui/Actions/new-image}}
|
||||
</$navigator>
|
||||
|
@ -2,6 +2,7 @@ title: $:/core/ui/KeyboardShortcuts/new-journal
|
||||
tags: $:/tags/KeyboardShortcut
|
||||
key: ((new-journal))
|
||||
|
||||
\whitespace trim
|
||||
<$navigator story="$:/StoryList" history="$:/HistoryList" openLinkFromInsideRiver={{$:/config/Navigation/openLinkFromInsideRiver}} openLinkFromOutsideRiver={{$:/config/Navigation/openLinkFromOutsideRiver}} relinkOnRename={{$:/config/RelinkOnRename}}>
|
||||
{{$:/core/ui/Actions/new-journal}}
|
||||
</$navigator>
|
||||
|
@ -2,6 +2,7 @@ title: $:/core/ui/KeyboardShortcuts/new-tiddler
|
||||
tags: $:/tags/KeyboardShortcut
|
||||
key: ((new-tiddler))
|
||||
|
||||
\whitespace trim
|
||||
<$navigator story="$:/StoryList" history="$:/HistoryList" openLinkFromInsideRiver={{$:/config/Navigation/openLinkFromInsideRiver}} openLinkFromOutsideRiver={{$:/config/Navigation/openLinkFromOutsideRiver}} relinkOnRename={{$:/config/RelinkOnRename}}>
|
||||
{{$:/core/ui/Actions/new-tiddler}}
|
||||
</$navigator>
|
||||
|
@ -2,6 +2,7 @@ title: $:/core/ui/KeyboardShortcuts/save-wiki
|
||||
tags: $:/tags/KeyboardShortcut
|
||||
key: ((save-wiki))
|
||||
|
||||
\whitespace trim
|
||||
<$wikify name="site-title" text={{$:/config/SaveWikiButton/Filename}}>
|
||||
<$action-sendmessage $message="tm-save-wiki" $param={{$:/config/SaveWikiButton/Template}} filename=<<site-title>>/>
|
||||
</$wikify>
|
||||
|
@ -2,8 +2,9 @@ title: $:/core/ui/KeyboardShortcuts/toggle-sidebar
|
||||
tags: $:/tags/KeyboardShortcut
|
||||
key: ((toggle-sidebar))
|
||||
|
||||
<$list filter="[[$:/state/sidebar]is[missing]] [{$:/state/sidebar}removeprefix[yes]]" emptyMessage="""
|
||||
<$action-setfield $tiddler="$:/state/sidebar" text="yes"/>
|
||||
""">
|
||||
\whitespace trim
|
||||
<$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"/>
|
||||
</$list>
|
||||
|
@ -1,5 +1,3 @@
|
||||
title: $:/core/ui/ListItemTemplate
|
||||
|
||||
<div class="tc-menu-list-item">
|
||||
<$link />
|
||||
</div>
|
||||
<div class="tc-menu-list-item"><$link /></div>
|
@ -1,5 +1,6 @@
|
||||
title: $:/core/ui/MissingTemplate
|
||||
|
||||
\whitespace trim
|
||||
<div class="tc-tiddler-missing">
|
||||
<$button popup=<<qualify "$:/state/popup/missing">> class="tc-btn-invisible tc-missing-tiddler-label">
|
||||
<$view field="title" format="text" />
|
||||
|
@ -2,6 +2,7 @@ title: $:/core/ui/MoreSideBar/Types
|
||||
tags: $:/tags/MoreSideBar
|
||||
caption: {{$:/language/SideBar/Types/Caption}}
|
||||
|
||||
\whitespace trim
|
||||
<$list filter={{$:/core/Filters/TypedTiddlers!!filter}}>
|
||||
<div class="tc-menu-list-item">
|
||||
<$view field="type"/>
|
||||
|
@ -1,6 +1,7 @@
|
||||
title: $:/core/ui/PageStylesheet
|
||||
|
||||
\import [[$:/core/ui/PageMacros]] [all[shadows+tiddlers]tag[$:/tags/Macro]!has[draft.of]]
|
||||
\whitespace trim
|
||||
|
||||
<$set name="currentTiddler" value={{$:/language}}>
|
||||
|
||||
|
@ -9,6 +9,7 @@ $(currentTiddler)$/$(currentTab)$
|
||||
\define default-tiddler-title()
|
||||
$:/core/ui/PluginInfo/Default/$(currentTab)$
|
||||
\end
|
||||
\whitespace trim
|
||||
<$transclude tiddler=<<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">
|
||||
|
@ -1,6 +1,7 @@
|
||||
title: $:/core/ui/PluginInfo/Default/contents
|
||||
|
||||
\define lingo-base() $:/language/TiddlerInfo/Advanced/PluginInfo/
|
||||
\whitespace trim
|
||||
<<lingo Hint>>
|
||||
<ul>
|
||||
<$list filter="[all[current]plugintiddlers[]sort[title]]" emptyMessage=<<lingo Empty/Hint>>>
|
||||
|
@ -2,13 +2,15 @@ title: $:/core/ui/SearchResults
|
||||
|
||||
<div class="tc-search-results">
|
||||
|
||||
<$list filter="[all[shadows+tiddlers]tag[$:/tags/SearchResults]!has[draft.of]butfirst[]limit[1]]" emptyMessage="""
|
||||
<$list filter="[all[shadows+tiddlers]tag[$:/tags/SearchResults]!has[draft.of]]">
|
||||
<$transclude mode="block"/>
|
||||
</$list>
|
||||
""">
|
||||
<$list
|
||||
filter="[all[shadows+tiddlers]tag[$:/tags/SearchResults]!has[draft.of]butfirst[]limit[1]]"
|
||||
emptyMessage="<$list filter='[all[shadows+tiddlers]tag[$:/tags/SearchResults]!has[draft.of]]'><$transclude mode='block'/></$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>
|
||||
|
||||
|
@ -2,6 +2,7 @@ title: $:/core/ui/SideBar/More
|
||||
tags: $:/tags/SideBar
|
||||
caption: {{$:/language/SideBar/More/Caption}}
|
||||
|
||||
\whitespace trim
|
||||
<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"/>
|
||||
</div>
|
||||
|
@ -1,5 +1,6 @@
|
||||
title: $:/core/ui/TiddlerFieldTemplate
|
||||
|
||||
\whitespace trim
|
||||
<tr class="tc-view-field">
|
||||
<td class="tc-view-field-name">
|
||||
<$text text=<<listItem>>/>
|
||||
|
@ -1,5 +1,6 @@
|
||||
title: $:/core/ui/TiddlerFields
|
||||
|
||||
\whitespace trim
|
||||
<table class="tc-view-field-table">
|
||||
<tbody>
|
||||
<$list filter="[all[current]fields[]sort[title]] -text" template="$:/core/ui/TiddlerFieldTemplate" variable="listItem"/>
|
||||
|
@ -1,5 +1,6 @@
|
||||
title: $:/core/ui/TiddlerInfo
|
||||
|
||||
\whitespace trim
|
||||
<div style="position:relative;">
|
||||
<div class="tc-tiddler-controls" style="position:absolute;right:0;">
|
||||
<$reveal state="$:/config/TiddlerInfo/Mode" type="match" text="sticky">
|
||||
|
@ -5,4 +5,5 @@ caption: {{$:/language/TiddlerInfo/Advanced/Caption}}
|
||||
<$list filter="[all[shadows+tiddlers]tag[$:/tags/TiddlerInfo/Advanced]!has[draft.of]]" variable="listItem">
|
||||
|
||||
<$transclude tiddler=<<listItem>> mode="block"/>
|
||||
|
||||
</$list>
|
||||
|
@ -2,6 +2,7 @@ title: $:/core/ui/TiddlerInfo/Advanced/PluginInfo
|
||||
tags: $:/tags/TiddlerInfo/Advanced
|
||||
|
||||
\define lingo-base() $:/language/TiddlerInfo/Advanced/PluginInfo/
|
||||
\whitespace trim
|
||||
<$list filter="[all[current]has[plugin-type]]">
|
||||
|
||||
! <<lingo Heading>>
|
||||
|
@ -19,6 +19,7 @@ tags: $:/tags/TiddlerInfo/Advanced
|
||||
<$list filter="[all[current]shadowsource[]]">
|
||||
|
||||
<$set name="pluginTiddler" value=<<currentTiddler>>>
|
||||
|
||||
<<lingo Shadow/Source>>
|
||||
</$set>
|
||||
|
||||
|
@ -1,6 +1,7 @@
|
||||
title: $:/core/ui/TopBar/menu
|
||||
tags: $:/tags/TopRightBar
|
||||
|
||||
\whitespace trim
|
||||
<$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>
|
||||
</$list>
|
||||
|
@ -1,6 +1,7 @@
|
||||
title: $:/core/ui/UntaggedTemplate
|
||||
|
||||
\define lingo-base() $:/language/SideBar/
|
||||
\whitespace trim
|
||||
<$button popup=<<qualify "$:/state/popup/tag">> class="tc-btn-invisible tc-untagged-label tc-tag-label">
|
||||
<<lingo Tags/Untagged/Caption>>
|
||||
</$button>
|
||||
|
@ -1,5 +1,6 @@
|
||||
title: $:/snippets/DebugStylesheets
|
||||
|
||||
\whitespace trim
|
||||
<style>[test]{list-style:'❌'}</style>
|
||||
<ul>
|
||||
<$list filter="[all[shadows+tiddlers]tag[$:/tags/Stylesheet]has[modified]]" counter="n">
|
||||
|
@ -1,6 +1,7 @@
|
||||
title: $:/core/wiki/title
|
||||
|
||||
\whitespace trim
|
||||
{{$:/SiteTitle}}
|
||||
<$list filter="[{$:/SiteSubtitle}trim[]minlength[1]]" variable="ignore">
|
||||
--- {{$:/SiteSubtitle}}
|
||||
 --- {{$:/SiteSubtitle}}
|
||||
</$list>
|
Loading…
Reference in New Issue
Block a user