mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2026-09-16 06:41:21 +00:00
Trim Saga: All snippets, language tiddlers, and typed (#6275)
* adding trim: link-dropdown, Fields, unfold * adding trim: all remaining snippets * Fix for reversion I accidentally applied
This commit is contained in:
@@ -3,5 +3,11 @@ title: $:/snippets/allfields
|
||||
\define renderfield(title)
|
||||
<tr class="tc-view-field"><td class="tc-view-field-name">''<$text text=<<__title__>>/>'':</td><td class="tc-view-field-value">//{{$:/language/Docs/Fields/$title$}}//</td></tr>
|
||||
\end
|
||||
<table class="tc-view-field-table"><tbody><$list filter="[fields[]sort[title]]" variable="listItem"><$macrocall $name="renderfield" title=<<listItem>>/></$list>
|
||||
</tbody></table>
|
||||
\whitespace trim
|
||||
<table class="tc-view-field-table">
|
||||
<tbody>
|
||||
<$list filter="[fields[]sort[title]]" variable="listItem">
|
||||
<$macrocall $name="renderfield" title=<<listItem>>/>
|
||||
</$list>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
title: $:/snippets/download-wiki-button
|
||||
|
||||
\define lingo-base() $:/language/ControlPanel/Tools/Download/
|
||||
\whitespace trim
|
||||
<$button class="tc-btn-big-green">
|
||||
<$action-sendmessage $message="tm-download-file" $param="$:/core/save/all" filename="index.html"/>
|
||||
<<lingo Full/Caption>> {{$:/core/images/save-button}}
|
||||
<<lingo Full/Caption>> {{$:/core/images/save-button}}
|
||||
</$button>
|
||||
@@ -1,5 +1,6 @@
|
||||
title: $:/snippets/minifocusswitcher
|
||||
|
||||
\whitespace trim
|
||||
<$select tiddler="$:/config/AutoFocus">
|
||||
<$list filter="title tags text type fields">
|
||||
<option value=<<currentTiddler>>><<currentTiddler>></option>
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
title: $:/snippets/minilanguageswitcher
|
||||
|
||||
\whitespace trim
|
||||
<$select tiddler="$:/language">
|
||||
<$list filter="[[$:/languages/en-GB]] [plugin-type[language]sort[title]]">
|
||||
<option value=<<currentTiddler>>><$view field="description"><$view field="name"><$view field="title"/></$view></$view></option>
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
title: $:/snippets/minithemeswitcher
|
||||
|
||||
\define lingo-base() $:/language/ControlPanel/Theme/
|
||||
<<lingo Prompt>> <$select tiddler="$:/theme">
|
||||
\whitespace trim
|
||||
<<lingo Prompt>> <$select tiddler="$:/theme">
|
||||
<$list filter="[plugin-type[theme]sort[title]]">
|
||||
<option value=<<currentTiddler>>><$view field="name"><$view field="title"/></$view></option>
|
||||
</$list>
|
||||
|
||||
@@ -3,6 +3,7 @@ title: $:/snippets/modules
|
||||
\define describeModuleType(type)
|
||||
{{$:/language/Docs/ModuleTypes/$type$}}
|
||||
\end
|
||||
\whitespace trim
|
||||
<$list filter="[moduletypes[]]">
|
||||
|
||||
!! <$macrocall $name="currentTiddler" $type="text/plain" $output="text/plain"/>
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
title: $:/snippets/palettepreview
|
||||
|
||||
\whitespace trim
|
||||
<$set name="currentTiddler" value={{$:/palette}}>
|
||||
{{||$:/snippets/currpalettepreview}}
|
||||
</$set>
|
||||
|
||||
@@ -1,8 +1,19 @@
|
||||
title: $:/snippets/paletteswitcher
|
||||
|
||||
\whitespace trim
|
||||
<$linkcatcher to="$:/palette">
|
||||
<div class="tc-chooser"><$list filter="[all[shadows+tiddlers]tag[$:/tags/Palette]sort[name]]"><$set name="cls" filter="[all[current]prefix{$:/palette}]" value="tc-chooser-item tc-chosen" emptyValue="tc-chooser-item"><div class=<<cls>>><$link to={{!!title}}>''<$view field="name" format="text"/>'' - <$view field="description" format="text"/>{{||$:/snippets/currpalettepreview}}</$link>
|
||||
</div></$set>
|
||||
<div class="tc-chooser">
|
||||
<$list filter="[all[shadows+tiddlers]tag[$:/tags/Palette]sort[name]]">
|
||||
<$set name="cls" filter="[all[current]prefix{$:/palette}]" value="tc-chooser-item tc-chosen" emptyValue="tc-chooser-item">
|
||||
<div class=<<cls>>>
|
||||
<$link to={{!!title}}>
|
||||
''<$view field="name" format="text"/>''
|
||||
 - 
|
||||
<$view field="description" format="text"/>
|
||||
{{||$:/snippets/currpalettepreview}}
|
||||
</$link>
|
||||
</div>
|
||||
</$set>
|
||||
</$list>
|
||||
</div>
|
||||
</$linkcatcher>
|
||||
|
||||
@@ -1,7 +1,16 @@
|
||||
title: $:/snippets/themeswitcher
|
||||
|
||||
\whitespace trim
|
||||
<$linkcatcher to="$:/theme">
|
||||
<div class="tc-chooser"><$list filter="[plugin-type[theme]sort[title]]"><$set name="cls" filter="[all[current]field:title{$:/theme}] [[$:/theme]!has[text]addsuffix[s/tiddlywiki/vanilla]field:title<currentTiddler>] +[limit[1]]" value="tc-chooser-item tc-chosen" emptyValue="tc-chooser-item"><div class=<<cls>>><$link to={{!!title}}>''<$view field="name" format="text"/>'' <$view field="description" format="text"/></$link></div>
|
||||
<div class="tc-chooser">
|
||||
<$list filter="[plugin-type[theme]sort[title]]">
|
||||
<$set name="cls" filter="[all[current]field:title{$:/theme}] [[$:/theme]!has[text]addsuffix[s/tiddlywiki/vanilla]field:title<currentTiddler>] +[limit[1]]" value="tc-chooser-item tc-chosen" emptyValue="tc-chooser-item">
|
||||
<div class=<<cls>>><$link to={{!!title}}>
|
||||
''<$view field="name" format="text"/>''
|
||||
 
|
||||
<$view field="description" format="text"/>
|
||||
</$link>
|
||||
</div>
|
||||
</$set>
|
||||
</$list>
|
||||
</div>
|
||||
|
||||
@@ -3,6 +3,7 @@ title: $:/snippets/viewswitcher
|
||||
\define icon()
|
||||
$:/core/images/storyview-$(storyview)$
|
||||
\end
|
||||
\whitespace trim
|
||||
<$linkcatcher to="$:/view">
|
||||
<div class="tc-chooser tc-viewswitcher">
|
||||
<$list filter="[storyviews[]]" variable="storyview">
|
||||
|
||||
Reference in New Issue
Block a user