tiddlywiki 5.3.0 → 5.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/build-site.sh +1 -1
- package/boot/boot.js +6 -7
- package/core/images/new-journal-button.tid +1 -3
- package/core/modules/parsers/wikiparser/rules/fnprocdef.js +2 -2
- package/core/modules/parsers/wikiparser/rules/parameters.js +1 -1
- package/core/modules/startup/rootwidget.js +1 -0
- package/core/modules/startup/startup.js +5 -0
- package/core/modules/utils/dom/dragndrop.js +4 -2
- package/core/modules/utils/dom/http.js +19 -3
- package/core/modules/widgets/checkbox.js +3 -1
- package/core/modules/widgets/importvariables.js +1 -1
- package/core/modules/widgets/select.js +4 -0
- package/core/modules/widgets/transclude.js +69 -39
- package/core/modules/widgets/widget.js +7 -28
- package/core/modules/wiki.js +1 -1
- package/core/ui/AlertTemplate.tid +1 -0
- package/core/ui/EditTemplate.tid +1 -0
- package/core/ui/ImportPreviews/Text.tid +1 -0
- package/core/ui/PageStylesheet.tid +1 -0
- package/core/ui/PageTemplate.tid +1 -0
- package/core/ui/RootTemplate.tid +1 -0
- package/core/ui/StoryTiddlerTemplate.tid +1 -0
- package/core/ui/ViewTemplate/body/default.tid +1 -0
- package/core/ui/ViewTemplate.tid +1 -0
- package/core/wiki/config/OfficialPluginLibrary.tid +1 -1
- package/core/wiki/config/ViewTemplateBodyFilters.multids +2 -1
- package/core/wiki/macros/toc.tid +2 -2
- package/core/wiki/tags/ViewTemplateBodyFilter.tid +1 -2
- package/editions/de-AT/tiddlers/external/tiddlywiki.files +1 -1
- package/editions/prerelease/tiddlers/{Release 5.3.1.tid → Release 5.3.2.tid } +30 -26
- package/editions/prerelease/tiddlers/system/PrereleaseLocalPluginLibrary.tid +1 -1
- package/editions/prerelease/tiddlers/system/PrereleaseOfficialPluginLibrary.tid +1 -1
- package/editions/prerelease/tiddlers/system/TiddlyWiki Pre-release.tid +1 -1
- package/editions/test/tiddlers/tests/data/functions/IndentedFunctions.tid +24 -0
- package/editions/test/tiddlers/tests/data/functions/WikifiedFunctions.tid +1 -1
- package/editions/test/tiddlers/tests/data/importvariables/WithSetWidgets.tid +23 -0
- package/editions/test/tiddlers/tests/data/importvariables/WithSetWidgets2.tid +22 -0
- package/editions/test/tiddlers/tests/data/importvariables/WithSetWidgetsAndMacros.tid +29 -0
- package/editions/test/tiddlers/tests/data/procedures/Nested-indented.tid +20 -0
- package/editions/test/tiddlers/tests/data/procedures/TrailingNewlines.tid +22 -0
- package/editions/test/tiddlers/tests/data/transclude/CustomWidget-Simple-Indented.tid +33 -0
- package/editions/test/tiddlers/tests/data/transclude/Parameterised-Shortcut-ParametersIndented.tid +20 -0
- package/editions/test/tiddlers/tests/data/transclude/Procedures-Double-Underscore.tid +26 -0
- package/editions/test/tiddlers/tests/data/widgets/SubstitutedAttributes.tid +5 -3
- package/editions/test/tiddlers/tests/test-filters.js +4 -4
- package/editions/tw5.com/tiddlers/community/resources/TiddlyWiki Posts.tid +3 -3
- package/editions/tw5.com/tiddlers/community/tutorials/GitHub Saver Tutorial by Mohammad.tid +5 -5
- package/editions/tw5.com/tiddlers/definitions/Git.tid +9 -0
- package/editions/tw5.com/tiddlers/definitions/GitHub.tid +6 -4
- package/editions/tw5.com/tiddlers/definitions/GitLab.tid +13 -0
- package/editions/tw5.com/tiddlers/demonstrations/TableOfContents/Fourth.tid +2 -0
- package/editions/tw5.com/tiddlers/demonstrations/TableOfContents/SecondThreeThree.tid +11 -1
- package/editions/tw5.com/tiddlers/demonstrations/TableOfContents/Third.tid +2 -0
- package/editions/tw5.com/tiddlers/filters/substitute Operator.tid +3 -3
- package/editions/tw5.com/tiddlers/hellothere/HelloThere.tid +1 -1
- package/editions/tw5.com/tiddlers/images/New Release Banner.png +0 -0
- package/editions/tw5.com/tiddlers/images/{New Release Banner.jpg.meta → New Release Banner.png.meta } +1 -1
- package/editions/tw5.com/tiddlers/macros/TagMacro.tid +3 -1
- package/editions/tw5.com/tiddlers/macros/examples/tag.tid +22 -1
- package/editions/tw5.com/tiddlers/messages/WidgetMessage_ tm-close-window.tid +2 -2
- package/editions/tw5.com/tiddlers/messages/WidgetMessage_ tm-download-file.tid +3 -3
- package/editions/tw5.com/tiddlers/messages/WidgetMessage_ tm-edit-bitmap-operation.tid +3 -3
- package/editions/tw5.com/tiddlers/messages/WidgetMessage_ tm-edit-text-operation.tid +2 -2
- package/editions/tw5.com/tiddlers/messages/WidgetMessage_ tm-focus-selector.tid +2 -2
- package/editions/tw5.com/tiddlers/messages/WidgetMessage_ tm-http-request Example Random Dog.tid +90 -0
- package/editions/tw5.com/tiddlers/messages/WidgetMessage_ tm-http-request Example Zotero.tid +4 -3
- package/editions/tw5.com/tiddlers/messages/WidgetMessage_ tm-http-request.tid +4 -2
- package/editions/tw5.com/tiddlers/messages/WidgetMessage_ tm-modal.tid +2 -2
- package/editions/tw5.com/tiddlers/messages/WidgetMessage_ tm-new-tiddler.tid +3 -3
- package/editions/tw5.com/tiddlers/messages/WidgetMessage_ tm-notify.tid +3 -3
- package/editions/tw5.com/tiddlers/messages/WidgetMessage_ tm-open-external-window.tid +4 -3
- package/editions/tw5.com/tiddlers/messages/WidgetMessage_ tm-save-wiki.tid +3 -3
- package/editions/tw5.com/tiddlers/pragmas/Pragma_ _procedure.tid +2 -2
- package/editions/tw5.com/tiddlers/pragmas/Pragma_ _rules.tid +2 -2
- package/editions/tw5.com/tiddlers/pragmas/Pragmas.tid +3 -1
- package/editions/tw5.com/tiddlers/procedures/Procedure Definitions.tid +1 -1
- package/editions/tw5.com/tiddlers/releasenotes/Release 5.3.1.tid +80 -0
- package/editions/tw5.com/tiddlers/releasenotes/Releases.tid +1 -1
- package/editions/tw5.com/tiddlers/releasenotes/TiddlyWiki Releases.tid +1 -1
- package/editions/tw5.com/tiddlers/{Saving on Browser with TiddlyStow.tid → saving/Saving on Browser with TiddlyStow.tid } +2 -2
- package/editions/tw5.com/tiddlers/saving/Saving to a Git service.tid +5 -1
- package/editions/tw5.com/tiddlers/saving/Saving via a Minimal Web Server.tid +8 -11
- package/editions/tw5.com/tiddlers/systemtags/SystemTag_ $__tags_Macro.tid +1 -1
- package/editions/tw5.com/tiddlers/variables/Behaviour of invoked variables depends on how the variable was declared.tid +52 -0
- package/editions/tw5.com/tiddlers/variables/Behaviour of variables invoked via filter expression function call.tid +10 -0
- package/editions/tw5.com/tiddlers/variables/Behaviour of variables invoked via filter operator parameter.tid +11 -0
- package/editions/tw5.com/tiddlers/variables/Behaviour of variables invoked via normal wikitext.tid +11 -0
- package/editions/tw5.com/tiddlers/variables/Behaviour of variables invoked via widget attributes.tid +11 -0
- package/editions/tw5.com/tiddlers/variables/Variable Usage.tid +5 -49
- package/editions/tw5.com/tiddlers/widgets/ActionListopsWidget.tid +24 -2
- package/editions/tw5.com/tiddlers/widgets/ActionPopupWidget.tid +2 -2
- package/editions/tw5.com/tiddlers/widgets/ListWidget.tid +3 -1
- package/editions/tw5.com/tiddlers/widgets/SelectWidget.tid +1 -1
- package/editions/tw5.com/tiddlers/widgets/examples/ActionListopsWidget (Examples).tid +12 -1
- package/editions/tw5.com/tiddlers/wikitext/Anchor Links using HTML.tid +1 -1
- package/editions/tw5.com/tiddlers/wikitext/Styles and Classes in WikiText.tid +52 -19
- package/editions/tw5.com/tiddlers/wikitext/Variable Attribute Values.tid +5 -2
- package/editions/tw5.com/tiddlers/wikitext/Widget Attributes.tid +8 -3
- package/editions/tw5.com/tiddlers/wikitext/Widgets in WikiText.tid +1 -0
- package/languages/pl-PL/Help/savewikifolder.tid +17 -4
- package/languages/zh-Hans/Help/savewikifolder.tid +5 -1
- package/languages/zh-Hant/Help/savewikifolder.tid +5 -1
- package/licenses/cla-individual.md +10 -0
- package/package.json +1 -1
- package/plugins/tiddlywiki/googleanalytics/googleanalytics.js +1 -1
- package/plugins/tiddlywiki/googleanalytics/settings.tid +1 -3
- package/plugins/tiddlywiki/jasmine/jasmine-plugin.js +9 -2
- package/plugins/tiddlywiki/jasmine/startup.js +2 -1
- package/readme.md +1 -1
- package/themes/tiddlywiki/vanilla/base.tid +8 -7
- package/editions/tw5.com/tiddlers/images/New Release Banner.jpg +0 -0
@@ -1,18 +1,11 @@
|
|
1
|
-
caption: 5.3.
|
2
|
-
created:
|
3
|
-
modified:
|
1
|
+
caption: 5.3.2
|
2
|
+
created: 20230820114855583
|
3
|
+
modified: 20230820114855583
|
4
4
|
tags: ReleaseNotes
|
5
|
-
title: Release 5.3.
|
5
|
+
title: Release 5.3.2
|
6
6
|
type: text/vnd.tiddlywiki
|
7
7
|
|
8
|
-
//[[See GitHub for detailed change history of this release|https://github.com/Jermolene/TiddlyWiki5/compare/v5.3.
|
9
|
-
|
10
|
-
! Overview of v5.3.1
|
11
|
-
|
12
|
-
|
13
|
-
! Plugin Improvements
|
14
|
-
|
15
|
-
*
|
8
|
+
//[[See GitHub for detailed change history of this release|https://github.com/Jermolene/TiddlyWiki5/compare/v5.3.1...master]]//
|
16
9
|
|
17
10
|
! Translation improvement
|
18
11
|
|
@@ -20,37 +13,48 @@ Improvements to the following translations:
|
|
20
13
|
|
21
14
|
*
|
22
15
|
|
23
|
-
! Usability Improvements
|
24
|
-
|
25
|
-
*
|
26
|
-
|
27
16
|
! Widget Improvements
|
28
17
|
|
29
|
-
*
|
30
|
-
|
31
|
-
! Filter improvements
|
32
|
-
|
33
|
-
*
|
18
|
+
*
|
34
19
|
|
35
20
|
! Hackability Improvements
|
36
21
|
|
37
|
-
*
|
22
|
+
*
|
38
23
|
|
39
24
|
! Bug Fixes
|
40
25
|
|
41
|
-
*
|
26
|
+
*
|
42
27
|
|
43
28
|
! Node.js Improvements
|
44
29
|
|
45
|
-
*
|
30
|
+
*
|
46
31
|
|
47
|
-
!
|
32
|
+
! Developer Improvements
|
48
33
|
|
49
|
-
*
|
34
|
+
*
|
50
35
|
|
51
36
|
! Acknowledgements
|
52
37
|
|
53
38
|
[[@Jermolene|https://github.com/Jermolene]] would like to thank the contributors to this release who have generously given their time to help improve TiddlyWiki:
|
54
39
|
|
55
40
|
<<.contributors """
|
41
|
+
AnthonyMuscio
|
42
|
+
btheado
|
43
|
+
catter-fly
|
44
|
+
cmo-pomerium
|
45
|
+
CrossEye
|
46
|
+
flibbles
|
47
|
+
hffqyd
|
48
|
+
lilscribby
|
49
|
+
linonetwo
|
50
|
+
Marxsal
|
51
|
+
mateuszwilczek
|
52
|
+
pille1842
|
53
|
+
pmario
|
54
|
+
rmunn
|
55
|
+
saqimtiaz
|
56
|
+
stevesunypoly
|
57
|
+
TiddlyTweeter
|
58
|
+
twMat
|
59
|
+
yaisog
|
56
60
|
""">>
|
@@ -1,6 +1,6 @@
|
|
1
1
|
title: $:/config/LocalPluginLibrary
|
2
2
|
tags: $:/tags/PluginLibrary
|
3
|
-
url: http://127.0.0.1:8080/prerelease/library/v5.
|
3
|
+
url: http://127.0.0.1:8080/prerelease/library/v5.3.1/index.html
|
4
4
|
caption: {{$:/language/OfficialPluginLibrary}} (Prerelease Local)
|
5
5
|
|
6
6
|
A locally installed version of the official ~TiddlyWiki plugin library at tiddlywiki.com for testing and debugging. //Requires a local web server to share the library//
|
@@ -1,6 +1,6 @@
|
|
1
1
|
title: $:/config/OfficialPluginLibrary
|
2
2
|
tags: $:/tags/PluginLibrary
|
3
|
-
url: https://tiddlywiki.com/prerelease/library/v5.3.
|
3
|
+
url: https://tiddlywiki.com/prerelease/library/v5.3.1/index.html
|
4
4
|
caption: {{$:/language/OfficialPluginLibrary}} (Prerelease)
|
5
5
|
|
6
6
|
The prerelease version of the official ~TiddlyWiki plugin library at tiddlywiki.com. Plugins, themes and language packs are maintained by the core team.
|
@@ -1,5 +1,5 @@
|
|
1
1
|
title: TiddlyWiki Pre-release
|
2
|
-
modified:
|
2
|
+
modified: 20230731122156493
|
3
3
|
|
4
4
|
This is a pre-release build of TiddlyWiki provided for testing and review purposes. ''Please don't try to depend on the pre-release for anything important'' -- you should use the latest official release from https://tiddlywiki.com.
|
5
5
|
|
@@ -0,0 +1,24 @@
|
|
1
|
+
title: Functions/Function/Indented
|
2
|
+
description: Indented function definition
|
3
|
+
type: text/vnd.tiddlywiki-multiple
|
4
|
+
tags: [[$:/tags/wiki-test-spec]]
|
5
|
+
|
6
|
+
title: Output
|
7
|
+
|
8
|
+
\whitespace trim
|
9
|
+
\function .dividebysomething(factor:0.5)
|
10
|
+
[divide<factor>]
|
11
|
+
\end
|
12
|
+
|
13
|
+
\function multiplebysomething(first:ignored,factor:2)
|
14
|
+
[multiply<factor>multiply[2].dividebysomething[0.25]]
|
15
|
+
\end
|
16
|
+
|
17
|
+
<$text text={{{ [[4]function[multiplebysomething]] }}}/>
|
18
|
+
|
|
19
|
+
<$text text={{{ [[6]function[multiplebysomething],[ignored],[4]] }}}/>
|
20
|
+
|
21
|
+
+
|
22
|
+
title: ExpectedResult
|
23
|
+
|
24
|
+
<p>64|192</p>
|
@@ -33,4 +33,4 @@ $param$ with a ''buffalo''
|
|
33
33
|
+
|
34
34
|
title: ExpectedResult
|
35
35
|
|
36
|
-
<p>Going to lunch with a ''buffalo''</p><p>Going to breakfastwith a<strong>buffalo</strong></p><p>Going to dinner with a <strong>buffalo</strong></p>Going to lunch with a buffalo
|
36
|
+
<p>Going to lunch with a ''buffalo''</p><p>Going to breakfastwith a<strong>buffalo</strong></p><p>Going to dinner with a <strong>buffalo</strong></p>Going to lunch with a ''buffalo''Going to breakfastwith abuffaloGoing to dinner with a buffalo
|
@@ -0,0 +1,23 @@
|
|
1
|
+
title: ImportVariables/WithSetWidgets
|
2
|
+
description: Import variables defined with a set widget
|
3
|
+
type: text/vnd.tiddlywiki-multiple
|
4
|
+
tags: [[$:/tags/wiki-test-spec]]
|
5
|
+
|
6
|
+
title: Output
|
7
|
+
|
8
|
+
\whitespace trim
|
9
|
+
\import Definitions
|
10
|
+
<$text text=<<one>>/>,
|
11
|
+
<$text text=<<two>>/>
|
12
|
+
+
|
13
|
+
title: Definitions
|
14
|
+
|
15
|
+
\whitespace trim
|
16
|
+
<$set name="one" value="elephant">
|
17
|
+
<$set name="two" value="giraffe">
|
18
|
+
</$set>
|
19
|
+
</$set>
|
20
|
+
+
|
21
|
+
title: ExpectedResult
|
22
|
+
|
23
|
+
<p>elephant,giraffe</p>
|
@@ -0,0 +1,22 @@
|
|
1
|
+
title: ImportVariables/WithSetWidgets2
|
2
|
+
description: Import variables defined with a set widget without whitespace pragma
|
3
|
+
type: text/vnd.tiddlywiki-multiple
|
4
|
+
tags: [[$:/tags/wiki-test-spec]]
|
5
|
+
|
6
|
+
title: Output
|
7
|
+
|
8
|
+
\whitespace trim
|
9
|
+
\import Definitions
|
10
|
+
<$text text=<<one>>/>,
|
11
|
+
<$text text=<<two>>/>
|
12
|
+
+
|
13
|
+
title: Definitions
|
14
|
+
|
15
|
+
<$set name="one" value="elephant">
|
16
|
+
<$set name="two" value="giraffe">
|
17
|
+
</$set>
|
18
|
+
</$set>
|
19
|
+
+
|
20
|
+
title: ExpectedResult
|
21
|
+
|
22
|
+
<p>elephant,giraffe</p>
|
@@ -0,0 +1,29 @@
|
|
1
|
+
title: ImportVariables/WithSetWidgetsAndMacros
|
2
|
+
description: Import variables defined with a set widget without whitespace pragma
|
3
|
+
type: text/vnd.tiddlywiki-multiple
|
4
|
+
tags: [[$:/tags/wiki-test-spec]]
|
5
|
+
|
6
|
+
title: Output
|
7
|
+
|
8
|
+
\whitespace trim
|
9
|
+
\import Definitions
|
10
|
+
<$text text=<<name>>/>,
|
11
|
+
<$text text=<<address>>/>,
|
12
|
+
<$text text=<<one>>/>,
|
13
|
+
<$text text=<<two>>/>
|
14
|
+
+
|
15
|
+
title: Definitions
|
16
|
+
|
17
|
+
\define name() Bugs Bunny
|
18
|
+
\procedure address()
|
19
|
+
Bunny Hill
|
20
|
+
\end
|
21
|
+
|
22
|
+
<$set name="one" value="elephant">
|
23
|
+
<$set name="two" value="giraffe">
|
24
|
+
</$set>
|
25
|
+
</$set>
|
26
|
+
+
|
27
|
+
title: ExpectedResult
|
28
|
+
|
29
|
+
<p>Bugs Bunny,Bunny Hill,elephant,giraffe</p>
|
@@ -0,0 +1,20 @@
|
|
1
|
+
title: Procedures/Nested/Indented
|
2
|
+
description: Nested Procedures that are indented
|
3
|
+
type: text/vnd.tiddlywiki-multiple
|
4
|
+
tags: [[$:/tags/wiki-test-spec]]
|
5
|
+
|
6
|
+
title: Output
|
7
|
+
|
8
|
+
\whitespace trim
|
9
|
+
\procedure alpha(x)
|
10
|
+
\procedure beta(y)
|
11
|
+
<$text text=<<y>>/>
|
12
|
+
\end beta
|
13
|
+
<$transclude $variable="beta" y={{{ [<x>addprefix<x>] }}}/>
|
14
|
+
\end alpha
|
15
|
+
|
16
|
+
<<alpha "Elephant">>
|
17
|
+
+
|
18
|
+
title: ExpectedResult
|
19
|
+
|
20
|
+
<p>ElephantElephant</p>
|
@@ -0,0 +1,22 @@
|
|
1
|
+
title: Procedures/TrailingNewlines
|
2
|
+
description: Trailing newlines in procedures must not be dropped
|
3
|
+
type: text/vnd.tiddlywiki-multiple
|
4
|
+
tags: [[$:/tags/wiki-test-spec]]
|
5
|
+
|
6
|
+
title: Output
|
7
|
+
|
8
|
+
\procedure inner()
|
9
|
+
Paragraph 1
|
10
|
+
|
11
|
+
Paragraph 2
|
12
|
+
\end
|
13
|
+
\procedure outer()
|
14
|
+
<$macrocall $name=inner />
|
15
|
+
|
16
|
+
\end
|
17
|
+
<<outer>>
|
18
|
+
|
19
|
+
+
|
20
|
+
title: ExpectedResult
|
21
|
+
|
22
|
+
<p>Paragraph 1</p><p>Paragraph 2</p>
|
@@ -0,0 +1,33 @@
|
|
1
|
+
title: Transclude/CustomWidget/Simple/Indented
|
2
|
+
description: Custom widget definition indented
|
3
|
+
type: text/vnd.tiddlywiki-multiple
|
4
|
+
tags: [[$:/tags/wiki-test-spec]]
|
5
|
+
|
6
|
+
title: Output
|
7
|
+
|
8
|
+
\whitespace trim
|
9
|
+
<$transclude $tiddler='TiddlerOne' one='Ferret'>
|
10
|
+
</$transclude>
|
11
|
+
+
|
12
|
+
title: TiddlerOne
|
13
|
+
|
14
|
+
\whitespace trim
|
15
|
+
<!-- Define the <$my.widget> widget by defining a transcludable variable with that name -->
|
16
|
+
\widget $my.widget(one:'Jaguar')
|
17
|
+
\whitespace trim
|
18
|
+
<$text text=<<one>>/>
|
19
|
+
<$slot $name="ts-raw">
|
20
|
+
Whale
|
21
|
+
</$slot>
|
22
|
+
\end
|
23
|
+
<$my.widget one="Dingo">
|
24
|
+
Crocodile
|
25
|
+
</$my.widget>
|
26
|
+
<$my.widget one="BumbleBee">
|
27
|
+
Squirrel
|
28
|
+
</$my.widget>
|
29
|
+
<$my.widget/>
|
30
|
+
+
|
31
|
+
title: ExpectedResult
|
32
|
+
|
33
|
+
<p>DingoCrocodileBumbleBeeSquirrelJaguarWhale</p>
|
package/editions/test/tiddlers/tests/data/transclude/Parameterised-Shortcut-ParametersIndented.tid
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
title: Transclude/Parameterised/Shortcut/ParametersIndented
|
2
|
+
description: Simple parameterised transclusion using the parameters pragma (indented)
|
3
|
+
type: text/vnd.tiddlywiki-multiple
|
4
|
+
tags: [[$:/tags/wiki-test-spec]]
|
5
|
+
|
6
|
+
title: Output
|
7
|
+
|
8
|
+
\whitespace trim
|
9
|
+
<$transclude $tiddler='TiddlerOne' one='Ferret'/>
|
10
|
+
<$transclude $tiddler='TiddlerOne'/>
|
11
|
+
+
|
12
|
+
title: TiddlerOne
|
13
|
+
|
14
|
+
\whitespace trim
|
15
|
+
\parameters(one:'Jaguar')
|
16
|
+
<$text text=<<one>>/>
|
17
|
+
+
|
18
|
+
title: ExpectedResult
|
19
|
+
|
20
|
+
<p>FerretJaguar</p>
|
@@ -0,0 +1,26 @@
|
|
1
|
+
title: Procedures/Double/Underscore
|
2
|
+
description: Checking that procedures don't expose parameters as variables wrapped in double underscores
|
3
|
+
type: text/vnd.tiddlywiki-multiple
|
4
|
+
tags: [[$:/tags/wiki-test-spec]]
|
5
|
+
|
6
|
+
title: Output
|
7
|
+
|
8
|
+
\whitespace trim
|
9
|
+
\procedure mamacro(one:"red",two:"green")
|
10
|
+
It is $one$ and $two$<<__one__>><<__two__>>.
|
11
|
+
\end
|
12
|
+
|
13
|
+
<$macrocall $name="mamacro"/>
|
14
|
+
|
15
|
+
<$transclude $variable="mamacro"/>
|
16
|
+
|
17
|
+
<$transclude $variable="mamacro" one="orange"/>
|
18
|
+
|
19
|
+
<$transclude $variable="mamacro" 0="pink"/>
|
20
|
+
|
21
|
+
<$transclude $variable="mamacro" one="purple" 1="pink"/>
|
22
|
+
|
23
|
+
+
|
24
|
+
title: ExpectedResult
|
25
|
+
|
26
|
+
<p>It is $one$ and $two$.</p><p>It is $one$ and $two$.</p><p>It is $one$ and $two$.</p><p>It is $one$ and $two$.</p><p>It is $one$ and $two$.</p>
|
@@ -6,14 +6,16 @@ tags: [[$:/tags/wiki-test-spec]]
|
|
6
6
|
title: Output
|
7
7
|
|
8
8
|
\whitespace trim
|
9
|
-
<$
|
9
|
+
<$set name="var with spaces" value="spaces">
|
10
|
+
<$let project="TiddlyWiki" disabled="true" var-with-dashes="dashes">
|
10
11
|
<div class=`$(project)$
|
11
|
-
${ [[Hello]addsuffix[There]] }$` attrib=`myvalue` otherattrib=`$(1)$` blankattrib=`` quoted="here" disabled=```$(disabled)
|
12
|
+
${ [[Hello]addsuffix[There]] }$` attrib=`myvalue` otherattrib=`$(1)$` blankattrib=`` quoted="here" disabled=```$(disabled)$``` dashes=`$(var-with-dashes)$` spaces=`$(var with spaces)$`>
|
12
13
|
</div>
|
13
14
|
</$let>
|
15
|
+
</$set>
|
14
16
|
|
15
17
|
+
|
16
18
|
title: ExpectedResult
|
17
19
|
|
18
20
|
<p><div attrib="myvalue" blankattrib="" class="TiddlyWiki
|
19
|
-
HelloThere" disabled="true" otherattrib="" quoted="here"></div></p>
|
21
|
+
HelloThere" dashes="dashes" disabled="true" otherattrib="" quoted="here" spaces="spaces"></div></p>
|
@@ -397,8 +397,8 @@ Tests the filtering mechanism.
|
|
397
397
|
expect(wiki.filterTiddlers("[all[shadows]tag[two]]").join(",")).toBe("$:/TiddlerFive");
|
398
398
|
expect(wiki.filterTiddlers("[all[shadows+tiddlers]tag[two]]").join(",")).toBe("$:/TiddlerFive,$:/TiddlerTwo,Tiddler Three");
|
399
399
|
expect(wiki.filterTiddlers("[all[tiddlers+shadows]tag[two]]").join(",")).toBe("$:/TiddlerTwo,Tiddler Three,$:/TiddlerFive");
|
400
|
-
expect(wiki.filterTiddlers("[all[shadows+tiddlers]]").join(",")).toBe("$:/TiddlerFive,
|
401
|
-
expect(wiki.filterTiddlers("[all[tiddlers+shadows]]").join(",")).toBe("$:/ShadowPlugin,$:/TiddlerTwo,a fourth tiddler,filter regexp test,has filter,hasList,one,Tiddler Three,TiddlerOne,$:/TiddlerFive,
|
400
|
+
expect(wiki.filterTiddlers("[all[shadows+tiddlers]]").join(",")).toBe("$:/TiddlerFive,Tiddler8,TiddlerSeventh,TiddlerSix,$:/ShadowPlugin,$:/TiddlerTwo,a fourth tiddler,filter regexp test,has filter,hasList,one,Tiddler Three,TiddlerOne");
|
401
|
+
expect(wiki.filterTiddlers("[all[tiddlers+shadows]]").join(",")).toBe("$:/ShadowPlugin,$:/TiddlerTwo,a fourth tiddler,filter regexp test,has filter,hasList,one,Tiddler Three,TiddlerOne,$:/TiddlerFive,Tiddler8,TiddlerSeventh,TiddlerSix");
|
402
402
|
expect(wiki.filterTiddlers("[all[tiddlers]tag[two]]").join(",")).toBe("$:/TiddlerTwo,Tiddler Three");
|
403
403
|
expect(wiki.filterTiddlers("[all[orphans+tiddlers+tags]]").join(",")).toBe("$:/ShadowPlugin,$:/TiddlerTwo,a fourth tiddler,filter regexp test,has filter,hasList,Tiddler Three,TiddlerOne,two,one");
|
404
404
|
});
|
@@ -420,10 +420,10 @@ Tests the filtering mechanism.
|
|
420
420
|
|
421
421
|
it("should handle the tagging operator", function() {
|
422
422
|
expect(wiki.filterTiddlers("[[one]tagging[]sort[title]]").join(",")).toBe("Tiddler Three,Tiddler8,TiddlerOne,TiddlerSeventh");
|
423
|
-
expect(wiki.filterTiddlers("[[one]tagging[]]").join(",")).toBe("Tiddler Three,TiddlerOne,TiddlerSeventh
|
423
|
+
expect(wiki.filterTiddlers("[[one]tagging[]]").join(",")).toBe("Tiddler Three,TiddlerOne,Tiddler8,TiddlerSeventh");
|
424
424
|
expect(wiki.filterTiddlers("[[two]tagging[]sort[title]]").join(",")).toBe("$:/TiddlerFive,$:/TiddlerTwo,Tiddler Three");
|
425
425
|
var fakeWidget = {wiki: wiki, getVariable: function(name) {return name === "currentTiddler" ? "one": undefined;}};
|
426
|
-
expect(wiki.filterTiddlers("[all[current]tagging[]]",fakeWidget).join(",")).toBe("Tiddler Three,TiddlerOne,TiddlerSeventh
|
426
|
+
expect(wiki.filterTiddlers("[all[current]tagging[]]",fakeWidget).join(",")).toBe("Tiddler Three,TiddlerOne,Tiddler8,TiddlerSeventh");
|
427
427
|
});
|
428
428
|
|
429
429
|
it("should handle the untagged operator", function() {
|
@@ -1,11 +1,11 @@
|
|
1
1
|
created: 20140129085406905
|
2
|
-
modified:
|
2
|
+
modified: 20230805140720289
|
3
3
|
tags: [[Other Resources]] Articles
|
4
4
|
title: "TiddlyWiki Posts" by Jeffrey Kishner
|
5
5
|
type: text/vnd.tiddlywiki
|
6
|
-
url: http://blog.jeffreykishner.com/tiddlywiki/
|
6
|
+
url: https://web.archive.org/web/20221015011644/http://blog.jeffreykishner.com/tiddlywiki/
|
7
7
|
|
8
|
-
A collection of articles covering integration with Fargo, Font Awesome and Google Calendar, and tips for managing task lists.
|
8
|
+
A collection of articles covering integration with Fargo, Font Awesome and Google Calendar, and tips for managing task lists. The original site is missing, but a link to an archive is provided.
|
9
9
|
|
10
10
|
{{!!url}}
|
11
11
|
|
@@ -1,11 +1,11 @@
|
|
1
1
|
created: 20201117163027900
|
2
|
-
modified:
|
2
|
+
modified: 20230723074506632
|
3
3
|
tags: Tutorials
|
4
4
|
title: GitHub Saver Tutorial by Mohammad
|
5
5
|
type: text/vnd.tiddlywiki
|
6
6
|
url: https://kookma.github.io/TW5-GitHub-Saver/
|
7
7
|
|
8
|
-
GitHub Saver is a step by step tutorial shows how to integrate Tiddlywiki 5 and GitHub Pages to create websites hosted on https://github.com/.
|
8
|
+
GitHub Saver is a step by step tutorial that shows how to integrate Tiddlywiki 5 and ~GitHub Pages to create websites hosted on https://github.com/.
|
9
9
|
|
10
10
|
{{!!url}}
|
11
11
|
|
@@ -13,11 +13,11 @@ This instruction is based on Tiddlywiki single html file model, while it can use
|
|
13
13
|
|
14
14
|
!! Other tutorials
|
15
15
|
|
16
|
-
;Tiddlywiki, Travis-CI and GitHub Pages
|
16
|
+
;Tiddlywiki, Travis-CI and ~GitHub Pages
|
17
17
|
:https://kookma.github.io/Tiddlywiki-Travis-CI/
|
18
18
|
:This wiki shows how to set up websites hosted on [[GitHub Pages|https://pages.github.com/]] using [[Travis-CI|https://travis-ci.org]] and [[Tiddlywiki 5|https://tiddlywiki.com]] on Node.js.
|
19
19
|
|
20
20
|
|
21
|
-
;Tiddlywiki and GitHub Pages
|
21
|
+
;Tiddlywiki and ~GitHub Pages
|
22
22
|
:https://kookma.github.io/Tiddlywiki-and-GitHub-Pages/
|
23
|
-
:This instruction is based on local edit, save and push to GitHub. It does NOT use the new GitHub Saver mechanism (requires TW 5.1.20+) which lets edit and save directly from Tiddlywiki!
|
23
|
+
:This instruction is based on local edit, save and push to ~GitHub. It does NOT use the new ~GitHub Saver mechanism (requires TW 5.1.20+) which lets edit and save directly from Tiddlywiki!
|
@@ -0,0 +1,9 @@
|
|
1
|
+
created: 20230723073000469
|
2
|
+
modified: 20230723073046462
|
3
|
+
tags: Definitions
|
4
|
+
title: Git
|
5
|
+
type: text/vnd.tiddlywiki
|
6
|
+
|
7
|
+
>Git (/ɡɪt/) is a distributed version control system that tracks changes in any set of computer files, usually used for coordinating work among programmers collaboratively developing source code during software development. Its goals include speed, data integrity, and support for distributed, non-linear workflows (thousands of parallel branches running on different computers).
|
8
|
+
>
|
9
|
+
>https://en.wikipedia.org/wiki/Git
|
@@ -1,13 +1,15 @@
|
|
1
1
|
created: 20140910212609354
|
2
|
-
modified:
|
2
|
+
modified: 20230723074351846
|
3
3
|
tags: Definitions
|
4
4
|
title: GitHub
|
5
5
|
type: text/vnd.tiddlywiki
|
6
6
|
|
7
|
-
GitHub is a hosting service for distributed projects that use git as their version-control system. It allows free hosting and management of open-source projects and facilitates collaborative development on the source code. Using GitHub for non-open-source endeavours requires additional fees.
|
7
|
+
GitHub is a hosting service for distributed projects that use git as their version-control system. It allows free hosting and management of open-source projects and facilitates collaborative development on the source code. Using ~GitHub for non-open-source endeavours requires additional fees.
|
8
8
|
|
9
|
-
The code and documentation of TiddlyWiki is hosted on GitHub at:
|
9
|
+
The code and documentation of TiddlyWiki is hosted on ~GitHub at:
|
10
10
|
|
11
11
|
https://github.com/Jermolene/TiddlyWiki5
|
12
12
|
|
13
|
-
GitHub also offer a free web hosting service called [[GitHub Pages|https://pages.github.com/]] that can be used directly from the single file configuration. See [[Saving to a Git service]].
|
13
|
+
~GitHub also offer a free web hosting service called [[GitHub Pages|https://pages.github.com/]] that can be used directly from the single file configuration. See [[Saving to a Git service]].
|
14
|
+
|
15
|
+
An alternative to ~GitHub is GitLab
|
@@ -0,0 +1,13 @@
|
|
1
|
+
created: 20230723072527781
|
2
|
+
modified: 20230723073955715
|
3
|
+
tags: Definitions
|
4
|
+
title: GitLab
|
5
|
+
type: text/vnd.tiddlywiki
|
6
|
+
|
7
|
+
>GitLab Inc. is an open-core company that operates ~GitLab, a ~DevOps software package which can develop, secure, and operate software. The open source software project was created by Ukrainian developer Dmytro Zaporozhets and Dutch developer Sytse Sijbrandij
|
8
|
+
>
|
9
|
+
>https://en.wikipedia.org/wiki/GitLab
|
10
|
+
|
11
|
+
Both GitLab and GitHub use [[Git]] a distributed version control system, that can be used to store, view and edit TiddlyWiki wikis using [[GitLab Pages|https://docs.gitlab.com/ee/user/project/pages/]]
|
12
|
+
|
13
|
+
Learn more at: [[Saving to a Git service]]
|
@@ -2,5 +2,15 @@ created: 20150221194423000
|
|
2
2
|
modified: 20211114013601189
|
3
3
|
tags: SecondThree [[Table-of-Contents Demonstrations]]
|
4
4
|
title: SecondThreeThree
|
5
|
+
toc-link: no
|
6
|
+
type: text/vnd.tiddlywiki
|
7
|
+
|
8
|
+
''Important''
|
9
|
+
|
10
|
+
It's important that this tiddler has no "child" to be able to visually test every possible toc code-path.
|
11
|
+
|
12
|
+
* This tiddler has a field ''toc-link: no''
|
13
|
+
* Do not tag any other tiddler with the title of this one
|
14
|
+
|
15
|
+
|
5
16
|
|
6
|
-
<<.toc-lorem>>
|
@@ -18,9 +18,9 @@ The <<.op substitute>> operator replaces any placeholders in the input titles in
|
|
18
18
|
# variables
|
19
19
|
|
20
20
|
|placeholder syntax|description|h
|
21
|
-
|`$n$`|Text substitution of a parameter provided to the operator, where n is the position of the parameter starting with 1 for the first parameter. Unmatched placeholders pass through unchanged
|
22
|
-
|`$(varname)$`|Text substitution of a variable. Undefined variables are replaced with an empty string
|
23
|
-
|`${ filter expression }$`|Text substitution
|
21
|
+
|`$n$`|Text substitution of a parameter provided to the operator, where n is the position of the parameter starting with 1 for the first parameter. Unmatched placeholders pass through unchanged. |
|
22
|
+
|`$(varname)$`|Text substitution of a variable. Undefined variables are replaced with an empty string. |
|
23
|
+
|`${ filter expression }$`|Text substitution of the first result of evaluating a filter expression. In other words, if the filter returns multiple titles only the first one will be used. |
|
24
24
|
|
25
25
|
<<.tip """Placeholders that contain square bracket characters are not valid filter syntax when used directly in a filter expression. However they can be provided as input to the <$macrocall $name=".op" _="substitute"/> operator as text references or variables""">>
|
26
26
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
created: 20130822170200000
|
2
2
|
list: [[A Gentle Guide to TiddlyWiki]] [[Discover TiddlyWiki]] [[Some of the things you can do with TiddlyWiki]] [[Ten reasons to switch to TiddlyWiki]] Examples [[What happened to the original TiddlyWiki?]]
|
3
|
-
modified:
|
3
|
+
modified: 20230820112855583
|
4
4
|
tags: TableOfContents
|
5
5
|
title: HelloThere
|
6
6
|
type: text/vnd.tiddlywiki
|
Binary file
|
@@ -1,12 +1,14 @@
|
|
1
1
|
caption: tag
|
2
2
|
created: 20141206130540337
|
3
|
-
modified:
|
3
|
+
modified: 20230725201240201
|
4
4
|
tags: Macros [[Core Macros]]
|
5
5
|
title: tag Macro
|
6
6
|
type: text/vnd.tiddlywiki
|
7
7
|
|
8
8
|
The <<.def tag>> [[macro|Macros]] generates a tag pill for a specified tag. Clicking the tag pill opens a dropdown. This can be compared to the [[tag-pill Macro]] which also features other parameters.
|
9
9
|
|
10
|
+
<<.tip """If a [[list widget|ListWidget]] generates multiple tag macros for the same tag, clicking on one of them will open dropdowns on all of them. The simplest way to prevent this is to add the `counter="transclusion"` attribute to the list widget. See the examples below for more details.""">>
|
11
|
+
|
10
12
|
!! Parameters
|
11
13
|
|
12
14
|
;tag
|
@@ -1,8 +1,29 @@
|
|
1
1
|
created: 20150221211317000
|
2
|
-
modified:
|
2
|
+
modified: 20230725203751870
|
3
3
|
tags: [[tag Macro]] [[Macro Examples]]
|
4
4
|
title: tag Macro (Examples)
|
5
5
|
type: text/vnd.tiddlywiki
|
6
6
|
|
7
7
|
<$macrocall $name=".example" n="1" eg="""<<tag>>"""/>
|
8
8
|
<$macrocall $name=".example" n="2" eg="""<<tag Concepts>>"""/>
|
9
|
+
|
10
|
+
If a [[list widget|ListWidget]] generates multiple tag macros for the same tag, clicking any of them opens dropdowns on all of them, as in the example below. This is usually unwanted.
|
11
|
+
<$macrocall $name=".example" n="3" eg="""<$list filter="[tag[HelloThere]]">
|
12
|
+
|
13
|
+
* <$link/> is tagged with: <$list filter="[<currentTiddler>tags[]]"> <<tag>> </$list>
|
14
|
+
|
15
|
+
</$list>"""/>
|
16
|
+
|
17
|
+
Adding the `counter="transclusion"` attribute to the list widget that generates multiple identical tag macros causes each of them to be identified as a unique one. Clicking on any of them opens only a single dropdown.
|
18
|
+
<$macrocall $name=".example" n="4" eg="""<$list filter="[tag[HelloThere]]" counter="transclusion">
|
19
|
+
|
20
|
+
* <$link/> is tagged with: <$list filter="[<currentTiddler>tags[]]"> <<tag>> </$list>
|
21
|
+
|
22
|
+
</$list>"""/>
|
23
|
+
|
24
|
+
A slightly more performant option is to use the `variable="transclusion"` attribute in the list widget. In this case, the variable `<<transclusion>>` has to be used inside the list widget instead of the `<<currentTiddler>>` .
|
25
|
+
<$macrocall $name=".example" n="5" eg="""<$list filter="[tag[HelloThere]]" variable="transclusion">
|
26
|
+
|
27
|
+
* <$link to=<<transclusion>>/> is tagged with: <$list filter="[<transclusion>tags[]]"> <<tag>> </$list>
|
28
|
+
|
29
|
+
</$list>"""/>
|
@@ -1,6 +1,6 @@
|
|
1
1
|
caption: tm-open-window
|
2
2
|
created: 20220228140417116
|
3
|
-
modified:
|
3
|
+
modified: 20230723220539648
|
4
4
|
tags: Messages
|
5
5
|
title: WidgetMessage: tm-close-window
|
6
6
|
type: text/vnd.tiddlywiki
|
@@ -29,7 +29,7 @@ src="""
|
|
29
29
|
width="400"
|
30
30
|
height="500"
|
31
31
|
windowID="window1"
|
32
|
-
something="I just in
|
32
|
+
something="I just flew in on a variable, and boy is my Hashmap tired." />
|
33
33
|
</$button>
|
34
34
|
<$button>Close Window
|
35
35
|
<$action-sendmessage
|
@@ -1,15 +1,15 @@
|
|
1
|
+
caption: tm-download-file
|
1
2
|
created: 20140811112201235
|
2
|
-
modified:
|
3
|
+
modified: 20230723214745520
|
3
4
|
tags: Messages
|
4
5
|
title: WidgetMessage: tm-download-file
|
5
6
|
type: text/vnd.tiddlywiki
|
6
|
-
caption: tm-download-file
|
7
7
|
|
8
8
|
The download file message causes the current saver module to prompt the user to download the result of parsing a specified template tiddler as a file. It requires the following properties on the `event` object:
|
9
9
|
|
10
10
|
|!Name |!Description |
|
11
11
|
|param |Title of a tiddler to use as a template for the new tiddler |
|
12
|
-
|
12
|
+
|//{any other params}// |Any other parameters are made available as variables within the context of the widget message. |
|
13
13
|
|
14
14
|
The following variable names have special behaviour:
|
15
15
|
|