mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-19 08:14:50 +00:00
Merge branch 'master' into parameterised-transclusions
This commit is contained in:
commit
ea51b8a3fe
@ -11,7 +11,7 @@ alert-highlight: #FFD60A
|
|||||||
alert-muted-foreground: <<colour muted-foreground>>
|
alert-muted-foreground: <<colour muted-foreground>>
|
||||||
background: #282828
|
background: #282828
|
||||||
blockquote-bar: <<colour page-background>>
|
blockquote-bar: <<colour page-background>>
|
||||||
button-foreground: <<colour background>>
|
button-foreground: <<colour foreground>>
|
||||||
code-background: <<colour pre-background>>
|
code-background: <<colour pre-background>>
|
||||||
code-border: <<colour pre-border>>
|
code-border: <<colour pre-border>>
|
||||||
code-foreground: rgba(255, 255, 255, 0.54)
|
code-foreground: rgba(255, 255, 255, 0.54)
|
||||||
@ -52,7 +52,7 @@ pre-border: transparent
|
|||||||
primary: #0A84FF
|
primary: #0A84FF
|
||||||
select-tag-background: <<colour background>>
|
select-tag-background: <<colour background>>
|
||||||
select-tag-foreground: <<colour foreground>>
|
select-tag-foreground: <<colour foreground>>
|
||||||
sidebar-button-foreground: <<colour background>>
|
sidebar-button-foreground: <<colour foreground>>
|
||||||
sidebar-controls-foreground-hover: #FF9F0A
|
sidebar-controls-foreground-hover: #FF9F0A
|
||||||
sidebar-controls-foreground: #8E8E93
|
sidebar-controls-foreground: #8E8E93
|
||||||
sidebar-foreground-shadow: transparent
|
sidebar-foreground-shadow: transparent
|
||||||
|
@ -12,7 +12,7 @@ alert-highlight: #d79921
|
|||||||
alert-muted-foreground: #504945
|
alert-muted-foreground: #504945
|
||||||
background: #3c3836
|
background: #3c3836
|
||||||
blockquote-bar: <<colour muted-foreground>>
|
blockquote-bar: <<colour muted-foreground>>
|
||||||
button-foreground: <<colour page-background>>
|
button-foreground: <<colour foreground>>
|
||||||
code-background: #504945
|
code-background: #504945
|
||||||
code-border: #504945
|
code-border: #504945
|
||||||
code-foreground: #fb4934
|
code-foreground: #fb4934
|
||||||
@ -63,7 +63,7 @@ select-tag-background: #665c54
|
|||||||
select-tag-foreground: <<colour foreground>>
|
select-tag-foreground: <<colour foreground>>
|
||||||
selection-background: #458588
|
selection-background: #458588
|
||||||
selection-foreground: <<colour foreground>>
|
selection-foreground: <<colour foreground>>
|
||||||
sidebar-button-foreground: <<colour page-background>>
|
sidebar-button-foreground: <<colour foreground>>
|
||||||
sidebar-controls-foreground-hover: #7c6f64
|
sidebar-controls-foreground-hover: #7c6f64
|
||||||
sidebar-controls-foreground: #504945
|
sidebar-controls-foreground: #504945
|
||||||
sidebar-foreground-shadow: transparent
|
sidebar-foreground-shadow: transparent
|
||||||
|
@ -12,7 +12,7 @@ alert-highlight: #B48EAD
|
|||||||
alert-muted-foreground: #4C566A
|
alert-muted-foreground: #4C566A
|
||||||
background: #3b4252
|
background: #3b4252
|
||||||
blockquote-bar: <<colour muted-foreground>>
|
blockquote-bar: <<colour muted-foreground>>
|
||||||
button-foreground: <<colour page-background>>
|
button-foreground: <<colour foreground>>
|
||||||
code-background: #2E3440
|
code-background: #2E3440
|
||||||
code-border: #2E3440
|
code-border: #2E3440
|
||||||
code-foreground: #BF616A
|
code-foreground: #BF616A
|
||||||
@ -63,7 +63,7 @@ select-tag-background: #3b4252
|
|||||||
select-tag-foreground: <<colour foreground>>
|
select-tag-foreground: <<colour foreground>>
|
||||||
selection-background: #5E81AC
|
selection-background: #5E81AC
|
||||||
selection-foreground: <<colour foreground>>
|
selection-foreground: <<colour foreground>>
|
||||||
sidebar-button-foreground: <<colour page-background>>
|
sidebar-button-foreground: <<colour foreground>>
|
||||||
sidebar-controls-foreground-hover: #D8DEE9
|
sidebar-controls-foreground-hover: #D8DEE9
|
||||||
sidebar-controls-foreground: #4C566A
|
sidebar-controls-foreground: #4C566A
|
||||||
sidebar-foreground-shadow: transparent
|
sidebar-foreground-shadow: transparent
|
||||||
|
@ -2,7 +2,7 @@ title: $:/core/ui/EditTemplate/body/preview/output
|
|||||||
tags: $:/tags/EditPreview
|
tags: $:/tags/EditPreview
|
||||||
caption: {{$:/language/EditTemplate/Body/Preview/Type/Output}}
|
caption: {{$:/language/EditTemplate/Body/Preview/Type/Output}}
|
||||||
|
|
||||||
\import [all[shadows+tiddlers]tag[$:/tags/Macro/View]!has[draft.of]]
|
\import [all[shadows+tiddlers]tag[$:/tags/Macro/View]!has[draft.of]] [all[shadows+tiddlers]tag[$:/tags/Macro/View/Body]!has[draft.of]]
|
||||||
<$set name="tv-tiddler-preview" value="yes">
|
<$set name="tv-tiddler-preview" value="yes">
|
||||||
|
|
||||||
<$transclude />
|
<$transclude />
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
title: $:/core/ui/ViewTemplate/body
|
title: $:/core/ui/ViewTemplate/body
|
||||||
tags: $:/tags/ViewTemplate
|
tags: $:/tags/ViewTemplate
|
||||||
|
|
||||||
|
\import [all[shadows+tiddlers]tag[$:/tags/Macro/View/Body]!has[draft.of]]
|
||||||
|
|
||||||
<$reveal tag="div" class="tc-tiddler-body" type="nomatch" stateTitle=<<folded-state>> text="hide" retain="yes" animate="yes">
|
<$reveal tag="div" class="tc-tiddler-body" type="nomatch" stateTitle=<<folded-state>> text="hide" retain="yes" animate="yes">
|
||||||
|
|
||||||
<$transclude tiddler={{{ [<currentTiddler>] :cascade[all[shadows+tiddlers]tag[$:/tags/ViewTemplateBodyFilter]!is[draft]get[text]] :and[!is[blank]else[$:/core/ui/ViewTemplate/body/default]] }}} />
|
<$transclude tiddler={{{ [<currentTiddler>] :cascade[all[shadows+tiddlers]tag[$:/tags/ViewTemplateBodyFilter]!is[draft]get[text]] :and[!is[blank]else[$:/core/ui/ViewTemplate/body/default]] }}} />
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
created: 20140211171341271
|
created: 20140211171341271
|
||||||
modified: 20220128112317724
|
modified: 20220505082754270
|
||||||
tags: Concepts Reference
|
tags: Concepts Reference
|
||||||
title: Macros
|
title: Macros
|
||||||
type: text/vnd.tiddlywiki
|
type: text/vnd.tiddlywiki
|
||||||
@ -18,7 +18,11 @@ Within a snippet itself, the only markup detected is `$name$` (a placeholder for
|
|||||||
|
|
||||||
The <<.mlink dumpvariables>> macro lists all variables (including macros) that are available at that position in the widget tree.
|
The <<.mlink dumpvariables>> macro lists all variables (including macros) that are available at that position in the widget tree.
|
||||||
|
|
||||||
An <<.wlink ImportVariablesWidget>> widget can be used to copy macro definitions to another branch of the [[widget tree|Widgets]]. ~TiddlyWiki uses this technique internally to implement global macros -- namely any macros defined in tiddlers with the <<.tag $:/tags/Macro>> tag. (The tag <<.tag $:/tags/Macro/View>> is used to define macros that should only be available within the main view template and the preview panel).
|
An <<.wlink ImportVariablesWidget>> widget can be used to copy macro definitions to another branch of the [[widget tree|Widgets]]. ~TiddlyWiki uses this technique internally to implement global macros -- namely any macros defined in tiddlers with the <<.tag $:/tags/Macro>> tag.
|
||||||
|
|
||||||
|
The tag <<.tag $:/tags/Macro/View>> is used to define macros that should only be available within the main view template and the preview panel.
|
||||||
|
|
||||||
|
The tag <<.tag $:/tags/Macro/View/Body>> is used to define macros that should only be available within the main view template body and the preview panel.
|
||||||
|
|
||||||
For maximum flexibility, macros can also be <<.js-macro-link "written as JavaScript modules">>.
|
For maximum flexibility, macros can also be <<.js-macro-link "written as JavaScript modules">>.
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
created: 20130822080600000
|
created: 20130822080600000
|
||||||
list: [[SystemTag: $:/tags/AboveStory]] [[SystemTag: $:/tags/AdvancedSearch]] [[SystemTag: $:/tags/AdvancedSearch/FilterButton]] [[SystemTag: $:/tags/Alert]] [[SystemTag: $:/tags/BelowStory]] [[SystemTag: $:/tags/ControlPanel]] [[SystemTag: $:/tags/ControlPanel/Advanced]] [[SystemTag: $:/tags/ControlPanel/Appearance]] [[SystemTag: $:/tags/ControlPanel/Info]] [[SystemTag: $:/tags/ControlPanel/Saving]] [[SystemTag: $:/tags/ControlPanel/Settings]] [[SystemTag: $:/tags/ControlPanel/Toolbars]] [[SystemTag: $:/tags/EditorTools]] [[SystemTag: $:/tags/EditorToolbar]] [[SystemTag: $:/tags/EditPreview]] [[SystemTag: $:/tags/EditTemplate]] [[SystemTag: $:/tags/EditToolbar]] [[SystemTag: $:/tags/Exporter]] [[SystemTag: $:/tags/Filter]] [[SystemTag: $:/tags/Image]] [[SystemTag: $:/tags/ImportPreview]] [[SystemTag: $:/tags/KeyboardShortcut]] [[SystemTag: $:/tags/Layout]] [[SystemTag: $:/tags/Macro]] [[SystemTag: $:/tags/Macro/View]] [[SystemTag: $:/tags/Manager/ItemMain]] [[SystemTag: $:/tags/Manager/ItemSidebar]] [[SystemTag: $:/tags/MoreSideBar]] [[SystemTag: $:/tags/MoreSideBar/Plugins]] [[SystemTag: $:/tags/PageControls]] [[SystemTag: $:/tags/PageTemplate]] [[SystemTag: $:/tags/Palette]] [[SystemTag: $:/tags/PluginLibrary]] [[SystemTag: $:/tags/RawMarkup]] [[SystemTag: $:/tags/RawMarkupWikified]] [[SystemTag: $:/tags/RawMarkupWikified/BottomBody]] [[SystemTag: $:/tags/RawMarkupWikified/TopBody]] [[SystemTag: $:/tags/RawMarkupWikified/TopHead]] [[SystemTag: $:/tags/RawStaticContent]] [[SystemTag: $:/tags/RemoteAssetInfo]] [[SystemTag: $:/tags/SearchResults]] [[SystemTag: $:/tags/ServerConnection]] [[SystemTag: $:/tags/SideBar]] [[SystemTag: $:/tags/SideBarSegment]] [[SystemTag: $:/tags/StartupAction]] [[SystemTag: $:/tags/StartupAction/Browser]] [[SystemTag: $:/tags/StartupAction/Node]] [[SystemTag: $:/tags/Stylesheet]] [[SystemTag: $:/tags/TagDropdown]] [[SystemTag: $:/tags/TextEditor/Snippet]] [[SystemTag: $:/tags/TiddlerInfo]] [[SystemTag: $:/tags/TiddlerInfo/Advanced]] [[SystemTag: $:/tags/TiddlerInfoSegment]] [[SystemTag: $:/tags/ToolbarButtonStyle]] [[SystemTag: $:/tags/TopLeftBar]] [[SystemTag: $:/tags/TopRightBar]] [[SystemTag: $:/tags/ViewTemplate]] [[SystemTag: $:/tags/ViewToolbar]]
|
list: [[SystemTag: $:/tags/AboveStory]] [[SystemTag: $:/tags/AdvancedSearch]] [[SystemTag: $:/tags/AdvancedSearch/FilterButton]] [[SystemTag: $:/tags/Alert]] [[SystemTag: $:/tags/BelowStory]] [[SystemTag: $:/tags/ControlPanel]] [[SystemTag: $:/tags/ControlPanel/Advanced]] [[SystemTag: $:/tags/ControlPanel/Appearance]] [[SystemTag: $:/tags/ControlPanel/Info]] [[SystemTag: $:/tags/ControlPanel/Saving]] [[SystemTag: $:/tags/ControlPanel/Settings]] [[SystemTag: $:/tags/ControlPanel/Toolbars]] [[SystemTag: $:/tags/EditorTools]] [[SystemTag: $:/tags/EditorToolbar]] [[SystemTag: $:/tags/EditPreview]] [[SystemTag: $:/tags/EditTemplate]] [[SystemTag: $:/tags/EditToolbar]] [[SystemTag: $:/tags/Exporter]] [[SystemTag: $:/tags/Filter]] [[SystemTag: $:/tags/Image]] [[SystemTag: $:/tags/ImportPreview]] [[SystemTag: $:/tags/KeyboardShortcut]] [[SystemTag: $:/tags/Layout]] [[SystemTag: $:/tags/Macro]] [[SystemTag: $:/tags/Macro/View]] [[SystemTag: $:/tags/Macro/View/Body]] [[SystemTag: $:/tags/Manager/ItemMain]] [[SystemTag: $:/tags/Manager/ItemSidebar]] [[SystemTag: $:/tags/MoreSideBar]] [[SystemTag: $:/tags/MoreSideBar/Plugins]] [[SystemTag: $:/tags/PageControls]] [[SystemTag: $:/tags/PageTemplate]] [[SystemTag: $:/tags/Palette]] [[SystemTag: $:/tags/PluginLibrary]] [[SystemTag: $:/tags/RawMarkup]] [[SystemTag: $:/tags/RawMarkupWikified]] [[SystemTag: $:/tags/RawMarkupWikified/BottomBody]] [[SystemTag: $:/tags/RawMarkupWikified/TopBody]] [[SystemTag: $:/tags/RawMarkupWikified/TopHead]] [[SystemTag: $:/tags/RawStaticContent]] [[SystemTag: $:/tags/RemoteAssetInfo]] [[SystemTag: $:/tags/SearchResults]] [[SystemTag: $:/tags/ServerConnection]] [[SystemTag: $:/tags/SideBar]] [[SystemTag: $:/tags/SideBarSegment]] [[SystemTag: $:/tags/StartupAction]] [[SystemTag: $:/tags/StartupAction/Browser]] [[SystemTag: $:/tags/StartupAction/Node]] [[SystemTag: $:/tags/Stylesheet]] [[SystemTag: $:/tags/TagDropdown]] [[SystemTag: $:/tags/TextEditor/Snippet]] [[SystemTag: $:/tags/TiddlerInfo]] [[SystemTag: $:/tags/TiddlerInfo/Advanced]] [[SystemTag: $:/tags/TiddlerInfoSegment]] [[SystemTag: $:/tags/ToolbarButtonStyle]] [[SystemTag: $:/tags/TopLeftBar]] [[SystemTag: $:/tags/TopRightBar]] [[SystemTag: $:/tags/ViewTemplate]] [[SystemTag: $:/tags/ViewToolbar]]
|
||||||
modified: 20210519160636964
|
modified: 20210519160636964
|
||||||
tags: Reference Concepts
|
tags: Reference Concepts
|
||||||
title: SystemTags
|
title: SystemTags
|
||||||
|
@ -0,0 +1,9 @@
|
|||||||
|
caption: $:/tags/Macro/View/Body
|
||||||
|
created: 20200103092530990
|
||||||
|
description: marks global macros only active in View template body
|
||||||
|
modified: 20220505082912548
|
||||||
|
tags: SystemTags
|
||||||
|
title: SystemTag: $:/tags/Macro/View/Body
|
||||||
|
type: text/vnd.tiddlywiki
|
||||||
|
|
||||||
|
The [[system tag|SystemTags]] `$:/tags/Macro/View/Body` marks macros that are only made available within the main view template bodies and the preview panel.
|
Loading…
Reference in New Issue
Block a user