From 8051a3dea21578ce8b5d7f1e90a0b1ef1eb23d4a Mon Sep 17 00:00:00 2001 From: TonyM <31584658+AnthonyMuscio@users.noreply.github.com> Date: Thu, 14 Dec 2023 05:12:41 +1100 Subject: [PATCH 1/6] Update WidgetMessage_ tm-delete-tiddler.tid (#3924) Adding the line Use the [[ActionDeleteTiddlerWidget]] to delete a named tiddler without getting the "Do you wish to delete the tiddler" prompt. However If someone knows how to make "WidgetMessage: tm-delete-tiddler" do this please explain. --- .../tiddlers/messages/WidgetMessage_ tm-delete-tiddler.tid | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/editions/tw5.com/tiddlers/messages/WidgetMessage_ tm-delete-tiddler.tid b/editions/tw5.com/tiddlers/messages/WidgetMessage_ tm-delete-tiddler.tid index 879faaa10..b3d95e7e5 100644 --- a/editions/tw5.com/tiddlers/messages/WidgetMessage_ tm-delete-tiddler.tid +++ b/editions/tw5.com/tiddlers/messages/WidgetMessage_ tm-delete-tiddler.tid @@ -11,4 +11,6 @@ The `tm-delete-tiddler` message deletes the specified tiddler and removes it fro |param |Title of the tiddler that is to be deleted | |tiddlerTitle |Fallback title that is used if ''param'' isn't specified (automatically set by the ButtonWidget) | -The delete tiddler message is usually generated with the ButtonWidget and is handled by the NavigatorWidget. \ No newline at end of file +The delete tiddler message is usually generated with the ButtonWidget and is handled by the NavigatorWidget. + +Use the [[ActionDeleteTiddlerWidget]] to delete a named tiddler without getting the "Do you wish to delete the tiddler" prompt. From cdfa4b60825a22be1779ffab1e6a25e5a2a2e6a8 Mon Sep 17 00:00:00 2001 From: TonyM <31584658+AnthonyMuscio@users.noreply.github.com> Date: Thu, 14 Dec 2023 05:16:57 +1100 Subject: [PATCH 2/6] Update ViewWidget.tid to include common variants (#3895) * Update ViewWidget.tid to include common varients The provision of common variates to the view widget provides new an experience user examples of the different variants of the ViewWidget. The copy to clipboad method allows each variant to be quickly accessed and pasted into their wiki. To facilitate this a new macro wikitext-example-compact has being added to $:/editions/tw5.com/wikitext-macros * Update ViewWidget.tid Two colons added to maintain indenting in new content. --- editions/tw5.com/tiddlers/widgets/ViewWidget.tid | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/editions/tw5.com/tiddlers/widgets/ViewWidget.tid b/editions/tw5.com/tiddlers/widgets/ViewWidget.tid index ca5231d83..fcc842f11 100644 --- a/editions/tw5.com/tiddlers/widgets/ViewWidget.tid +++ b/editions/tw5.com/tiddlers/widgets/ViewWidget.tid @@ -44,6 +44,19 @@ The following formats can be specified in the `format` attribute: To display the field content as regular WikiText, for example with working links, use the [[TranscludeWidget]] instead. +;The following examples are common variants + +!!!!View the value in a field of a named tiddler +:<'>> +!!!!View the value in a date field of the currentTiddler as a relative date +:<'>> +!!!!View the value in a date field of the currentTiddler as formated date +:<'>> +!!!!View a date field as its raw value +:<'>> +!!!!See ''String Operators'' in [[Filter Operators]] +:To apply similar formatting within Filters, including from titles and variables + ! SubTiddler Access The view widget allows access to the individual tiddlers stored within a [[plugin|Plugins]]. From f697f008b1821c0c8ebf60cb3a17389b8efcf4e3 Mon Sep 17 00:00:00 2001 From: Drevarr Date: Thu, 14 Dec 2023 03:22:33 -0500 Subject: [PATCH 3/6] Signing the CLA (#7886) --- licenses/cla-individual.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/licenses/cla-individual.md b/licenses/cla-individual.md index 04fb7a0c3..30136b6bb 100644 --- a/licenses/cla-individual.md +++ b/licenses/cla-individual.md @@ -557,3 +557,5 @@ Wang Ke, @Gk0Wk, 2023/10/17 @frittro, 2023/10/27 @etardiff, 2023/12/10 + +John Long, @drevarr, 2023/12/12 From e131dd3761dde0abe1020cbfe624664425cf4954 Mon Sep 17 00:00:00 2001 From: Jeremy Ruston Date: Thu, 14 Dec 2023 09:05:48 +0000 Subject: [PATCH 4/6] Revert "Update ViewWidget.tid to include common variants (#3895)" This reverts commit cdfa4b60825a22be1779ffab1e6a25e5a2a2e6a8. --- editions/tw5.com/tiddlers/widgets/ViewWidget.tid | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/editions/tw5.com/tiddlers/widgets/ViewWidget.tid b/editions/tw5.com/tiddlers/widgets/ViewWidget.tid index fcc842f11..ca5231d83 100644 --- a/editions/tw5.com/tiddlers/widgets/ViewWidget.tid +++ b/editions/tw5.com/tiddlers/widgets/ViewWidget.tid @@ -44,19 +44,6 @@ The following formats can be specified in the `format` attribute: To display the field content as regular WikiText, for example with working links, use the [[TranscludeWidget]] instead. -;The following examples are common variants - -!!!!View the value in a field of a named tiddler -:<'>> -!!!!View the value in a date field of the currentTiddler as a relative date -:<'>> -!!!!View the value in a date field of the currentTiddler as formated date -:<'>> -!!!!View a date field as its raw value -:<'>> -!!!!See ''String Operators'' in [[Filter Operators]] -:To apply similar formatting within Filters, including from titles and variables - ! SubTiddler Access The view widget allows access to the individual tiddlers stored within a [[plugin|Plugins]]. From aaf7dc355d0cba21735da0e60ab333955479f2d8 Mon Sep 17 00:00:00 2001 From: Jeremy Ruston Date: Thu, 14 Dec 2023 09:40:21 +0000 Subject: [PATCH 5/6] Add docs for "remappable' attribute of genesis widget --- editions/tw5.com/tiddlers/widgets/GenesisWidget.tid | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/editions/tw5.com/tiddlers/widgets/GenesisWidget.tid b/editions/tw5.com/tiddlers/widgets/GenesisWidget.tid index 695345251..7379ef3c4 100644 --- a/editions/tw5.com/tiddlers/widgets/GenesisWidget.tid +++ b/editions/tw5.com/tiddlers/widgets/GenesisWidget.tid @@ -1,6 +1,6 @@ caption: genesis created: 20221101100729587 -modified: 20230115101800345 +modified: 20231214093716044 tags: Widgets title: GenesisWidget type: text/vnd.tiddlywiki @@ -15,6 +15,7 @@ The content of the <<.wid genesis>> widget is used as the content of the dynamic |!Attribute |!Description | |$type |The type of widget or element to create (an initial `$` indicates a widget, otherwise an HTML element will be created) | +|$remappable |Set to "no" to prevent the generated widget from being affected by any custom widget overrides. Needed when invoking the original widget within a custom widget definition | |$names |An optional filter evaluating to the names of a list of attributes to be applied to the widget | |$values |An optional filter evaluating to the values corresponding to the list of names specified in <<.attr $names>> | |$mode |An optional override of the parsing mode. May be "inline" or "block" | From c6a72875baad7ea7dc0589fbe760a1d62faa0c62 Mon Sep 17 00:00:00 2001 From: Jeremy Ruston Date: Sun, 17 Dec 2023 18:57:16 +0000 Subject: [PATCH 6/6] Docs: Warn about textual substitution with nested macros --- editions/tw5.com/tiddlers/pragmas/Pragma_ _define.tid | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/editions/tw5.com/tiddlers/pragmas/Pragma_ _define.tid b/editions/tw5.com/tiddlers/pragmas/Pragma_ _define.tid index 6058b7905..883f1e450 100644 --- a/editions/tw5.com/tiddlers/pragmas/Pragma_ _define.tid +++ b/editions/tw5.com/tiddlers/pragmas/Pragma_ _define.tid @@ -1,5 +1,5 @@ created: 20220917112233317 -modified: 20230419103154328 +modified: 20231217185535715 tags: Pragmas title: Pragma: \define type: text/vnd.tiddlywiki @@ -48,4 +48,6 @@ $caption$ <> """>> +<<.warning """If macros are nested, textual substitution will only occur for the outermost macro. Thi is because by the time the inner macros are processed all the substitutions will have already occurred""">> + A more formal [[presentation|Macro Definition Syntax]] of this syntax is also available.