From 763d717a1383081a9173348dc40ab7455f61c9d3 Mon Sep 17 00:00:00 2001 From: superuser-does <32982579+superuser-does@users.noreply.github.com> Date: Tue, 20 Jan 2026 12:18:24 +0000 Subject: [PATCH 1/4] Improvements to DateFormat tiddler (#9583) --- .../tw5.com/tiddlers/features/DateFormat.tid | 35 ++++++++++--------- 1 file changed, 18 insertions(+), 17 deletions(-) diff --git a/editions/tw5.com/tiddlers/features/DateFormat.tid b/editions/tw5.com/tiddlers/features/DateFormat.tid index f918d9a99..36967cd5a 100644 --- a/editions/tw5.com/tiddlers/features/DateFormat.tid +++ b/editions/tw5.com/tiddlers/features/DateFormat.tid @@ -4,35 +4,36 @@ tags: Features title: DateFormat type: text/vnd.tiddlywiki -The default representation of dates is a compact string such as <<.value 20211002153802059>>. The associated template is `[UTC]YYYY0MM0DD0hh0mm0ss0XXX`. For example, the <<.field created>> and <<.field modified>> fields are stored like this. +The default representation of dates is a compact string such as <<.value "<$view field='modified' format='text'/>">>. The associated template is `[UTC]YYYY0MM0DD0hh0mm0ss0XXX`. For example, the <<.field created>> and <<.field modified>> fields are stored like this. -The display format for this string can be controlled with a template. For example, transcluding the <<.field modified>> field automatically applies a template to display the date as <<.value "Sat Oct 02 2021 17:40:50 GMT+0200 (Central European Summer Time)">>. A few widgets and filter operators allow you to manually specify a template, for example the ViewWidget: +The display format for this string can be controlled with a template. For example, transcluding the <<.field modified>> field automatically applies a template to display the date as "{{!!modified}}". A few widgets and filter operators allow you to manually specify a template, for example the ViewWidget: `<$view field=modified format=date template="DDth mmm YYYY 0hh:0mm:0ss" />` The date string is processed with the following substitutions: |!Token |!Substituted Value | +|`[UTC]`|Time-shift the represented date to UTC. Must be at very start of format string | +|`YYYY` |Full year | +|`YY` |Two-digit year | +|`wYYYY` |Full year with respect to week number | +|`aYYYY` |<<.from-version "5.1.23">> Full year but negative dates are displayed as positive | +|`wYY` |Two digit year with respect to week number | +|`{era:BCE||CE}` |<<.from-version "5.1.23">> Displays a different string for years that are negative, zero or positive (see below) | +|`MMM` |Month in full (e.g. "July") | +|`mmm` |Short month (e.g. "Jul") | +|`MM` |Month number | +|`0MM` |Adds leading zero | |`ddddd` |<<.from-version "5.2.0">> Day of year (1 to 365, or 366 for leap years) | |`0ddddd` |<<.from-version "5.2.0">> Zero padded day of year (001 to 365, or 366 for leap years) | -|`DDD` |Day of week in full (eg, "Monday") | -|`ddd` |Short day of week (eg, "Mon") | +|`DDD` |Day of week in full (e.g. "Monday") | +|`ddd` |Short day of week (e.g. "Mon") | |`dddd` |<<.from-version "5.2.0">> Weekday number from 1 through 7, beginning with Monday and ending with Sunday | |`DD` |Day of month | |`0DD` |Adds a leading zero | |`DDth` |Adds a suffix | |`WW` |ISO-8601 week number of year | |`0WW` |Adds a leading zero | -|`MMM` |Month in full (eg, "July") | -|`mmm` |Short month (eg, "Jul") | -|`MM` |Month number | -|`0MM` |Adds leading zero | -|`YYYY` |Full year | -|`YY` |Two digit year | -|`wYYYY` |Full year with respect to week number | -|`aYYYY` |<<.from-version "5.1.23">> Full year but negative dates are displayed as positive | -|`wYY` |Two digit year with respect to week number | -|`{era:BCE||CE}` |<<.from-version "5.1.23">> Displays a different string for years that are negative, zero or positive (see below) | |`hh` |Hours | |`0hh` |Adds a leading zero | |`hh12` |Hours in 12 hour clock | @@ -43,12 +44,12 @@ The date string is processed with the following substitutions: |`0ss` |Seconds with leading zero | |`XXX` |Milliseconds | |`0XXX` |Milliseconds with leading zero | -|`am` or `pm` |Lower case AM/PM indicator | +|`am` or `pm` |Lower case am/pm indicator | |`AM` or `PM` |Upper case AM/PM indicator | -|`TZD` |Timezone offset | +|`TZD` |Timezone offset from UTC (e.g. "+01:00", "-05:00"…) | |`TIMESTAMP` |<<.from-version "5.2.4">> Number of milliseconds since the [[ECMAScript epoch|https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date#the_ecmascript_epoch_and_timestamps]], 1 January 1970. | |`\x` |Used to escape a character that would otherwise have special meaning | -|`[UTC]`|Time-shift the represented date to UTC. Must be at very start of format string| + Note that other text is passed through unchanged, allowing commas, colons or other separators to be used. From 79e3d1469878b0d86580192886c250df3ccff2be Mon Sep 17 00:00:00 2001 From: Mario Pietsch Date: Tue, 20 Jan 2026 13:23:17 +0100 Subject: [PATCH 2/4] [DOCS] Make TaskManagementExamples more "hackable" (#9482) * [DOCS] Make TaskManagementExamples more "hackable" * Update modified date in TaskManagementExample.tid * Fix modified date in TaskManagementExampleDraggable --- .../Tasks/TaskManagementExample.tid | 18 +++++++++--------- .../Tasks/TaskManagementExampleDraggable.tid | 10 +++++++--- 2 files changed, 16 insertions(+), 12 deletions(-) diff --git a/editions/tw5.com/tiddlers/demonstrations/Tasks/TaskManagementExample.tid b/editions/tw5.com/tiddlers/demonstrations/Tasks/TaskManagementExample.tid index 4e66bb9fc..ab3520bf8 100644 --- a/editions/tw5.com/tiddlers/demonstrations/Tasks/TaskManagementExample.tid +++ b/editions/tw5.com/tiddlers/demonstrations/Tasks/TaskManagementExample.tid @@ -4,22 +4,22 @@ tags: Learning title: TaskManagementExample type: text/vnd.tiddlywiki -TiddlyWiki5 can be used as a simple task management system without further customisation. The idea is that tasks be tagged `task`, with those that are completed also tagged `done`. In this way it is straightforward to generate task lists. +TiddlyWiki5 can be used as a simple task management system without further customisation.
The idea is that tasks be tagged `task`, with those that are completed also tagged `done`. In this way it is straightforward to generate task lists. <<.tip """There is [[an enhanced version of this demo|TaskManagementExample (Draggable)]] that adds the ability to drag and drop the tasks to re-order them.""">> ! Outstanding tasks -<$list filter="[!has[draft.of]tag[task]!tag[done]sort[created]]"> - -<$checkbox tag="done"> <$link/> - +<$macrocall $name='wikitext-example-without-html' +src="""<$list filter="[!has[draft.of]tag[task]!tag[done]sort[created]]"> +<$checkbox tag="done"> <$link/>
+"""/> ! Completed tasks -<$list filter="[!has[draft.of]tag[task]tag[done]sort[created]]"> - -<$checkbox tag="done"> ~~<$link/>~~ - +<$macrocall $name='wikitext-example-without-html' +src="""<$list filter="[!has[draft.of]tag[task]tag[done]sort[created]]"> +<$checkbox tag="done"> ~~<$link/>~~
+"""/> diff --git a/editions/tw5.com/tiddlers/demonstrations/Tasks/TaskManagementExampleDraggable.tid b/editions/tw5.com/tiddlers/demonstrations/Tasks/TaskManagementExampleDraggable.tid index 4ec1de69a..17e7be354 100644 --- a/editions/tw5.com/tiddlers/demonstrations/Tasks/TaskManagementExampleDraggable.tid +++ b/editions/tw5.com/tiddlers/demonstrations/Tasks/TaskManagementExampleDraggable.tid @@ -4,20 +4,24 @@ tags: Learning title: TaskManagementExample (Draggable) type: text/vnd.tiddlywiki -This is a version of the TaskManagementExample enhanced with the ability to drag and drop the task list to re-order them. +This is a version of the TaskManagementExample enhanced with the ability to drag and drop the task list to re-order them.
The list uses a the itemTemplate [[TaskManagementExampleDraggableTemplate]] tiddler, which you will also need to experiment yourself. ! Outstanding tasks -//Drag the tasks to re-order them// +<$macrocall $name='wikitext-example-without-html' +src="""//Drag the tasks to re-order them// <> +"""/> ! Completed tasks -//(Listed in reverse order of completion)// +<$macrocall $name='wikitext-example-without-html' +src="""//(Listed in reverse order of completion)// <$list filter="[!has[draft.of]tag[task]tag[done]sort[modified]]">
<$checkbox tag="done"> ~~<$link/>~~
+"""/> From efe58e41bc6c2f7ee5bc082912f84d94d2fa6848 Mon Sep 17 00:00:00 2001 From: Mario Pietsch Date: Wed, 21 Jan 2026 09:09:14 +0100 Subject: [PATCH 3/4] [DOCS] Fix some typos in "days Operator (Examples)" (#9479) * [DOCS] Fix some typos in "days Operator (Examples)" * Remove created and modified fields from days.tid Remove created and modified fields from days.tid --- editions/tw5.com/tiddlers/filters/examples/days.tid | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/editions/tw5.com/tiddlers/filters/examples/days.tid b/editions/tw5.com/tiddlers/filters/examples/days.tid index 12c336e8d..308f100f6 100644 --- a/editions/tw5.com/tiddlers/filters/examples/days.tid +++ b/editions/tw5.com/tiddlers/filters/examples/days.tid @@ -6,15 +6,13 @@ type: text/vnd.tiddlywiki <<.operator-example 2 "[!days:created[-800]]" "tiddlers created more than 800 days ago">> The filter can be used to highlight new items in a list. For example: <$macrocall - $name="wikitext-example-without-html" src= -""" -
    + $name="wikitext-example-without-html" + src="""
      <$list filter="[tag[ReleaseNotes]!!sort[modified]]">
    • <$link><$view field="title"/> - <$list filter="[days[-180]]"> @@color:red;^^new^^@@ - <$list filter="[days[-500]!days[-180]]"> @@color:black;^^recent^^@@ + <$list filter="[days[-180]]"> @@color:red;^^new^^@@ + <$list filter="[days[-500]!days[-180]]"> @@color:black;^^recent^^@@
    • -
    -"""/> +
"""/> From 70b455773834f44d4febb1ddc01cc3e40283109a Mon Sep 17 00:00:00 2001 From: Mario Pietsch Date: Sun, 25 Jan 2026 16:59:54 +0100 Subject: [PATCH 4/4] [DOCS] Add link to "TiddlyWiki Archive" tiddler to the TiddlyWiki Releases info (#9613) --- .../tiddlers/releasenotes/TiddlyWiki Releases.tid | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/editions/tw5.com/tiddlers/releasenotes/TiddlyWiki Releases.tid b/editions/tw5.com/tiddlers/releasenotes/TiddlyWiki Releases.tid index 57c335265..d8d5281d4 100644 --- a/editions/tw5.com/tiddlers/releasenotes/TiddlyWiki Releases.tid +++ b/editions/tw5.com/tiddlers/releasenotes/TiddlyWiki Releases.tid @@ -7,12 +7,14 @@ type: text/vnd.tiddlywiki Here are the details of recent releases of TiddlyWiki5. See [[TiddlyWiki5 Versioning]] for details of how releases are named. -If you are using node.js, you can also install prior versions like this: +* An overview about all TW versions can be found at the [[TiddlyWiki Archive]]. -> npm install -g tiddlywiki@5.1.13 +* If you are using Node.js, you can also install ''prior'' versions like this: -(BetaReleases and AlphaReleases are listed separately). +*> npm install -g tiddlywiki@5.3.0 + +* BetaReleases and AlphaReleases are listed separately <$list filter="[tag[ReleaseNotes]!sort[created]limit[1]]"> <$macrocall $name="tabs" tabsList="[tag[ReleaseNotes]!sort[created]]" default={{!!title}} class="tc-vertical" template="ReleaseTemplate" /> - + \ No newline at end of file