mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2026-01-25 04:14:40 +00:00
Compare commits
101 Commits
cascade-fi
...
v5.2.1
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b73c50adeb | ||
|
|
fdfa45329a | ||
|
|
7b1880404c | ||
|
|
2739b1bafe | ||
|
|
cc782ff518 | ||
|
|
492bfbebe9 | ||
|
|
c9fbff265a | ||
|
|
b0f72d0690 | ||
|
|
6070a2c921 | ||
|
|
cb43b91ab6 | ||
|
|
804bc9e9c0 | ||
|
|
4514a67a1f | ||
|
|
edcba4ee16 | ||
|
|
9e28356047 | ||
|
|
44ad8c770f | ||
|
|
2dd4fa41a5 | ||
|
|
f5389b3859 | ||
|
|
65c8d74218 | ||
|
|
f88e3939e1 | ||
|
|
769778b05b | ||
|
|
f84ff0d778 | ||
|
|
ca1aabe21f | ||
|
|
dd801d1571 | ||
|
|
485730483b | ||
|
|
8b6733d792 | ||
|
|
75aabcce64 | ||
|
|
5dfa6b2bb4 | ||
|
|
3798a3c7d0 | ||
|
|
1c4b2243a6 | ||
|
|
c11493ec37 | ||
|
|
b6c8cdae64 | ||
|
|
b80d079d71 | ||
|
|
6512b038c5 | ||
|
|
6d1d497a63 | ||
|
|
6ea7140e8f | ||
|
|
7b311b0e4a | ||
|
|
be3018fe3b | ||
|
|
68095eb392 | ||
|
|
4bb34e4801 | ||
|
|
1348607c8f | ||
|
|
2f86779a27 | ||
|
|
2af632a46d | ||
|
|
05606f72ad | ||
|
|
6d0701e0fa | ||
|
|
76cdc17f3b | ||
|
|
7b076eadfa | ||
|
|
c5ce2a0a94 | ||
|
|
7fcc84156e | ||
|
|
75bf12db7a | ||
|
|
07de96459e | ||
|
|
be036aa9c8 | ||
|
|
0664895670 | ||
|
|
dde1e4bc0f | ||
|
|
122de63b71 | ||
|
|
e3ba880e18 | ||
|
|
e3be15531f | ||
|
|
5a3ff4e3dc | ||
|
|
f7f32f00a3 | ||
|
|
d7d694b14f | ||
|
|
a6feb6dd66 | ||
|
|
ecf10e41c3 | ||
|
|
481edc1cfe | ||
|
|
ff5817ab50 | ||
|
|
80235bf049 | ||
|
|
ecddd5a7be | ||
|
|
f22fc788e5 | ||
|
|
f828a582c3 | ||
|
|
a94f94f352 | ||
|
|
9f34a01577 | ||
|
|
9cd49ed485 | ||
|
|
4ea1a05af6 | ||
|
|
b6eb6d477b | ||
|
|
cce18d8e2e | ||
|
|
45d469ca5c | ||
|
|
fbee714ffe | ||
|
|
2429dcc2e2 | ||
|
|
4d84422f22 | ||
|
|
d98bfbde58 | ||
|
|
983787a8f2 | ||
|
|
7b83c22e78 | ||
|
|
c8c43b2811 | ||
|
|
7e32e2efcf | ||
|
|
6f8e842105 | ||
|
|
ce99c0aa0f | ||
|
|
3ff165402c | ||
|
|
a350a76a00 | ||
|
|
05b9dd1822 | ||
|
|
5207b1c127 | ||
|
|
267c351735 | ||
|
|
f545418e55 | ||
|
|
97dd832d2e | ||
|
|
d7e7d87581 | ||
|
|
bd2efeaaa3 | ||
|
|
a206bf56b9 | ||
|
|
a33e94c4ee | ||
|
|
e9313b1c9d | ||
|
|
8096935d87 | ||
|
|
dcb083abb0 | ||
|
|
6cc76fe6ab | ||
|
|
4f8de1881c | ||
|
|
746a8ca17f |
File diff suppressed because one or more lines are too long
@@ -208,6 +208,8 @@ Theme/Caption: Theme
|
||||
Theme/Prompt: Current theme:
|
||||
TiddlerFields/Caption: Tiddler Fields
|
||||
TiddlerFields/Hint: This is the full set of TiddlerFields in use in this wiki (including system tiddlers but excluding shadow tiddlers).
|
||||
TiddlerColour/Caption: Tiddler Colour
|
||||
TiddlerColour/Hint: This rules cascade is used to dynamically choose the colour for a tiddler (used for the icon and the associated tag pill).
|
||||
TiddlerIcon/Caption: Tiddler Icon
|
||||
TiddlerIcon/Hint: This rules cascade is used to dynamically choose the icon for a tiddler.
|
||||
Toolbars/Caption: Toolbars
|
||||
|
||||
@@ -324,7 +324,7 @@ function editTextWidgetFactory(toolbarEngine,nonToolbarEngine) {
|
||||
If there are no Files, let the browser handle it.
|
||||
*/
|
||||
EditTextWidget.prototype.handleDropEvent = function(event) {
|
||||
if(event.dataTransfer.files.length) {
|
||||
if($tw.utils.dragEventContainsFiles(event)) {
|
||||
event.preventDefault();
|
||||
event.stopPropagation();
|
||||
this.dispatchDOMEvent(this.cloneEvent(event,["dataTransfer"]));
|
||||
|
||||
@@ -26,17 +26,19 @@ exports.cascade = function(operationSubFunction,options) {
|
||||
filterFnList[index] = options.wiki.compileFilter(filter);
|
||||
}
|
||||
var output = filterFnList[index](options.wiki.makeTiddlerIterator([title]),{
|
||||
getVariable: function(name) {
|
||||
switch(name) {
|
||||
case "currentTiddler":
|
||||
return "" + title;
|
||||
case "..currentTiddler":
|
||||
return widget.getVariable("currentTiddler");
|
||||
default:
|
||||
return widget.getVariable(name);
|
||||
}
|
||||
getVariable: function(name,opts) {
|
||||
opts = opts || {};
|
||||
opts.variables = {
|
||||
"currentTiddler": "" + title,
|
||||
"..currentTiddler": widget.getVariable("currentTiddler")
|
||||
};
|
||||
if(name in opts.variables) {
|
||||
return opts.variables[name];
|
||||
} else {
|
||||
return widget.getVariable(name,opts);
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
if(output.length !== 0) {
|
||||
result = output[0];
|
||||
return false;
|
||||
|
||||
@@ -16,23 +16,30 @@ Export our filter function
|
||||
exports.filter = function(operationSubFunction,options) {
|
||||
return function(results,source,widget) {
|
||||
if(results.length > 0) {
|
||||
var resultsToRemove = [];
|
||||
var resultsToRemove = [],
|
||||
index = 0;
|
||||
results.each(function(title) {
|
||||
var filtered = operationSubFunction(options.wiki.makeTiddlerIterator([title]),{
|
||||
getVariable: function(name) {
|
||||
switch(name) {
|
||||
case "currentTiddler":
|
||||
return "" + title;
|
||||
case "..currentTiddler":
|
||||
return widget.getVariable("currentTiddler");
|
||||
default:
|
||||
return widget.getVariable(name);
|
||||
getVariable: function(name,opts) {
|
||||
opts = opts || {};
|
||||
opts.variables = {
|
||||
"currentTiddler": "" + title,
|
||||
"..currentTiddler": widget.getVariable("currentTiddler"),
|
||||
"index": "" + index,
|
||||
"revIndex": "" + (results.length - 1 - index),
|
||||
"length": "" + results.length
|
||||
};
|
||||
if(name in opts.variables) {
|
||||
return opts.variables[name];
|
||||
} else {
|
||||
return widget.getVariable(name,opts);
|
||||
}
|
||||
}
|
||||
});
|
||||
if(filtered.length === 0) {
|
||||
resultsToRemove.push(title);
|
||||
}
|
||||
++index;
|
||||
});
|
||||
results.remove(resultsToRemove);
|
||||
}
|
||||
|
||||
@@ -20,20 +20,19 @@ exports.map = function(operationSubFunction,options) {
|
||||
results.clear();
|
||||
$tw.utils.each(inputTitles,function(title) {
|
||||
var filtered = operationSubFunction(options.wiki.makeTiddlerIterator([title]),{
|
||||
getVariable: function(name) {
|
||||
switch(name) {
|
||||
case "currentTiddler":
|
||||
return "" + title;
|
||||
case "..currentTiddler":
|
||||
return widget.getVariable("currentTiddler");
|
||||
case "index":
|
||||
return "" + index;
|
||||
case "revIndex":
|
||||
return "" + (inputTitles.length - 1 - index);
|
||||
case "length":
|
||||
return "" + inputTitles.length;
|
||||
default:
|
||||
return widget.getVariable(name);
|
||||
getVariable: function(name,opts) {
|
||||
opts = opts || {};
|
||||
opts.variables = {
|
||||
"currentTiddler": "" + title,
|
||||
"..currentTiddler": widget.getVariable("currentTiddler"),
|
||||
"index": "" + index,
|
||||
"revIndex": "" + (inputTitles.length - 1 - index),
|
||||
"length": "" + inputTitles.length
|
||||
};
|
||||
if(name in opts.variables) {
|
||||
return opts.variables[name];
|
||||
} else {
|
||||
return widget.getVariable(name,opts);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
@@ -15,26 +15,24 @@ Export our filter prefix function
|
||||
exports.reduce = function(operationSubFunction,options) {
|
||||
return function(results,source,widget) {
|
||||
if(results.length > 0) {
|
||||
var accumulator = "";
|
||||
var index = 0;
|
||||
var accumulator = "",
|
||||
index = 0;
|
||||
results.each(function(title) {
|
||||
var list = operationSubFunction(options.wiki.makeTiddlerIterator([title]),{
|
||||
getVariable: function(name) {
|
||||
switch(name) {
|
||||
case "currentTiddler":
|
||||
return "" + title;
|
||||
case "..currentTiddler":
|
||||
return widget.getVariable("currentTiddler");
|
||||
case "accumulator":
|
||||
return "" + accumulator;
|
||||
case "index":
|
||||
return "" + index;
|
||||
case "revIndex":
|
||||
return "" + (results.length - 1 - index);
|
||||
case "length":
|
||||
return "" + results.length;
|
||||
default:
|
||||
return widget.getVariable(name);
|
||||
getVariable: function(name,opts) {
|
||||
opts = opts || {};
|
||||
opts.variables = {
|
||||
"currentTiddler": "" + title,
|
||||
"..currentTiddler": widget.getVariable("currentTiddler"),
|
||||
"index": "" + index,
|
||||
"revIndex": "" + (results.length - 1 - index),
|
||||
"length": "" + results.length,
|
||||
"accumulator": "" + accumulator
|
||||
};
|
||||
if(name in opts.variables) {
|
||||
return opts.variables[name];
|
||||
} else {
|
||||
return widget.getVariable(name,opts);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
@@ -26,14 +26,16 @@ exports.sort = function(operationSubFunction,options) {
|
||||
compareFn;
|
||||
results.each(function(title) {
|
||||
var key = operationSubFunction(options.wiki.makeTiddlerIterator([title]),{
|
||||
getVariable: function(name) {
|
||||
switch(name) {
|
||||
case "currentTiddler":
|
||||
return "" + title;
|
||||
case "..currentTiddler":
|
||||
return widget.getVariable("currentTiddler");
|
||||
default:
|
||||
return widget.getVariable(name);
|
||||
getVariable: function(name,opts) {
|
||||
opts = opts || {};
|
||||
opts.variables = {
|
||||
"currentTiddler": "" + title,
|
||||
"..currentTiddler": widget.getVariable("currentTiddler")
|
||||
};
|
||||
if(name in opts.variables) {
|
||||
return opts.variables[name];
|
||||
} else {
|
||||
return widget.getVariable(name,opts);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
@@ -208,10 +208,10 @@ function parseJSONTiddlers(json,fallbackTitle) {
|
||||
return data;
|
||||
};
|
||||
|
||||
exports.dragEventContainsFiles = function(event) {
|
||||
function dragEventContainsType(event,targetType) {
|
||||
if(event.dataTransfer.types) {
|
||||
for(var i=0; i<event.dataTransfer.types.length; i++) {
|
||||
if(event.dataTransfer.types[i] === "Files") {
|
||||
if(event.dataTransfer.types[i] === targetType) {
|
||||
return true;
|
||||
break;
|
||||
}
|
||||
@@ -220,4 +220,10 @@ exports.dragEventContainsFiles = function(event) {
|
||||
return false;
|
||||
};
|
||||
|
||||
exports.dragEventContainsFiles = function(event) {
|
||||
return (dragEventContainsType(event,"Files") && !dragEventContainsType(event,"text/plain"));
|
||||
};
|
||||
|
||||
exports.dragEventContainsType = dragEventContainsType;
|
||||
|
||||
})();
|
||||
|
||||
@@ -198,7 +198,8 @@ DropZoneWidget.prototype.handleDropEvent = function(event) {
|
||||
this.resetState();
|
||||
// Import any files in the drop
|
||||
var numFiles = 0;
|
||||
if(dataTransfer.files) {
|
||||
// If we have type text/vnd.tiddlywiki then skip trying to import files
|
||||
if(dataTransfer.files && !$tw.utils.dragEventContainsType(event,"text/vnd.tiddler")) {
|
||||
numFiles = this.wiki.readFiles(dataTransfer.files,{
|
||||
callback: readFileCallback,
|
||||
deserializer: this.dropzoneDeserializer
|
||||
|
||||
@@ -122,7 +122,7 @@ Widget.prototype.getVariableInfo = function(name,options) {
|
||||
});
|
||||
// Only substitute variable references if this variable was defined with the \define pragma
|
||||
if(variable.isMacroDefinition) {
|
||||
value = this.substituteVariableReferences(value);
|
||||
value = this.substituteVariableReferences(value,options);
|
||||
}
|
||||
return {
|
||||
text: value,
|
||||
@@ -175,10 +175,10 @@ Widget.prototype.resolveVariableParameters = function(formalParams,actualParams)
|
||||
return results;
|
||||
};
|
||||
|
||||
Widget.prototype.substituteVariableReferences = function(text) {
|
||||
Widget.prototype.substituteVariableReferences = function(text,options) {
|
||||
var self = this;
|
||||
return (text || "").replace(/\$\(([^\)\$]+)\)\$/g,function(match,p1,offset,string) {
|
||||
return self.getVariable(p1,{defaultValue: ""});
|
||||
return options.variables && options.variables[p1] || (self.getVariable(p1,{defaultValue: ""}));
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
title: $:/core/ui/Components/tag-link
|
||||
|
||||
<$link>
|
||||
<$set name="backgroundColor" value={{!!color}}>
|
||||
<$set name="backgroundColor" value={{{ [<currentTiddler>] :cascade[all[shadows+tiddlers]tag[$:/tags/TiddlerColourFilter]!is[draft]get[text]] }}}>
|
||||
<span style=<<tag-styles>> class="tc-tag-label">
|
||||
<$view field="title" format="text"/>
|
||||
</span>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
title: $:/core/ui/ControlPanel/EditTemplateBody
|
||||
tags: $:/tags/ControlPanel/Cascade
|
||||
tags: $:/tags/ControlPanel/Cascades
|
||||
caption: {{$:/language/ControlPanel/EditTemplateBody/Caption}}
|
||||
|
||||
\define lingo-base() $:/language/ControlPanel/EditTemplateBody/
|
||||
|
||||
9
core/ui/ControlPanel/Cascades/TiddlerColour.tid
Normal file
9
core/ui/ControlPanel/Cascades/TiddlerColour.tid
Normal file
@@ -0,0 +1,9 @@
|
||||
title: $:/core/ui/ControlPanel/TiddlerColour
|
||||
tags: $:/tags/ControlPanel/Cascades
|
||||
caption: {{$:/language/ControlPanel/TiddlerColour/Caption}}
|
||||
|
||||
\define lingo-base() $:/language/ControlPanel/TiddlerColour/
|
||||
|
||||
<<lingo Hint>>
|
||||
|
||||
{{$:/tags/TiddlerColourFilter||$:/snippets/ListTaggedCascade}}
|
||||
@@ -1,4 +1,4 @@
|
||||
title: $:/core/ui/EditTemplate/body
|
||||
tags: $:/tags/EditTemplate
|
||||
|
||||
<$transclude tiddler={{{ [<currentTiddler>] :cascade[all[shadows+tiddlers]tag[$:/tags/EditTemplateBodyFilter]get[text]] :and[!is[blank]else[$:/core/ui/EditTemplate/body/default]] }}} />
|
||||
<$transclude tiddler={{{ [<currentTiddler>] :cascade[all[shadows+tiddlers]tag[$:/tags/EditTemplateBodyFilter]!is[draft]get[text]] :and[!is[blank]else[$:/core/ui/EditTemplate/body/default]] }}} />
|
||||
|
||||
@@ -29,7 +29,7 @@ color:$(foregroundColor)$;
|
||||
\whitespace trim
|
||||
<div class="tc-edit-tags">
|
||||
<$list filter="[list[!!$tagField$]sort[title]]" storyview="pop">
|
||||
<$macrocall $name="tag-body" colour={{!!color}} palette={{$:/palette}} icon={{!!icon}} tagField=<<__tagField__>>/>
|
||||
<$macrocall $name="tag-body" colour={{{ [<currentTiddler>] :cascade[all[shadows+tiddlers]tag[$:/tags/TiddlerColourFilter]!is[draft]get[text]] }}} palette={{$:/palette}} icon={{{ [<currentTiddler>] :cascade[all[shadows+tiddlers]tag[$:/tags/TiddlerIconFilter]!is[draft]get[text]] }}} tagField=<<__tagField__>>/>
|
||||
</$list>
|
||||
<$vars tabIndex={{$:/config/EditTabIndex}} cancelPopups="yes">
|
||||
<$macrocall $name="tag-picker" tagField=<<__tagField__>>/>
|
||||
|
||||
@@ -1,5 +1,15 @@
|
||||
title: $:/core/ui/PluginListItemTemplate
|
||||
|
||||
<div class="tc-menu-list-item">
|
||||
<$link to={{!!title}}><$view field="description"><$view field="title"/></$view></$link>
|
||||
</div>
|
||||
\whitespace trim
|
||||
<$link to={{!!title}} class="tc-plugin-info">
|
||||
<div class="tc-plugin-info-chunk tc-plugin-info-icon">
|
||||
<$transclude tiddler=<<currentTiddler>> subtiddler={{{ [<currentTiddler>addsuffix[/icon]] }}}>
|
||||
<$transclude tiddler={{{ [<currentTiddler>get[plugin-type]addprefix[$:/core/images/plugin-generic-]] }}}/>
|
||||
</$transclude>
|
||||
</div>
|
||||
<div class="tc-plugin-info-chunk tc-plugin-info-description">
|
||||
<h1>
|
||||
''<$text text={{{ [<currentTiddler>get[name]] ~[<currentTiddler>split[/]last[1]] }}}/>'': <$view field="description"><$view field="title"/></$view>
|
||||
</h1>
|
||||
</div>
|
||||
</$link>
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
title: $:/core/ui/StoryTiddlerTemplate
|
||||
|
||||
<$transclude tiddler={{{ [<currentTiddler>] :cascade[all[shadows+tiddlers]tag[$:/tags/StoryTiddlerTemplateFilter]get[text]] :and[!is[blank]else{$:/config/ui/ViewTemplate}] }}} />
|
||||
<$transclude tiddler={{{ [<currentTiddler>] :cascade[all[shadows+tiddlers]tag[$:/tags/StoryTiddlerTemplateFilter]!is[draft]get[text]] :and[!is[blank]else{$:/config/ui/ViewTemplate}] }}} />
|
||||
|
||||
@@ -13,8 +13,8 @@ title: $:/core/ui/TagPickerTagTemplate
|
||||
<$action-setfield $tiddler=<<refreshTitle>> text="yes"/>
|
||||
</$list>
|
||||
<<actions>>
|
||||
<$set name="backgroundColor" value={{!!color}}>
|
||||
<$wikify name="foregroundColor" text="""<$macrocall $name="contrastcolour" target={{!!color}} fallbackTarget=<<fallbackTarget>> colourA=<<colourA>> colourB=<<colourB>>/>""">
|
||||
<$set name="backgroundColor" value={{{ [<currentTiddler>] :cascade[all[shadows+tiddlers]tag[$:/tags/TiddlerColourFilter]!is[draft]get[text]] }}}>
|
||||
<$wikify name="foregroundColor" text="""<$macrocall $name="contrastcolour" target=<<backgroundColor>> fallbackTarget=<<fallbackTarget>> colourA=<<colourA>> colourB=<<colourB>>/>""">
|
||||
<span class="tc-tag-label tc-btn-invisible" style=<<tag-pill-styles>>>
|
||||
{{||$:/core/ui/TiddlerIcon}}<$view field="title" format="text"/>
|
||||
</span>
|
||||
|
||||
@@ -3,7 +3,7 @@ title: $:/core/ui/TagTemplate
|
||||
\whitespace trim
|
||||
<span class="tc-tag-list-item" data-tag-title=<<currentTiddler>>>
|
||||
<$set name="transclusion" value=<<currentTiddler>>>
|
||||
<$macrocall $name="tag-pill-body" tag=<<currentTiddler>> colour={{!!color}} palette={{$:/palette}} element-tag="""$button""" element-attributes="""popup=<<qualify "$:/state/popup/tag">> dragFilter='[all[current]tagging[]]' tag='span'"""/>
|
||||
<$macrocall $name="tag-pill-body" tag=<<currentTiddler>> icon={{{ [<currentTiddler>] :cascade[all[shadows+tiddlers]tag[$:/tags/TiddlerIconFilter]!is[draft]get[text]] }}} colour={{{ [<currentTiddler>] :cascade[all[shadows+tiddlers]tag[$:/tags/TiddlerColourFilter]!is[draft]get[text]] }}} palette={{$:/palette}} element-tag="""$button""" element-attributes="""popup=<<qualify "$:/state/popup/tag">> dragFilter='[all[current]tagging[]]' tag='span'"""/>
|
||||
<$reveal state=<<qualify "$:/state/popup/tag">> type="popup" position="below" animate="yes" class="tc-drop-down">
|
||||
<$set name="tv-show-missing-links" value="yes">
|
||||
<$transclude tiddler="$:/core/ui/ListItemTemplate"/>
|
||||
|
||||
@@ -1,15 +1,8 @@
|
||||
title: $:/core/ui/TiddlerIcon
|
||||
|
||||
\whitespace trim
|
||||
\define title-styles()
|
||||
fill:$(foregroundColor)$;
|
||||
\end
|
||||
<$let tiddlerIcon={{{ [<currentTiddler>] :cascade[all[shadows+tiddlers]tag[$:/tags/TiddlerIconFilter]get[text]] }}}>
|
||||
<$let tiddlerIcon={{{ [<currentTiddler>] :cascade[all[shadows+tiddlers]tag[$:/tags/TiddlerIconFilter]!is[draft]get[text]] }}}>
|
||||
<$list filter="[<tiddlerIcon>!is[blank]]" variable="ignore">
|
||||
<$let foregroundColor={{!!color}}>
|
||||
<span class=<<iconSpanClass>> style=<<title-styles>>>
|
||||
<$transclude tiddler=<<tiddlerIcon>>/>
|
||||
</span>
|
||||
</$let>
|
||||
</$list>
|
||||
</$let>
|
||||
|
||||
@@ -3,6 +3,6 @@ tags: $:/tags/ViewTemplate
|
||||
|
||||
<$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]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]] }}} />
|
||||
|
||||
</$reveal>
|
||||
|
||||
@@ -2,6 +2,9 @@ title: $:/core/ui/ViewTemplate/title
|
||||
tags: $:/tags/ViewTemplate
|
||||
|
||||
\whitespace trim
|
||||
\define title-styles()
|
||||
fill:$(foregroundColor)$;
|
||||
\end
|
||||
<div class="tc-tiddler-title">
|
||||
<div class="tc-titlebar">
|
||||
<span class="tc-tiddler-controls">
|
||||
@@ -9,10 +12,12 @@ tags: $:/tags/ViewTemplate
|
||||
</span>
|
||||
<$set name="tv-wikilinks" value={{$:/config/Tiddlers/TitleLinks}}>
|
||||
<$link>
|
||||
<$let iconSpanClass="tc-tiddler-title-icon">
|
||||
<$let foregroundColor={{{ [<currentTiddler>] :cascade[all[shadows+tiddlers]tag[$:/tags/TiddlerColourFilter]!is[draft]get[text]] }}}>
|
||||
<span class="tc-tiddler-title-icon" style=<<title-styles>>>
|
||||
{{||$:/core/ui/TiddlerIcon}}
|
||||
</span>
|
||||
</$let>
|
||||
<$transclude tiddler={{{ [<currentTiddler>] :cascade[all[shadows+tiddlers]tag[$:/tags/ViewTemplateTitleFilter]get[text]] :and[!is[blank]else[$:/core/ui/ViewTemplate/title/default]] }}} />
|
||||
<$transclude tiddler={{{ [<currentTiddler>] :cascade[all[shadows+tiddlers]tag[$:/tags/ViewTemplateTitleFilter]!is[draft]get[text]] :and[!is[blank]else[$:/core/ui/ViewTemplate/title/default]] }}} />
|
||||
</$link>
|
||||
</$set>
|
||||
</div>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
title: $:/config/OfficialPluginLibrary
|
||||
tags: $:/tags/PluginLibrary
|
||||
url: https://tiddlywiki.com/library/v5.2.0/index.html
|
||||
url: https://tiddlywiki.com/library/v5.2.1/index.html
|
||||
caption: {{$:/language/OfficialPluginLibrary}}
|
||||
|
||||
{{$:/language/OfficialPluginLibrary/Hint}}
|
||||
|
||||
5
core/wiki/config/TiddlerColourFilters.multids
Normal file
5
core/wiki/config/TiddlerColourFilters.multids
Normal file
@@ -0,0 +1,5 @@
|
||||
title: $:/config/TiddlerColourFilters/
|
||||
tags: $:/tags/TiddlerColourFilter
|
||||
|
||||
color-field: [has[color]then{!!color}]
|
||||
default: [[$:/config/DefaultTiddlerColour]has[text]get[text]trim[]]
|
||||
9
core/wiki/debugstylesheets.tid
Normal file
9
core/wiki/debugstylesheets.tid
Normal file
@@ -0,0 +1,9 @@
|
||||
title: $:/snippets/DebugStylesheets
|
||||
|
||||
<style>[test]{list-style:'❌'}</style>
|
||||
<ul>
|
||||
<$list filter="[all[shadows+tiddlers]tag[$:/tags/Stylesheet]has[modified]]" counter="n">
|
||||
<style>{{!!text}}[test="<<n>>"]{list-style:disc;}</style>
|
||||
<li test=<<n>>><$link/></li>
|
||||
</$list>
|
||||
</ul>
|
||||
@@ -10,18 +10,20 @@ color:$(foregroundColor)$;
|
||||
\define tag-pill-inner(tag,icon,colour,fallbackTarget,colourA,colourB,element-tag,element-attributes,actions)
|
||||
<$vars foregroundColor=<<contrastcolour target:"""$colour$""" fallbackTarget:"""$fallbackTarget$""" colourA:"""$colourA$""" colourB:"""$colourB$""">> backgroundColor="""$colour$""">
|
||||
<$element-tag$ $element-attributes$ class="tc-tag-label tc-btn-invisible" style=<<tag-pill-styles>>>
|
||||
$actions${{||$:/core/ui/TiddlerIcon}}<$view tiddler=<<__tag__>> field="title" format="text" />
|
||||
$actions$<$transclude tiddler="""$icon$"""/><$view tiddler=<<__tag__>> field="title" format="text" />
|
||||
</$element-tag$>
|
||||
</$vars>
|
||||
\end
|
||||
|
||||
\define tag-pill-body(tag,icon,colour,palette,element-tag,element-attributes,actions)
|
||||
<$macrocall $name="tag-pill-inner" tag=<<__tag__>> colour="""$colour$""" fallbackTarget={{$palette$##tag-background}} colourA={{$palette$##foreground}} colourB={{$palette$##background}} element-tag="""$element-tag$""" element-attributes="""$element-attributes$""" actions="""$actions$"""/>
|
||||
<$macrocall $name="tag-pill-inner" tag=<<__tag__>> icon="""$icon$""" colour="""$colour$""" fallbackTarget={{$palette$##tag-background}} colourA={{$palette$##foreground}} colourB={{$palette$##background}} element-tag="""$element-tag$""" element-attributes="""$element-attributes$""" actions="""$actions$"""/>
|
||||
\end
|
||||
|
||||
\define tag-pill(tag,element-tag:"span",element-attributes:"",actions:"")
|
||||
<span class="tc-tag-list-item" data-tag-title=<<__tag__>>>
|
||||
<$macrocall $name="tag-pill-body" tag=<<__tag__>> colour={{{ [<__tag__>get[color]] }}} palette={{$:/palette}} element-tag="""$element-tag$""" element-attributes="""$element-attributes$""" actions="""$actions$"""/>
|
||||
<$let currentTiddler=<<__tag__>>>
|
||||
<$macrocall $name="tag-pill-body" tag=<<__tag__>> icon={{{ [<currentTiddler>] :cascade[all[shadows+tiddlers]tag[$:/tags/TiddlerIconFilter]!is[draft]get[text]] }}} colour={{{ [<currentTiddler>] :cascade[all[shadows+tiddlers]tag[$:/tags/TiddlerColourFilter]!is[draft]get[text]] }}} palette={{$:/palette}} element-tag="""$element-tag$""" element-attributes="""$element-attributes$""" actions="""$actions$"""/>
|
||||
</$let>
|
||||
</span>
|
||||
\end
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
title: $:/snippets/peek-stylesheets
|
||||
|
||||
\define expandable-stylesheets-list()
|
||||
\whitespace trim
|
||||
<ol>
|
||||
<$list filter="[all[shadows+tiddlers]tag[$:/tags/Stylesheet]!has[draft.of]]">
|
||||
<$vars state=<<qualify "$:/state/peek-stylesheets/open/">>>
|
||||
@@ -38,6 +39,7 @@ title: $:/snippets/peek-stylesheets
|
||||
\end
|
||||
|
||||
\define stylesheets-list()
|
||||
\whitespace trim
|
||||
<ol>
|
||||
<$list filter="[all[shadows+tiddlers]tag[$:/tags/Stylesheet]!has[draft.of]]">
|
||||
<li>
|
||||
@@ -57,6 +59,7 @@ title: $:/snippets/peek-stylesheets
|
||||
</$list>
|
||||
</ol>
|
||||
\end
|
||||
\whitespace trim
|
||||
|
||||
<$vars modeState=<<qualify "$:/state/peek-stylesheets/mode/">>>
|
||||
|
||||
|
||||
3
core/wiki/tags/TiddlerColourFilter.tid
Normal file
3
core/wiki/tags/TiddlerColourFilter.tid
Normal file
@@ -0,0 +1,3 @@
|
||||
title: $:/tags/TiddlerColourFilter
|
||||
list: $:/config/TiddlerColourFilters/color-field $:/config/TiddlerColourFilters/default
|
||||
|
||||
@@ -2,7 +2,7 @@ caption: Quoi de neuf dans <<version>>
|
||||
color: #fff
|
||||
created: 20160603124050989
|
||||
fr-title: BonjourLaVignette - Dernière Version
|
||||
image: New Release Banner.png
|
||||
image: New Release Banner
|
||||
link: Releases
|
||||
modified: 20160603124131122
|
||||
tags: HelloThumbnail
|
||||
|
||||
54
editions/prerelease/tiddlers/Release 5.2.2.tid
Normal file
54
editions/prerelease/tiddlers/Release 5.2.2.tid
Normal file
@@ -0,0 +1,54 @@
|
||||
caption: 5.2.2
|
||||
created: 20211208115905247
|
||||
modified: 20211208115905247
|
||||
tags: ReleaseNotes
|
||||
title: Release 5.2.2
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
\define contributor(username)
|
||||
<a href="https://github.com/$username$" style="text-decoration:none;font-size:24px;" class="tc-tiddlylink-external" target="_blank" rel="noopener noreferrer"><img src="https://github.com/$username$.png?size=32" width="32" height="32"/> @<$text text=<<__username__>>/></a>
|
||||
\end
|
||||
|
||||
//[[See GitHub for detailed change history of this release|https://github.com/Jermolene/TiddlyWiki5/compare/v5.2.1...master]]//
|
||||
|
||||
! Highlights
|
||||
|
||||
*
|
||||
|
||||
! Bug Fixes
|
||||
|
||||
*
|
||||
|
||||
! Usability Improvements
|
||||
|
||||
*
|
||||
|
||||
! Widget Improvements
|
||||
|
||||
*
|
||||
|
||||
! Filter improvements
|
||||
|
||||
*
|
||||
|
||||
! Hackability Improvements
|
||||
|
||||
*
|
||||
|
||||
! Developer Improvements
|
||||
|
||||
*
|
||||
|
||||
! Node.js Improvements
|
||||
|
||||
*
|
||||
|
||||
! Translation improvements
|
||||
|
||||
*
|
||||
|
||||
! Acknowledgements
|
||||
|
||||
[[@Jermolene|https://github.com/Jermolene]] would like to thank the contributors to this release who have generously given their time to help improve TiddlyWiki:
|
||||
|
||||
* <<contributor Jermolene>>
|
||||
@@ -419,6 +419,22 @@ describe("'reduce' and 'intersection' filter prefix tests", function() {
|
||||
// Prepend the position in the list using the index and length variables
|
||||
expect(wiki.filterTiddlers("[tag[shopping]] :map[get[title]addprefix[-]addprefix<length>addprefix[of]addprefix<index>]").join(",")).toBe("0of4-Brownies,1of4-Chick Peas,2of4-Milk,3of4-Rice Pudding");
|
||||
});
|
||||
|
||||
it("should handle macro parameters for filter run prefixes",function() {
|
||||
var widget = require("$:/core/modules/widgets/widget.js");
|
||||
var rootWidget = new widget.widget({ type:"widget", children:[ {type:"widget", children:[]} ] },
|
||||
{ wiki:wiki, document:$tw.document});
|
||||
rootWidget.makeChildWidgets();
|
||||
var anchorWidget = rootWidget.children[0];
|
||||
rootWidget.setVariable("greet","Hello $name$",[{name:"name"}],true);
|
||||
rootWidget.setVariable("echo","$text$",[{name:"text"}],true);
|
||||
// :map prefix
|
||||
expect(wiki.filterTiddlers("1 :map[subfilter<greet Tom>join[ ]]",anchorWidget).join(",")).toBe("Hello Tom");
|
||||
expect(wiki.filterTiddlers('[tag[shopping]] :map[<echo "$(index)$ $(currentTiddler)$">]',anchorWidget).join(",")).toBe("0 Brownies,1 Chick Peas,2 Milk,3 Rice Pudding");
|
||||
// :reduce prefix
|
||||
expect(wiki.filterTiddlers("1 :reduce[subfilter<greet Tom>join[ ]]",anchorWidget).join(",")).toBe("Hello Tom");
|
||||
expect(wiki.filterTiddlers('[tag[shopping]] :reduce[<echo "$(accumulator)$ $(index)$ $(currentTiddler)$,">]',anchorWidget).join(",")).toBe(" 0 Brownies, 1 Chick Peas, 2 Milk, 3 Rice Pudding,");
|
||||
});
|
||||
});
|
||||
|
||||
})();
|
||||
@@ -1,5 +1,5 @@
|
||||
created: 20210322152203906
|
||||
list: [[Documentation Macros]] HelloThere GettingStarted Community
|
||||
modified: 20210322152237613
|
||||
created: 20211126104006194
|
||||
list: [[Page and tiddler layout customisation]] [[Creating new buttons for the ViewToolbar and page controls]] [[Structuring TiddlyWiki]] Tagging [[Introduction to Lists]] [[Icon Gallery]] [[How to widen tiddlers (aka storyriver)]] [[How to turn off camel case linking]] [[How to put the last modification date in a banner]] [[How to hide the author's and other fields with CSS]] [[How to export tiddlers]] [[How to Customize TiddlyDesktop]] [[Editing Tiddlers with Vim]] [[Concatenating text and variables using macro substitution]] [[Demonstration: keyboard-driven-input Macro]] HelloThere GettingStarted Community
|
||||
modified: 20211126111221917
|
||||
title: $:/StoryList
|
||||
type: text/vnd.tiddlywiki
|
||||
@@ -1,6 +1,6 @@
|
||||
created: 20180626122427188
|
||||
modified: 20180626134639673
|
||||
tags: [[Using TiddlyWiki on Node.js]]
|
||||
modified: 20211117234223960
|
||||
tags: [[TiddlyWiki on Node.js]]
|
||||
title: NamedCommandParameters
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
created: 20131101111400000
|
||||
modified: 20210402095728684
|
||||
modified: 20211115092001000
|
||||
tags: Community
|
||||
title: Contributing
|
||||
type: text/vnd.tiddlywiki
|
||||
@@ -45,7 +45,7 @@ PR titles may also include a short prefix to indicate the subsystem to which the
|
||||
|
||||
! Commenting on Pull Requests
|
||||
|
||||
One of the principles of open source is that many pairs of eyes on the code can improve quality. So, we welcome comments and critiques of pending PRs. [[Conventional Comments|https://conventionalcomments.org]] has some techcniques to help make comments as constructive and actionable as possible. Notably, they recommend prefixing a comment with a label to clarify the intention:
|
||||
One of the principles of open source is that many pairs of eyes on the code can improve quality. So, we welcome comments and critiques of pending PRs. [[Conventional Comments|https://conventionalcomments.org]] has some techniques to help make comments as constructive and actionable as possible. Notably, they recommend prefixing a comment with a label to clarify the intention:
|
||||
|
||||
|praise |Praises highlight something positive. Try to leave at least one of these comments per review. Do not leave false praise (which can actually be damaging). Do look for something to sincerely praise |
|
||||
|nitpick |Nitpicks are small, trivial, but necessary changes. Distinguishing nitpick comments significantly helps direct the reader's attention to comments requiring more involvement |
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
created: 20210204010508263
|
||||
modified: 20210204010941713
|
||||
tags: Images SVG Icons
|
||||
modified: 20211113225941563
|
||||
tags: Images SVG Icons [[Other Resources]]
|
||||
title: "TW Icons" by morosanuae
|
||||
type: text/vnd.tiddlywiki
|
||||
url: https://morosanuae.github.io/tw-icons
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
created: 20130823091700000
|
||||
modified: 20140912150339263
|
||||
modified: 20211124214214045
|
||||
tags: Community Videos
|
||||
title: TiddlyWiki Hangouts
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
The TiddlyWiki community holds regular Google Hangouts, usually every Tuesday from 4pm to 6pm (UK time). They are announced in the [[TiddlyWiki Google group|https://groups.google.com/d/forum/tiddlywiki]] and on the [[TiddlyWiki Twitter account|https://twitter.com/TiddlyWiki]].
|
||||
The TiddlyWiki community has held many Google Hangouts over the years. They are announced in the [[TiddlyWiki Google group|https://groups.google.com/d/forum/tiddlywiki]] and on the [[TiddlyWiki Twitter account|https://twitter.com/TiddlyWiki]].
|
||||
|
||||
Past Hangouts are archived in this ~YouTube playlist:
|
||||
|
||||
|
||||
@@ -5,8 +5,8 @@ created: 20141122093837330
|
||||
delivery: Web Service
|
||||
description: Free online service that you can also host yourself
|
||||
method: sync
|
||||
modified: 20210106151027179
|
||||
tags: Android Chrome Firefox [[Internet Explorer]] Linux Mac Opera PHP [[Other resources]] Safari Saving Windows iOS Edge [[Community Editions]]
|
||||
modified: 20211113010826610
|
||||
tags: Android Chrome Firefox [[Internet Explorer]] Linux Mac Opera PHP Safari Saving Windows iOS Edge [[Community Editions]] [[Other Resources]]
|
||||
title: "Noteself" by Danielo Rodríguez
|
||||
type: text/vnd.tiddlywiki
|
||||
url: https://noteself.github.io/
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
created: 20200907161522189
|
||||
modified: 20200907162234327
|
||||
tags: Resources
|
||||
modified: 20211113230558637
|
||||
tags: Resources [[Other Resources]]
|
||||
title: "Reveal.js" by Devin Weaver
|
||||
type: text/vnd.tiddlywiki
|
||||
url: https://sukima.github.io/tiddlywiki-reveal-js/
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
created: 20150602084548184
|
||||
modified: 20210106151027028
|
||||
tags: [[Community Plugns]]
|
||||
modified: 20211113010652022
|
||||
tags: [[Community Plugins]]
|
||||
title: "Encrypt single tiddler plugin" by Danielo Rodriguez
|
||||
type: text/vnd.tiddlywiki
|
||||
url: http://danielorodriguez.com/TW5-EncryptTiddlerPlugin/
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
created: 20141122093837330
|
||||
modified: 20210106151027589
|
||||
tags: [[Community Resources]]
|
||||
modified: 20211114205057710
|
||||
tags: [[Community Plugins]] [[Other Resources]]
|
||||
title: TiddlyMap Plugin by Felix Küppers
|
||||
type: text/vnd.tiddlywiki
|
||||
url: http://tiddlymap.org
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
created: 20140315085406905
|
||||
modified: 20210106151027357
|
||||
tags: [[Other Resources]] Tutorials [[Community plugins]]
|
||||
modified: 20211114205310834
|
||||
tags: [[Other Resources]] Tutorials [[Community Plugins]]
|
||||
title: "TW5 Magick" by Stephan Hradek
|
||||
type: text/vnd.tiddlywiki
|
||||
url: http://tw5magick.tiddlyspot.com/
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
created: 20180309160958926
|
||||
modified: 20210106151027021
|
||||
tags: [[Other Resourches]]
|
||||
modified: 20211113010607278
|
||||
tags: [[Other Resources]]
|
||||
title: "Dynamic Tables" by Jed Carty
|
||||
type: text/vnd.tiddlywiki
|
||||
url: http://ooktech.com/jed/ExampleWikis/DynamicTables/
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
created: 20161226165024380
|
||||
creator: Matt Lauber
|
||||
modified: 20211008161027226
|
||||
tags: [[Other resources]]
|
||||
modified: 20211113230709926
|
||||
tags: [[Other Resources]]
|
||||
title: "TiddlyServer" by Matt Lauber
|
||||
type: text/vnd.tiddlywiki
|
||||
url: https://github.com/mklauber/TiddlyServer/releases/
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
created: 20171219165418434
|
||||
modified: 20210106151027169
|
||||
tags: [[Other resources]]
|
||||
modified: 20211113230637633
|
||||
tags: [[Other Resources]]
|
||||
title: "muritest" by Simon Huber
|
||||
type: text/vnd.tiddlywiki
|
||||
url: http://muritest.tiddlyspot.com
|
||||
|
||||
47
editions/tw5.com/tiddlers/concepts/Cascades.tid
Normal file
47
editions/tw5.com/tiddlers/concepts/Cascades.tid
Normal file
@@ -0,0 +1,47 @@
|
||||
created: 20211201100326006
|
||||
modified: 20211206164704335
|
||||
tags: Concepts
|
||||
title: Cascades
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
!! Introduction
|
||||
|
||||
Cascades are a key mechanism used to construct and customise TiddlyWiki's user interface.
|
||||
|
||||
<<.tip "See [[Customising TiddlyWiki's user interface]] for an overview of all the customisation mechanisms">>
|
||||
|
||||
!! How cascades work
|
||||
|
||||
Cascades provide a means to select one of multiple values based on flexible, extensible criteria. They can be thought of as a list of conditions that are evaluated in turn until one of them matches.
|
||||
|
||||
Each cascade is defined by a special tag which identifies the tiddlers containing the conditions to be matched. The [[Order of Tagged Tiddlers]] determines the order in which the conditions are processed, and provides the means for arranging new rules at specific points in the cascade.
|
||||
|
||||
The conditions are defined by a [[Filter Expression]] in the text field. The filters are evaluated with the list of input titles set to the title of the tiddler to be considered. The `currentTiddler` variable is also set to the title of the tiddler to be considered.
|
||||
|
||||
If the filter returns no result then that result will be ignored and the cascade proceeds to test the next condition. If the filter expression does return at least one result then it serves as the result of the entire cascade.
|
||||
|
||||
The [[Cascade Filter Run Prefix]] provides the implementation of the underlying logic.
|
||||
|
||||
!! Example
|
||||
|
||||
The [[Story Tiddler Template Cascade]] contains the logic for determining a tiddler should be displayed as an editable draft or in view mode. By default, it consists of two tiddlers containing the following list of rules:
|
||||
|
||||
# `[is[draft]then{$:/config/ui/EditTemplate}]` – if it is a draft tiddler, use the template title given in the tiddler $:/config/ui/EditTemplate
|
||||
# `[{$:/config/ui/ViewTemplate}] ` – otherwise, use the template title given in the tiddler $:/config/ui/ViewTemplate
|
||||
|
||||
!! Usage in the core
|
||||
|
||||
The TiddlyWiki core uses cascades to choose the following elements:
|
||||
|
||||
|[[Story Tiddler Template Cascade]] |The template used to display a particular tiddler in the story river. By default, the edit template is chosen for draft tiddlers, and the view template for others |
|
||||
|[[Tiddler Icon Cascade]] |The optional icon associated with a particular tiddler (displayed alongside the title) |
|
||||
|[[Tiddler Colour Cascade]] |The optional colour associated with a particular tiddler (used to colour the tiddler icon and if the tiddler is used as a tag also provides the colour for the tag pill) |
|
||||
|[[View Template Title Cascade]] |The template used to display the title of a particular tiddler (used by the default view template to display the tiddler title) |
|
||||
|[[View Template Body Cascade]] |The template used to display the view mode body of a particular tiddler (used by the default view template to display the tiddler body) |
|
||||
|[[Edit Template Body Cascade]] |The template used to display the edit mode body of a particular tiddler (used by the default edit template to display the tiddler body editor) |
|
||||
|
||||
You can see the current settings for each cascade in $:/ControlPanel under the ''Info'' -> ''Advanced'' -> ''Cascades'' tab.
|
||||
|
||||
!! See Also
|
||||
|
||||
<<list-links "[tag[Cascades]]">>
|
||||
@@ -1,8 +1,10 @@
|
||||
color: #FF8383
|
||||
created: 201308251447
|
||||
modified: 201308251447
|
||||
title: Concepts
|
||||
created: 20130825144700000
|
||||
list: Cascades ColourPalettes Commands [[Current Tiddler]] DataTiddlers [[Date Fields]] DefaultTiddlers DictionaryTiddlers ExternalImages Filters [[Hard and Soft Links]] JSONTiddlers [[Keyboard Shortcut Tiddler]] Macros Messages Modules PermaLinks Plugins Pragma [[Railroad Diagrams]] ShadowTiddlers [[Story River]] SystemTags SystemTiddlers Tagging TemplateTiddlers TextReference TiddlerFields TiddlerLinks Tiddlers TiddlyWiki TiddlyWiki5 [[Title List]] [[Title Selection]] Transclusion Variables Widgets Wiki WikiText
|
||||
modified: 20211201100624625
|
||||
tags: Reference
|
||||
title: Concepts
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
These are the concepts underlying TiddlyWiki. Understanding how these ideas fit together is the key to getting the most from TiddlyWiki.
|
||||
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
created: 20211206161652630
|
||||
modified: 20211206161959460
|
||||
tags: Cascades
|
||||
title: Edit Template Body Cascade
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
The edit template body cascade is a [[cascade|Cascades]] used by the default edit template to choose the template for displaying the tiddler body.
|
||||
|
||||
The default edit template body cascade consists of:
|
||||
|
||||
# If the tiddler has the field ''_canonical_uri'' then use the template $:/core/ui/EditTemplate/body/canonical-uri to display the remote URL
|
||||
# Otherwise, use the template $:/core/ui/EditTemplate/body/default which provides the default editing interface
|
||||
|
||||
You can see the current settings for the view template body cascade in $:/ControlPanel under the ''Info'' -> ''Advanced'' -> ''Cascades'' -> ''Edit Template Body'' tab.
|
||||
|
||||
<<list-links "[tag[Edit Template Body Cascade]]">>
|
||||
@@ -1,10 +1,10 @@
|
||||
created: 20140226083311937
|
||||
modified: 20140226090209479
|
||||
modified: 20211117042057208
|
||||
tags: Concepts Reference
|
||||
title: Messages
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
Widget messages are generated by widgets in response to user actions. They flow up the widget tree until they are handled by an ancestor widget.
|
||||
Widget ''messages'' are generated by [[Widgets]] in response to user actions. Messages have a <<.param name>>, an optional primary <<.param parameter>>, and one or more optional named parameters. These messages travel up the widget tree where they are handled by ancestor widgets or the core itself.
|
||||
|
||||
The following widget messages are implemented by the core:
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
created: 20131129162847412
|
||||
modified: 20150917193804197
|
||||
tags: Modules
|
||||
modified: 20211121031330912
|
||||
tags: Modules Definitions
|
||||
title: ModuleType
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
created: 20150124125646000
|
||||
modified: 20170328161702062
|
||||
modified: 20211127140005352
|
||||
tags: Tagging
|
||||
title: Order of Tagged Tiddlers
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
created: 20150105133800000
|
||||
modified: 20150124181306000
|
||||
modified: 20211117212441252
|
||||
tags: Concepts
|
||||
title: Railroad Diagrams
|
||||
|
||||
<<.def "Railroad diagrams">>, sometimes called <<.def "syntax diagrams">>, are a visual way of explaining the syntax rules of a computer language. Reading one is like reading a public transport map.
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
created: 20211206132047986
|
||||
modified: 20211206155818924
|
||||
tags: Cascades
|
||||
title: Story Tiddler Template Cascade
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
The story tiddler template cascade is a [[cascade|Cascades]] used to choose which [[Story Tiddler Template]] should be used for a particular tiddler.
|
||||
|
||||
The default story tiddler template cascade consists of:
|
||||
|
||||
# If the tiddler is a draft tiddler, use the template title given in the tiddler $:/config/ui/EditTemplate
|
||||
# Otherwise, use the template title given in the tiddler $:/config/ui/ViewTemplate
|
||||
|
||||
You can see the current settings for the story tiddler template cascade in $:/ControlPanel under the ''Info'' -> ''Advanced'' -> ''Cascades'' -> ''Story Tiddler'' tab.
|
||||
|
||||
<<list-links "[tag[Story Tiddler Template Cascade]]">>
|
||||
@@ -0,0 +1,13 @@
|
||||
created: 20211204122044198
|
||||
modified: 20211206133756716
|
||||
tags: Concepts
|
||||
title: Story Tiddler Template
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
"Story tiddler template" refers to the template used to display a tiddler within the story river.
|
||||
|
||||
The [[Story Tiddler Template Cascade]] is used to choose the template to be used for a particular tiddler. By default, the edit template is used for tiddlers in draft mode, and the view template used otherwise.
|
||||
|
||||
See also:
|
||||
|
||||
<<list-links "[tag[Story Tiddler Template]]">>
|
||||
@@ -1,5 +1,5 @@
|
||||
created: 20141228094500000
|
||||
modified: 20150917193731240
|
||||
modified: 20211127135914596
|
||||
tags: Tagging
|
||||
title: TagTiddlers
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
created: 20211206160300525
|
||||
modified: 20211206165301231
|
||||
tags: Cascades
|
||||
title: Tiddler Colour Cascade
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
The tiddler colour cascade is a [[cascade|Cascades]] used to choose which colour should be used for a particular tiddler.
|
||||
|
||||
The default tiddler colour cascade consists of:
|
||||
|
||||
# If the tiddler has a ''color'' field, use the value as the colour
|
||||
# If the tiddler $:/config/DefaultTiddlerColour exists, use the value as the colour
|
||||
|
||||
You can see the current settings for the tiddler colour cascade in $:/ControlPanel under the ''Info'' -> ''Advanced'' -> ''Cascades'' -> ''Tiddler Colour'' tab.
|
||||
|
||||
<<list-links "[tag[Tiddler Colour Cascade]]">>
|
||||
16
editions/tw5.com/tiddlers/concepts/Tiddler Icon Cascade.tid
Normal file
16
editions/tw5.com/tiddlers/concepts/Tiddler Icon Cascade.tid
Normal file
@@ -0,0 +1,16 @@
|
||||
created: 20211206154017669
|
||||
modified: 20211206160003647
|
||||
tags: Cascades
|
||||
title: Tiddler Icon Cascade
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
The tiddler icon cascade is a [[cascade|Cascades]] used to choose which icon should be used for a particular tiddler.
|
||||
|
||||
The default tiddler icon cascade consists of:
|
||||
|
||||
# If the tiddler has an ''icon'' field, use the value as the title of the icon tiddler
|
||||
# If the tiddler $:/config/DefaultTiddlerIcon exists, use the value as the title of the icon tiddler
|
||||
|
||||
You can see the current settings for the tiddler icon cascade in $:/ControlPanel under the ''Info'' -> ''Advanced'' -> ''Cascades'' -> ''Tiddler Icon'' tab.
|
||||
|
||||
<<list-links "[tag[Tiddler Icon Cascade]]">>
|
||||
@@ -0,0 +1,19 @@
|
||||
created: 20211206161124327
|
||||
modified: 20211206161613268
|
||||
tags: Cascades
|
||||
title: View Template Body Cascade
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
The view template body cascade is a [[cascade|Cascades]] used by the default view template to choose the template for displaying the tiddler body.
|
||||
|
||||
The default view template body cascade consists of:
|
||||
|
||||
# If the tiddler title starts with any of a list of known system tiddler prefixes, use the template $:/core/ui/ViewTemplate/body/code to display the body as preformatted code
|
||||
# If the tiddler has the field ''plugin-type'' set to ''import'' then use the template $:/core/ui/ViewTemplate/body/import which displays the custom import user interface
|
||||
# If the tiddler has the field ''plugin-type'' then use the template $:/core/ui/ViewTemplate/body/plugin to display the plugin information badge
|
||||
# If the tiddler has the field ''hide-body'' set to ''yes'' then use the template $:/core/ui/ViewTemplate/body/blank to hide the body
|
||||
# Otherwise, use the default template $:/core/ui/ViewTemplate/body/default
|
||||
|
||||
You can see the current settings for the view template body cascade in $:/ControlPanel under the ''Info'' -> ''Advanced'' -> ''Cascades'' -> ''View Template Body'' tab.
|
||||
|
||||
<<list-links "[tag[View Template Body Cascade]]">>
|
||||
@@ -0,0 +1,16 @@
|
||||
created: 20211206160703815
|
||||
modified: 20211206161115837
|
||||
tags: Cascades
|
||||
title: View Template Title Cascade
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
The view template title cascade is a [[cascade|Cascades]] used by the default view template to choose the template for displaying the tiddler title.
|
||||
|
||||
The default view template title cascade consists of:
|
||||
|
||||
# If the tiddler title starts with `$:/` then use the template $:/core/ui/ViewTemplate/title/system which causes the `$:/` prefix to be displayed in pale text
|
||||
# Otherwise, use the template $:/core/ui/ViewTemplate/title/default which displays the title in plain text
|
||||
|
||||
You can see the current settings for the view template title cascade in $:/ControlPanel under the ''Info'' -> ''Advanced'' -> ''Cascades'' -> ''View Template Title'' tab.
|
||||
|
||||
<<list-links "[tag[View Template Title Cascade]]">>
|
||||
@@ -1,5 +1,5 @@
|
||||
created: 20201123172925848
|
||||
modified: 20201123192845498
|
||||
modified: 20211126120310891
|
||||
tags: [[Customise TiddlyWiki]]
|
||||
title: Alternative page layouts
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
@@ -0,0 +1,35 @@
|
||||
created: 20211124205415217
|
||||
modified: 20211126162937536
|
||||
tags: [[Customise TiddlyWiki]]
|
||||
title: Creating new toolbar buttons
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
Let's say you have a skeleton tiddler called 'Recipe template', and you want to have a button available in the tiddler ViewToolbar to create new recipe tiddlers on demand. This will require the following steps:
|
||||
|
||||
# You will want an image for your button. If none of the core images (shadow tiddlers with the prefix $:/core/images/) work for you, then you will need to create or acquire an SVG image (for example, one of the images at http://flaticon.com), drag it into your file so that it becomes a tiddler, edit the tiddler and adjust the height and width to 22px
|
||||
# You will want to create the tiddler that contains your tiddler. Create it, title it, and add the button code (see the code at the bottom of this tiddler for an example, with hints where you will need to adapt it). Tag it [[$:/tags/ViewToolbar]]
|
||||
# You will need to create a tiddler that tells TiddlyWiki whether your button should be visible in the toolbar or hidden. Let's title it [[$:/config/ViewToolbarButtons/Visibility/Recipe]]. Type `show` into the text area, and save. If you want to hide it, type `hide` into the text area and save. The button will also be accessable from the ''ControlPanel : Appearance : Toolbars : ViewToolbar'' tab
|
||||
# You will want to position the button properly. Open the tiddler $:/tags/ViewToolbar and insert your button tiddler's title in the appropriate place in the list field.
|
||||
|
||||
```
|
||||
\define newHereButtonTags()
|
||||
[[$(currentTiddler)$]]
|
||||
\end
|
||||
\define newHereButton()
|
||||
<$button class=<<tv-config-toolbar-class>>>
|
||||
<$action-sendmessage
|
||||
$message="tm-new-tiddler"
|
||||
$param="TITLE OF YOUR SKELETON BUTTON"
|
||||
title="New tiddler"
|
||||
tags=<<newHereButtonTags>> />
|
||||
<$list filter="[<tv-config-toolbar-icons>match[yes]]">
|
||||
{{TITLE OF YOUR SVG IMAGE TIDDLER}}
|
||||
</$list>
|
||||
<$list filter="[<tv-config-toolbar-text>match[yes]]">
|
||||
<span class="tc-btn-text"><$text text="CAPTION FOR YOUR BUTTON"/></span>
|
||||
</$list>
|
||||
</$button>
|
||||
\end
|
||||
|
||||
<<newHereButton>>
|
||||
```
|
||||
@@ -1,10 +1,10 @@
|
||||
created: 20140904101600000
|
||||
list: [[Adding a table of contents to the sidebar]] [[Configuring startup tiddlers]] [[Configuring the default TiddlerInfo tab]] [[Creating a custom export format]] [[Creating a splash screen]] [[Customising search results]] [[Hidden Settings]] [[How to add a new tab to the sidebar]] [[How to apply custom styles]] [[How to create keyboard shortcuts]] [[How to turn off camel case linking]] [[How to widen tiddlers (aka storyriver)]] [[Making a custom journal button]] [[Page and tiddler layout customisation]] [[Alternative page layouts]] [[Preserving open tiddlers at startup]] [[Setting a favicon]] [[Setting a page background image]] [[Using Stylesheets]]
|
||||
modified: 20201123173044437
|
||||
list: [[Adding a table of contents to the sidebar]] [[Alternative page layouts]] [[Configuring startup tiddlers]] [[Configuring the default TiddlerInfo tab]] [[Creating a custom export format]] [[Creating a splash screen]] [[Creating new toolbar buttons]] [[Customising search results]] [[Customising TiddlyWiki's user interface]] [[Hidden Settings]] [[How to add a new tab to the sidebar]] [[How to apply custom styles]] [[How to create a custom story tiddler template]] [[How to create a custom tiddler icon rule]] [[How to create a custom tiddler colour rule]] [[How to create keyboard shortcuts]] [[How to turn off camel case linking]] [[How to widen tiddlers (aka storyriver)]] [[Making a custom journal button]] [[Preserving open tiddlers at startup]] [[Setting a favicon]] [[Setting a page background image]] [[Using Stylesheets]]
|
||||
modified: 20211206162235300
|
||||
tags: TableOfContents
|
||||
title: Customise TiddlyWiki
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
Information about customising TiddlyWiki
|
||||
Information about customising TiddlyWiki. See [[Customising TiddlyWiki's user interface]] for an overview of the mechanisms employed.
|
||||
|
||||
<<list-links "[tag[Customise TiddlyWiki]]">>
|
||||
|
||||
@@ -0,0 +1,75 @@
|
||||
created: 20211127084727217
|
||||
modified: 20211204120054422
|
||||
tags: [[Customise TiddlyWiki]]
|
||||
title: Customising TiddlyWiki's user interface
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
TiddlyWiki’s user interface is designed to be highly extensible. Every element can be augmented, removed, or rearranged.
|
||||
|
||||
Several different mechanisms are used to achieve this:
|
||||
|
||||
* special fields
|
||||
* special titles
|
||||
* special tags
|
||||
* cascades
|
||||
|
||||
Here we provide an overview of those mechanisms and how they relate together.
|
||||
|
||||
!! Special Fields
|
||||
|
||||
Special fields are used to assign an appearance or behaviour to individual tiddlers. They can be thought of as flags or values that directly control the tiddler to which they are applied.
|
||||
|
||||
For example:
|
||||
|
||||
* Set the `icon` field to the title of an image tiddler to be used as the icon for this tiddler
|
||||
* Set the `color` field to a CSS colour that is then used for icons and tag pills associated with this tiddler
|
||||
* Set the `hide-body` field to `yes` to hide the view template body for this tiddler
|
||||
|
||||
See TiddlerFields for details of all the special fields.
|
||||
|
||||
!! Special Titles
|
||||
|
||||
Certain special titles identify configuration tiddlers that customise TiddlyWiki's appearance or behaviour. They can be thought of as global settings that affect an entire wiki.
|
||||
|
||||
For example:
|
||||
|
||||
* $:/DefaultTiddlers is a filter yielding the titles of the tiddlers that should be displayed at startup
|
||||
* $:/SiteTitle specifies the text of the wiki title
|
||||
* $:/config/Tags/MinLength controls the minimum number of characters to trigger tag autocompletion
|
||||
|
||||
Many of TiddlyWiki's configuration tiddlers are presented as options in [[$:/ControlPanel]]. Less commonly used configuration tiddlers do not have a user interface, but are documented in [[Hidden Settings]].
|
||||
|
||||
!! Special Tags
|
||||
|
||||
Special tags assign special behaviour or appearance to all of the tiddlers to which they are applied. They can be thought of as establishing ordered lists of tiddlers that are processed or displayed in a particular way.
|
||||
|
||||
For example:
|
||||
|
||||
* $:/tags/Macro causes the macros defined in a tiddler to be available globally
|
||||
* $:/tags/Stylesheet causes the tiddler to be interpreted as a CSS stylesheet
|
||||
* $:/tags/SideBar causes the tiddler to be displayed as a sidebar tab
|
||||
|
||||
See SystemTags for details of all the special tags.
|
||||
|
||||
The entire TiddlyWiki user interface is constructed from lists formed from special system tags.
|
||||
|
||||
The ordering of these lists is determined by the [[order of tagged tiddlers|Order of Tagged Tiddlers]] rules. Users can re-order tags using drag and drop within a tag dropdown.
|
||||
|
||||
!! Cascades
|
||||
|
||||
Cascades provide a means to select one of multiple values based on flexible, extensible criteria. They can be thought of as a list of conditions that are evaluated in turn until one of them matches.
|
||||
|
||||
For example, the core uses the template $:/core/ui/ViewTemplate to display tiddlers in view mode, and $:/core/ui/EditTemplate to display tiddlers in edit mode. A cascade is used to choose which template to use for a particular tiddler:
|
||||
|
||||
# If the tiddler is a draft, then use $:/core/ui/EditTemplate
|
||||
# Otherwise, use $:/core/ui/EditTemplate
|
||||
|
||||
The list of conditions is defined via a special tag, making it possible to insert additional conditions anywhere in the list.
|
||||
|
||||
For example, a plugin might add a special template $:/plugins/example/map-template for tiddlers that have the tag [[$:/tags/Map]] by inserting an additional rule:
|
||||
|
||||
# If the tiddler is a draft, then use $:/core/ui/EditTemplate
|
||||
# @@background: yellow; If the tiddler is tagged $:/tags/Map, then use $:/plugins/example/map-template@@
|
||||
# Otherwise, use $:/core/ui/EditTemplate
|
||||
|
||||
See [[Cascades]] for more details.
|
||||
@@ -1,63 +0,0 @@
|
||||
created: 20141120125300000
|
||||
modified: 20201123173002935
|
||||
tags: [[Customise TiddlyWiki]]
|
||||
title: Page and tiddler layout customisation
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
One major feature of TiddlyWiki that many new users are unaware of is the degree to which TiddlyWiki can be customised, just by adding or removing SystemTags in key shadow tiddlers or in your own custom tiddlers.
|
||||
|
||||
* You can add and remove default features in tiddlers in either viewing or editing mode (let's say you find the tiddler subtitle distracting, or you want to add yourself a reminder that you will see when you edit tiddlers)
|
||||
* You can also add and remove default features from the general page layout (maybe you want to add a clock to the sidebar, or replace one of the page control buttons with your own)
|
||||
* You can also rearrange the order in which these features are displayed (perhaps you would like tags above tiddler titles, or the subtitle of your TiddlyWiki below the page control buttons)
|
||||
|
||||
Once you know what you are doing, all of these things are actually pretty easy to do.
|
||||
|
||||
<<.from-version "5.1.23">> You can also create [[alternative page layouts|Alternative page layouts]] and switch between them.
|
||||
|
||||
! Adding custom-made tiddlers to the user interface
|
||||
|
||||
You can also create any tiddler you want and tag it with the appropriate SystemTag, and it will appear in that place. For example, if you create a tiddler 'Reminder to self', add the text 'This is a reminder' and tag it `$:/tags/EditTemplate`, the words 'This is a reminder' will appear inside every tiddler when you edit it.
|
||||
|
||||
When you add new tiddlers to be displayed within tiddlers or within the page layout, you will also probably need to reposition it so that it appears precisely where you want it to appear. To do this, edit the appropriate shadow tiddler with the prefix `$:/tags/`, and insert the title of your tiddler in the proper place in the list field. For example, if you want the words 'This is a reminder' from the example above to appear above the tags editor in editing mode, edit the tiddler $:/tags/EditTemplate, go to the 'list' field, and insert `[[Reminder to self]]` right before `$:/core/ui/EditTemplate/tags`.
|
||||
|
||||
! Creating new buttons for the ViewToolbar and page controls
|
||||
|
||||
Let's say you have a skeleton tiddler called 'Recipe template', and you want to have a button available in the tiddler ViewToolbar to create new recipe tiddlers on demand. This will require the following steps:
|
||||
|
||||
# You will want an image for your button. If none of the core images (shadow tiddlers with the prefix $:/core/images/) work for you, then you will need to create or acquire an SVG image (for example, one of the images at http://flaticon.com), drag it into your file so that it becomes a tiddler, edit the tiddler and adjust the height and width to 22px
|
||||
# You will want to create the tiddler that contains your tiddler. Create it, title it, and add the button code (see the code at the bottom of this tiddler for an example, with hints where you will need to adapt it). Tag it [[$:/tags/ViewToolbar]]
|
||||
# You will need to create a tiddler that tells TiddlyWiki whether your button should be visible in the toolbar or hidden. Let's title it [[$:/config/ViewToolbarButtons/Visibility/Recipe]]. Type `show` into the text area, and save. If you want to hide it, type `hide` into the text area and save. The button will also be accessable from the ''ControlPanel : Appearance : Toolbars : ViewToolbar'' tab
|
||||
# You will want to position the button properly. Open the tiddler $:/tags/ViewToolbar and insert your button tiddler's title in the appropriate place in the list field.
|
||||
|
||||
```
|
||||
\define newHereButtonTags()
|
||||
[[$(currentTiddler)$]]
|
||||
\end
|
||||
\define newHereButton()
|
||||
<$button class=<<tv-config-toolbar-class>>>
|
||||
<$action-sendmessage
|
||||
$message="tm-new-tiddler"
|
||||
$param="TITLE OF YOUR SKELETON BUTTON"
|
||||
title="New tiddler"
|
||||
tags=<<newHereButtonTags>> />
|
||||
<$list filter="[<tv-config-toolbar-icons>match[yes]]">
|
||||
{{TITLE OF YOUR SVG IMAGE TIDDLER}}
|
||||
</$list>
|
||||
<$list filter="[<tv-config-toolbar-text>match[yes]]">
|
||||
<span class="tc-btn-text"><$text text="CAPTION FOR YOUR BUTTON"/></span>
|
||||
</$list>
|
||||
</$button>
|
||||
\end
|
||||
|
||||
<<newHereButton>>
|
||||
```
|
||||
|
||||
! Removing shadow tiddlers from the user interface
|
||||
|
||||
In the More > Shadows tab you will find a list of all the shadow tiddlers. In this list you will find many tiddlers with the prefix `$:/core/ui/`. These are the core tiddlers that define the user interface. These tiddlers are tagged with SystemTags, and removing or adding these tags will adjust the tiddler and page layouts.
|
||||
|
||||
For example, $:/core/ui/SideBar/More is the tiddler for the More tab in the Sidebar, and it is tagged with the SystemTag `$:/tags/SideBar` so that it appears in the Sidebar. Removing the tag from that tiddler will remove the More tab from the Sidebar, and reinserting the Sidebar tag to that tiddler will make it reappear in the Sidebar.
|
||||
|
||||
You can use the same process for any of the core user interface tiddlers with the $:/core/ui/ prefix. For example, removing the SystemTag `$:/tags/ViewTemplate` from the tiddler `$:/core/ui/ViewTemplate/subtitle` will remove the subtitles from all tiddlers.
|
||||
|
||||
If you modify a shadow tiddler in this way you will overwrite the pre-installed value. If you want to revert, just delete the modified tiddler to restore the underlying shadow tiddler.
|
||||
@@ -1,5 +1,6 @@
|
||||
created: 201311010911
|
||||
modified: 201311010911
|
||||
created: 20131101091100000
|
||||
modified: 20211117195517318
|
||||
tags: Definitions
|
||||
title: BT
|
||||
|
||||
BT (née British Telecom) is the UK's largest telecommunications company. In 2007, [[Osmosoft]] was acquired by BT. JeremyRuston subsequently left BT in 2011.
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
created: 20130901213100000
|
||||
modified: 20140919161635814
|
||||
tags: Definitions Features
|
||||
modified: 20211124215351987
|
||||
tags: Definitions
|
||||
title: MathML
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
created: 201311010913
|
||||
modified: 201311010924
|
||||
created: 20131101091300000
|
||||
modified: 20211119004632506
|
||||
tags: Definitions
|
||||
title: Osmosoft
|
||||
|
||||
Founded in 2004 by JeremyRuston, Osmosoft was originally a consultancy for software services around TiddlyWiki. Notable engagements included working with Socialtext on [[Socialtext Unplugged|https://www.socialtext.net/open/socialtext_unplugged]].
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
created: 20140101164042231
|
||||
modified: 20150310165059118
|
||||
modified: 20211120221754270
|
||||
tags: Definitions
|
||||
title: node-webkit
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,6 +1,6 @@
|
||||
created: 20180222072026299
|
||||
list: [[Apple 6]] [[Apple 7]] [[Apple 8]] [[Apple 9]] [[Apple 10]] [[Apple 20]] [[Apple 30]] [[Apple 100]]
|
||||
modified: 20180222072215582
|
||||
tags:
|
||||
modified: 20211115005421558
|
||||
tags: Demonstrations
|
||||
title: Apple
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
title: Caruso - Ave Maria
|
||||
type: audio/mp3
|
||||
_canonical_uri: https://archive.org/download/Caruso_part1/Caruso-AveMaria.mp3
|
||||
tags: Demonstrations
|
||||
@@ -1,9 +1,10 @@
|
||||
title: Demo Tiddler List with Custom Story Tiddler Template
|
||||
tags: $:/tags/TiddlerList
|
||||
created: 20211204122107920
|
||||
filter: HelloThere Community GettingStarted Features Reference Plugins Learning
|
||||
modified: 20211204131610322
|
||||
tags: $:/tags/TiddlerList
|
||||
title: Demo Tiddler List with Custom Story Tiddler Template
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
This is a demo tiddler with a custom story tiddler template. See [[Story Tiddler Templates]] for details.
|
||||
This is a demo tiddler with a custom story tiddler template that displays the tiddlers named in the list field as a fan.
|
||||
|
||||
Click to close this tiddler: {{||$:/core/ui/Buttons/close}}
|
||||
|
||||
Click to edit this tiddler: {{||$:/core/ui/Buttons/edit}}
|
||||
See [[How to create a custom story tiddler template]] for details.
|
||||
|
||||
@@ -6,6 +6,9 @@ transform: translate($(left)$%,$(top)$%) scale(0.3) rotate($(angle)$deg);
|
||||
|
||||
<div class="tc-custom-tiddler-template">
|
||||
<div class="tc-custom-tiddler-template-inner">
|
||||
<div style="text-align: right;">
|
||||
{{||$:/core/ui/Buttons/more-tiddler-actions}} {{||$:/core/ui/Buttons/edit}} {{||$:/core/ui/Buttons/close}}
|
||||
</div>
|
||||
<$transclude mode="block"/>
|
||||
</div>
|
||||
<div class="tc-custom-tiddler-template-list">
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
created: 20211206114433294
|
||||
list-before: $:/config/TiddlerColourFilters/default
|
||||
modified: 20211206114433294
|
||||
tags: $:/tags/TiddlerColourFilter
|
||||
title: $:/_tw5.com/CustomTiddlerColourCascadeDemo
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
[tag[TableOfContents]then[#1e90ff]]
|
||||
[tag[Working with TiddlyWiki]then[darkorchid]]
|
||||
@@ -1,5 +1,9 @@
|
||||
title: $:/_tw5.com/CustomTiddlerIconCascadeDemo
|
||||
created: 20211205195110592
|
||||
list-before: $:/config/TiddlerIconFilters/default
|
||||
modified: 20211205195217941
|
||||
tags: $:/tags/TiddlerIconFilter
|
||||
title: $:/_tw5.com/CustomTiddlerIconCascadeDemo
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
[tag[TableOfContents]then[$:/core/images/globe]]
|
||||
[tag[Working with TiddlyWiki]then[$:/core/images/help]]
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
created: 20210222140234737
|
||||
modified: 20210520174049056
|
||||
tags: Learning
|
||||
modified: 20211123034501278
|
||||
tags: Learning KeyboardDrivenInput
|
||||
title: Demonstration: keyboard-driven-input Macro
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
created: 20210131043724146
|
||||
first-search-filter: [!is[system]search:title<userInput>sort[]]
|
||||
modified: 20210204012422020
|
||||
tags:
|
||||
modified: 20211123034440629
|
||||
tags: KeyboardDrivenInput
|
||||
title: kdi-demo-configtid
|
||||
type: text/vnd.tiddlywiki
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
component: demo
|
||||
created: 20160107230134172
|
||||
modified: 20160107230134172
|
||||
title: SampleAlert
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
This is a demonstration alert.
|
||||
|
||||
Note that the trashcan icon deletes the tiddler containing this alert. You can also remove it by opening the tiddler SampleAlert and editing it to remove the tag [[$:/tags/Alert]].
|
||||
@@ -1,5 +1,6 @@
|
||||
created: 20140912145543340
|
||||
modified: 20140912145610020
|
||||
modified: 20211119192337845
|
||||
tags: Demonstrations
|
||||
title: SampleNotification
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
created: 20211117003509226
|
||||
modified: 20211117003657902
|
||||
tags: sampletag1 sampletag2 [[Widget Examples]]
|
||||
title: SampleTiddlerFirst
|
||||
tags: sampletag1 sampletag2
|
||||
|
||||
This is a test tiddler called SampleTiddlerFirst.
|
||||
@@ -1,4 +1,6 @@
|
||||
created: 20211117003511221
|
||||
modified: 20211117003724108
|
||||
tags: sampletag1 sampletag2 [[Widget Examples]]
|
||||
title: SampleTiddlerSecond
|
||||
tags: sampletag1 sampletag2
|
||||
|
||||
This test tiddler is called SampleTiddlerSecond.
|
||||
@@ -1,4 +1,6 @@
|
||||
created: 20211117003513463
|
||||
modified: 20211117003749750
|
||||
tags: sampletag1 sampletag2 [[Widget Examples]]
|
||||
title: SampleTiddlerThird
|
||||
tags: sampletag1 sampletag2
|
||||
|
||||
This tiddler SampleTiddlerThird is the third test tiddler.
|
||||
@@ -1,7 +1,8 @@
|
||||
created: 20140912145537860
|
||||
footer: <$button message="tm-close-tiddler">Close</$button>
|
||||
modified: 20210627054504823
|
||||
modified: 20211119205125230
|
||||
subtitle: I'm a modal wizard
|
||||
tags: Demonstrations
|
||||
title: SampleWizard
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
created: 20140912145532856
|
||||
footer: <$button message="tm-close-tiddler">Close</$button>
|
||||
modified: 20140912145532856
|
||||
modified: 20211119205144340
|
||||
subtitle: I'm another modal wizard
|
||||
tags: Demonstrations
|
||||
title: SampleWizard2
|
||||
type: text/vnd.tiddlywiki
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
created: 20150221194324000
|
||||
modified: 20150221194606000
|
||||
title: Contents
|
||||
list: First Second Third Fourth
|
||||
modified: 20211114013601186
|
||||
tags: [[Table-of-Contents Demonstrations]]
|
||||
title: Contents
|
||||
|
||||
<<.toc-lorem>>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
created: 20150221194349000
|
||||
modified: 20150221194610000
|
||||
title: First
|
||||
tags: Contents
|
||||
list: FirstOne FirstTwo FirstThree
|
||||
modified: 20211114013601187
|
||||
tags: Contents [[Table-of-Contents Demonstrations]]
|
||||
title: First
|
||||
|
||||
<<.toc-lorem>>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
created: 20150221194354000
|
||||
modified: 20150221194613000
|
||||
modified: 20211114013601187
|
||||
tags: First [[Table-of-Contents Demonstrations]]
|
||||
title: FirstOne
|
||||
tags: First
|
||||
|
||||
<<.toc-lorem>>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
created: 20150221194357000
|
||||
modified: 20150221194616000
|
||||
modified: 20211114013601187
|
||||
tags: First [[Table-of-Contents Demonstrations]]
|
||||
title: FirstThree
|
||||
tags: First
|
||||
|
||||
<<.toc-lorem>>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
created: 20150221194401000
|
||||
modified: 20150221194619000
|
||||
modified: 20211114013601187
|
||||
tags: First [[Table-of-Contents Demonstrations]]
|
||||
title: FirstTwo
|
||||
tags: First
|
||||
|
||||
<<.toc-lorem>>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
created: 20150221194405000
|
||||
modified: 20150221194622000
|
||||
modified: 20211114013601188
|
||||
tags: Contents [[Table-of-Contents Demonstrations]]
|
||||
title: Fourth
|
||||
tags: Contents
|
||||
|
||||
<<.toc-lorem>>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
created: 20150221194408000
|
||||
modified: 20150221194624000
|
||||
modified: 20211114013601190
|
||||
tags: Contents [[Table-of-Contents Demonstrations]]
|
||||
title: Second
|
||||
tags: Contents
|
||||
|
||||
<<.toc-lorem>>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
created: 20150221194412000
|
||||
modified: 20150221194627000
|
||||
modified: 20211114013601188
|
||||
tags: Second [[Table-of-Contents Demonstrations]]
|
||||
title: SecondOne
|
||||
tags: Second
|
||||
|
||||
<<.toc-lorem>>
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
created: 20150221194416000
|
||||
modified: 20150221194630000
|
||||
title: SecondThree
|
||||
tags: Second
|
||||
list: SecondThreeOne SecondThreeTwo SecondThreeThree
|
||||
modified: 20211114013601189
|
||||
tags: Second [[Table-of-Contents Demonstrations]]
|
||||
title: SecondThree
|
||||
toc-link: no
|
||||
|
||||
<<.toc-lorem>>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
created: 20150221194420000
|
||||
modified: 20150221194633000
|
||||
modified: 20211114013601188
|
||||
tags: SecondThree [[Table-of-Contents Demonstrations]]
|
||||
title: SecondThreeOne
|
||||
tags: SecondThree
|
||||
|
||||
<<.toc-lorem>>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
created: 20150221194423000
|
||||
modified: 20150221194635000
|
||||
modified: 20211114013601189
|
||||
tags: SecondThree [[Table-of-Contents Demonstrations]]
|
||||
title: SecondThreeThree
|
||||
tags: SecondThree
|
||||
|
||||
<<.toc-lorem>>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
created: 20150221194429000
|
||||
modified: 20150221194638000
|
||||
modified: 20211114013601189
|
||||
tags: SecondThree [[Table-of-Contents Demonstrations]]
|
||||
title: SecondThreeTwo
|
||||
tags: SecondThree
|
||||
|
||||
<<.toc-lorem>>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
created: 20150221194433000
|
||||
modified: 20150221194643000
|
||||
modified: 20211114013601190
|
||||
tags: Second [[Table-of-Contents Demonstrations]]
|
||||
title: SecondTwo
|
||||
tags: Second
|
||||
|
||||
<<.toc-lorem>>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
created: 20150221194436000
|
||||
modified: 20150221194646000
|
||||
title: Third
|
||||
tags: Contents
|
||||
list: ThirdOne ThirdTwo ThirdThree
|
||||
modified: 20211114013601191
|
||||
tags: Contents [[Table-of-Contents Demonstrations]]
|
||||
title: Third
|
||||
|
||||
<<.toc-lorem>>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
created: 20150221194440000
|
||||
modified: 20150221194649000
|
||||
modified: 20211114013601190
|
||||
tags: Third [[Table-of-Contents Demonstrations]]
|
||||
title: ThirdOne
|
||||
tags: Third
|
||||
|
||||
<<.toc-lorem>>
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user