tiddlywiki 5.2.3 → 5.2.5
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 +11 -2
- package/bin/test.sh +1 -0
- package/boot/boot.js +9 -6
- package/core/images/layout-button.tid +4 -0
- package/core/images/mastodon.tid +6 -0
- package/core/language/en-GB/Buttons.multids +4 -0
- package/core/language/en-GB/ControlPanel.multids +3 -3
- package/core/language/en-GB/Fields.multids +2 -2
- package/core/language/en-GB/GettingStarted.tid +4 -3
- package/core/language/en-GB/Help/commands.tid +18 -0
- package/core/language/en-GB/Misc.multids +1 -0
- package/core/modules/commands/commands.js +42 -0
- package/core/modules/editor/engines/framed.js +12 -1
- package/core/modules/editor/factory.js +2 -2
- package/core/modules/filters/format/json.js +35 -0
- package/core/modules/filters/is/variable.js +2 -2
- package/core/modules/filters/json-ops.js +186 -0
- package/core/modules/filters/variables.js +9 -3
- package/core/modules/filters.js +15 -6
- package/core/modules/keyboard.js +13 -1
- package/core/modules/parsers/csvparser.js +25 -17
- package/core/modules/parsers/wikiparser/rules/macrodef.js +1 -1
- package/core/modules/parsers/wikiparser/rules/parsermode.js +68 -0
- package/core/modules/parsers/wikiparser/rules/styleinline.js +3 -3
- package/core/modules/parsers/wikiparser/wikiparser.js +4 -2
- package/core/modules/server/routes/put-tiddler.js +10 -0
- package/core/modules/startup/startup.js +5 -1
- package/core/modules/utils/csv.js +101 -23
- package/core/modules/utils/dom/dom.js +17 -2
- package/core/modules/utils/dom/modal.js +6 -0
- package/core/modules/utils/dom/popup.js +69 -6
- package/core/modules/utils/fakedom.js +2 -2
- package/core/modules/utils/linked-list.js +79 -75
- package/core/modules/utils/logger.js +3 -1
- package/core/modules/utils/parsetree.js +20 -10
- package/core/modules/utils/utils.js +3 -0
- package/core/modules/widgets/action-deletefield.js +2 -2
- package/core/modules/widgets/action-popup.js +10 -8
- package/core/modules/widgets/button.js +7 -2
- package/core/modules/widgets/checkbox.js +12 -5
- package/core/modules/widgets/error.js +63 -0
- package/core/modules/widgets/genesis.js +108 -0
- package/core/modules/widgets/importvariables.js +4 -1
- package/core/modules/widgets/keyboard.js +4 -0
- package/core/modules/widgets/let.js +3 -5
- package/core/modules/widgets/reveal.js +11 -10
- package/core/modules/widgets/select.js +9 -0
- package/core/modules/widgets/transclude.js +3 -5
- package/core/modules/widgets/widget.js +44 -18
- package/core/palettes/Blanca.tid +2 -0
- package/core/palettes/Blue.tid +2 -0
- package/core/palettes/BrightMute.tid +2 -0
- package/core/palettes/ContrastDark.tid +2 -0
- package/core/palettes/ContrastLight.tid +2 -0
- package/core/palettes/CupertinoDark.tid +2 -0
- package/core/palettes/DarkPhotos.tid +2 -0
- package/core/palettes/DesertSand.tid +2 -0
- package/core/palettes/GruvBoxDark.tid +2 -0
- package/core/palettes/Nord.tid +2 -0
- package/core/palettes/Rocker.tid +2 -0
- package/core/palettes/SolarFlare.tid +2 -0
- package/core/palettes/SolarizedDark.tid +2 -0
- package/core/palettes/SolarizedLight.tid +2 -0
- package/core/palettes/SpartanDay.tid +2 -0
- package/core/palettes/SpartanNight.tid +2 -0
- package/core/palettes/Twilight.tid +2 -0
- package/core/palettes/Vanilla.tid +2 -0
- package/core/templates/external-js/save-all-external-js.tid +4 -2
- package/core/templates/external-js/save-offline-external-js.tid +4 -2
- package/core/templates/single.tiddler.window.tid +1 -1
- package/core/ui/Actions/new-image.tid +1 -7
- package/core/ui/AdvancedSearch/FilterButtons/delete.tid +3 -3
- package/core/ui/AdvancedSearch/FilterButtons/dropdown.tid +2 -2
- package/core/ui/ControlPanel/Basics/retain-story-ordering-button.tid +3 -0
- package/core/ui/ControlPanel/Basics.tid +3 -2
- package/core/ui/EditTemplate/Preview/output.tid +1 -1
- package/core/ui/EditTemplate/body/default.tid +1 -1
- package/core/ui/EditTemplate/fields.tid +12 -2
- package/core/ui/EditTemplate.tid +7 -2
- package/core/ui/ImportListing.tid +5 -5
- package/core/ui/KeyboardShortcuts/advanced-search.tid +1 -1
- package/core/ui/PageControls/layout.tid +15 -0
- package/core/ui/PageTemplate.tid +1 -4
- package/core/ui/SideBar/More.tid +2 -2
- package/core/ui/SwitcherModal.tid +1 -0
- package/core/ui/TagManager.tid +75 -63
- package/core/ui/ViewTemplate/unfold.tid +6 -2
- package/core/ui/ViewTemplate.tid +1 -1
- package/core/wiki/config/DefaultTiddlersRetainStory.tid +3 -0
- package/core/wiki/config/OfficialPluginLibrary.tid +1 -1
- package/core/wiki/config/PageControlButtons.multids +1 -0
- package/core/wiki/macros/list.tid +7 -7
- package/core/wiki/macros/timeline.tid +6 -9
- package/core/wiki/macros/toc.tid +12 -8
- package/core/wiki/tags/PageControls.tid +1 -1
- package/editions/de-AT/tiddlywiki.info +0 -1
- package/editions/de-AT-server/tiddlywiki.info +0 -1
- package/editions/de-DE/tiddlywiki.info +0 -1
- package/editions/dev/tiddlers/HelloThere.tid +2 -1
- package/editions/dev/tiddlers/How to run a local plugin library for testing.tid +42 -0
- package/editions/dev/tiddlers/javascript-widget-tutorial/Child widgets tutorial.tid +140 -0
- package/editions/dev/tiddlers/javascript-widget-tutorial/Do nothing widget demo.tid +22 -0
- package/editions/dev/tiddlers/javascript-widget-tutorial/Do nothing widget tutorial.tid +25 -0
- package/editions/dev/tiddlers/javascript-widget-tutorial/Hello World demo.tid +23 -0
- package/editions/dev/tiddlers/javascript-widget-tutorial/Hello World widget tutorial.tid +18 -0
- package/editions/dev/tiddlers/javascript-widget-tutorial/Javascript Widget Tutorial.tid +37 -0
- package/editions/dev/tiddlers/javascript-widget-tutorial/Undefined widget demo.tid +18 -0
- package/editions/dev/tiddlers/javascript-widget-tutorial/Undefined widget tutorial.tid +11 -0
- package/editions/dev/tiddlers/javascript-widget-tutorial/Widget attributes demo I.tid +48 -0
- package/editions/dev/tiddlers/javascript-widget-tutorial/Widget attributes demo II.tid +48 -0
- package/editions/dev/tiddlers/javascript-widget-tutorial/Widget attributes tutorial part I.tid +50 -0
- package/editions/dev/tiddlers/javascript-widget-tutorial/Widget attributes tutorial part II.tid +33 -0
- package/editions/dev/tiddlers/javascript-widget-tutorial/Widget refresh demo I.tid +44 -0
- package/editions/dev/tiddlers/javascript-widget-tutorial/Widget refresh demo II.tid +40 -0
- package/editions/dev/tiddlers/javascript-widget-tutorial/Widget refresh demo III.tid +50 -0
- package/editions/dev/tiddlers/javascript-widget-tutorial/Widget refresh tutorial part I.tid +47 -0
- package/editions/dev/tiddlers/javascript-widget-tutorial/Widget refresh tutorial part II.tid +37 -0
- package/editions/dev/tiddlers/javascript-widget-tutorial/Widget refresh tutorial part III.tid +26 -0
- package/editions/dev/tiddlers/javascript-widget-tutorial/domwidget.js +47 -0
- package/editions/dev/tiddlers/javascript-widget-tutorial/domwidget.js.meta +6 -0
- package/editions/dev/tiddlers/javascript-widget-tutorial/donothing.js +16 -0
- package/editions/dev/tiddlers/javascript-widget-tutorial/donothing.js.meta +6 -0
- package/editions/dev/tiddlers/javascript-widget-tutorial/hello-attribute-optimized.js +51 -0
- package/editions/dev/tiddlers/javascript-widget-tutorial/hello-attribute-optimized.js.meta +6 -0
- package/editions/dev/tiddlers/javascript-widget-tutorial/hello-attribute.js +47 -0
- package/editions/dev/tiddlers/javascript-widget-tutorial/hello-attribute.js.meta +6 -0
- package/editions/dev/tiddlers/javascript-widget-tutorial/hello.js +35 -0
- package/editions/dev/tiddlers/javascript-widget-tutorial/hello.js.meta +6 -0
- package/editions/dev/tiddlers/javascript-widget-tutorial/refreshcount.js +43 -0
- package/editions/dev/tiddlers/javascript-widget-tutorial/refreshcount.js.meta +6 -0
- package/editions/dev/tiddlers/javascript-widget-tutorial/tiddlerfield-norefresh.js +36 -0
- package/editions/dev/tiddlers/javascript-widget-tutorial/tiddlerfield-norefresh.js.meta +6 -0
- package/editions/dev/tiddlers/javascript-widget-tutorial/tiddlerfield.js +46 -0
- package/editions/dev/tiddlers/javascript-widget-tutorial/tiddlerfield.js.meta +6 -0
- package/editions/dev/tiddlywiki.info +2 -1
- package/editions/es-ES/tiddlers/GettingStarted_-_Chrome.tid +1 -1
- package/editions/es-ES/tiddlers/Saving_with_the_HTML5_fallback_saver.tid +1 -27
- package/editions/es-ES/tiddlers/Saving_with_the_HTML5_saver.tid +35 -0
- package/editions/fr-FR/tiddlers/$__editions_tw5.com_doc-macros.tid +1 -1
- package/editions/fr-FR/tiddlers/GettingStarted - Chrome.tid +1 -1
- package/editions/fr-FR/tiddlers/Saving with the HTML5 saver.tid +23 -0
- package/editions/fr-FR/tiddlers/saving/Saving with the HTML5 fallback saver.tid +1 -22
- package/editions/fr-FR/tiddlers/system/$__core_macros_list.tid +113 -0
- package/editions/fr-FR/tiddlers/system/$__core_macros_tag.tid +39 -0
- package/editions/fr-FR/tiddlers/system/$__core_ui_TagPickerTagTemplate.tid +25 -0
- package/editions/full/tiddlywiki.info +0 -1
- package/editions/introduction/tiddlywiki.info +0 -1
- package/editions/pluginlibrary/tiddlers/GettingStarted.tid +45 -0
- package/editions/pluginlibrary/tiddlers/PrereleaseLocalPluginLibrary.tid +6 -0
- package/editions/pluginlibrary/tiddlers/meta/SiteSubtitle.tid +3 -0
- package/editions/pluginlibrary/tiddlers/meta/SiteTitle.tid +3 -0
- package/editions/pluginlibrary/tiddlers/system/$__themes_tiddlywiki_vanilla_options_sidebarlayout.tid +3 -0
- package/editions/pluginlibrary/tiddlywiki.info +7 -0
- package/editions/prerelease/tiddlers/Release 5.2.6.tid +107 -0
- package/editions/prerelease/tiddlers/system/PrereleaseOfficialPluginLibrary.tid +1 -1
- package/editions/prerelease/tiddlers/system/TiddlyWiki Pre-release.tid +5 -1
- package/editions/test/tiddlers/tests/data/csv-cases.tid +282 -0
- package/editions/test/tiddlers/tests/data/filters/Recursion.tid +15 -0
- package/editions/test/tiddlers/tests/data/filters/fake-variables.tid +27 -0
- package/editions/test/tiddlers/tests/data/genesis-widget/DollarSigns.tid +14 -0
- package/editions/test/tiddlers/tests/data/genesis-widget/MultipleAttributes.tid +14 -0
- package/editions/test/tiddlers/tests/data/genesis-widget/Simple.tid +14 -0
- package/editions/test/tiddlers/tests/data/macros/NestedMacros.tid +36 -0
- package/editions/test/tiddlers/tests/data/pragmas/Parsermode.tid +36 -0
- package/editions/test/tiddlers/tests/data/transclude/Recursion.tid +13 -0
- package/editions/test/tiddlers/tests/modules/utils/test-csv.js +33 -0
- package/editions/test/tiddlers/tests/test-checkbox-widget.js +35 -1
- package/editions/test/tiddlers/tests/test-json-filters.js +112 -0
- package/editions/test/tiddlers/tests/test-linked-list.js +42 -2
- package/editions/test/tiddlers/tests/test-popup.js +63 -0
- package/editions/test/tiddlers/tests/test-utils.js +1 -0
- package/editions/test/tiddlers/tests/test-wikitext.js +16 -0
- package/editions/test/tiddlywiki.info +2 -1
- package/editions/translators/tiddlers/system/PageControlButtonsVisibility.multids +1 -0
- package/editions/translators/tiddlywiki.info +0 -1
- package/editions/tw.org/tiddlers/Code of Conduct.tid +4 -1
- package/editions/tw.org/tiddlers/Fundraising.tid +2 -2
- package/editions/tw5.com/tiddlers/Tables in WikiText CSS Utility Classes.tid +81 -0
- package/editions/tw5.com/tiddlers/_tw_shared/favicons/markplace.png +0 -0
- package/editions/tw5.com/tiddlers/_tw_shared/favicons/markplace.png.meta +3 -0
- package/editions/tw5.com/tiddlers/_tw_shared/sites/marketplace.tid +6 -0
- package/editions/tw5.com/tiddlers/_tw_shared/tags-TiddlyWikiSites.tid +1 -1
- package/editions/tw5.com/tiddlers/about/Funding TiddlyWiki.tid +19 -0
- package/editions/tw5.com/tiddlers/about/Open Collective.tid +14 -0
- package/editions/tw5.com/tiddlers/commands/CommandsCommand.tid +8 -0
- package/editions/tw5.com/tiddlers/commands/RenderTiddlerCommand.tid +2 -0
- package/editions/tw5.com/tiddlers/commands/RenderTiddlersCommand.tid +2 -0
- package/editions/tw5.com/tiddlers/commands/SaveTiddlerCommand.tid +2 -0
- package/editions/tw5.com/tiddlers/commands/SaveTiddlersCommand.tid +2 -0
- package/editions/tw5.com/tiddlers/community/plugins/GSD5.tid +2 -2
- package/editions/tw5.com/tiddlers/community/plugins/_JD Mobile Layout plugin_ by JD.tid +0 -1
- package/editions/tw5.com/tiddlers/community/resources/RegExp in Tiddlywiki by Mohammad.tid +1 -1
- package/editions/tw5.com/tiddlers/community/resources/_Dropboard_ by Reid Gould.tid +0 -1
- package/editions/tw5.com/tiddlers/community/resources/_Hacks_ by Thomas Elmiger.tid +0 -2
- package/editions/tw5.com/tiddlers/community/resources/_MathCell_ by Ste Wilson.tid +0 -1
- package/editions/tw5.com/tiddlers/community/resources/_TiddlyServer_ by Matt Lauber.tid +0 -1
- package/editions/tw5.com/tiddlers/community/resources/_X3DOM for TiddlyWiki 5_ by Jamal Wills.tid +0 -1
- package/editions/tw5.com/tiddlers/community/resources/_file-backups_ Extension Firefox by pmario.tid +1 -1
- package/editions/tw5.com/tiddlers/community/resources/_savetiddlers_ Extension for Chrome and Firefox by buggyj.tid +1 -1
- package/editions/tw5.com/tiddlers/concepts/CoordinateSystems.tid +42 -0
- package/editions/tw5.com/tiddlers/concepts/KeyboardShortcutTiddler.tid +2 -0
- package/editions/tw5.com/tiddlers/definitions/Federatial.tid +13 -1
- package/editions/tw5.com/tiddlers/definitions/HTML Block Elements.tid +9 -0
- package/editions/tw5.com/tiddlers/definitions/TiddlyWikiClassic.tid +3 -1
- package/editions/tw5.com/tiddlers/demonstrations/TableOfContentsMacro Selective Expandable Example custom icons.tid +16 -0
- package/editions/tw5.com/tiddlers/demonstrations/Tasks/TaskManagementExampleDraggable.tid +1 -1
- package/editions/tw5.com/tiddlers/features/DateFormat.tid +27 -3
- package/editions/tw5.com/tiddlers/features/JSON in TiddlyWiki.tid +1 -1
- package/editions/tw5.com/tiddlers/features/Modals.tid +3 -0
- package/editions/tw5.com/tiddlers/filters/examples/format Operator (Examples).tid +5 -2
- package/editions/tw5.com/tiddlers/filters/format.tid +5 -4
- package/editions/tw5.com/tiddlers/filters/jsonextract.tid +66 -0
- package/editions/tw5.com/tiddlers/filters/jsonget.tid +93 -0
- package/editions/tw5.com/tiddlers/filters/jsonindexes.tid +65 -0
- package/editions/tw5.com/tiddlers/filters/jsontype.tid +74 -0
- package/editions/tw5.com/tiddlers/gettingstarted/GettingStarted - Chrome.tid +2 -2
- package/editions/tw5.com/tiddlers/gettingstarted/GettingStarted.tid +3 -7
- package/editions/tw5.com/tiddlers/hellothere/HelloThere.tid +23 -22
- package/editions/tw5.com/tiddlers/hellothere/HelloThumbnail.tid +1 -1
- package/editions/tw5.com/tiddlers/hellothere/thumbnails/HelloThumbnail - Funding.tid +10 -0
- package/editions/tw5.com/tiddlers/hellothere/thumbnails/HelloThumbnail - Grok TiddlyWiki.tid +2 -0
- package/editions/tw5.com/tiddlers/hellothere/thumbnails/HelloThumbnail - Introduction Video.tid +2 -0
- package/editions/tw5.com/tiddlers/hellothere/thumbnails/HelloThumbnail - Latest Version.tid +9 -1
- package/editions/tw5.com/tiddlers/hellothere/thumbnails/HelloThumbnail - Marketplace.tid +10 -0
- package/editions/tw5.com/tiddlers/hellothere/thumbnails/HelloThumbnail - TiddlyWikiLinks.tid +3 -1
- package/editions/tw5.com/tiddlers/hellothere/thumbnails/HelloThumbnail_-_Federatial.tid +11 -0
- package/editions/tw5.com/tiddlers/hiddensettings/Hidden Setting Default Story Ordering.tid +4 -0
- package/editions/tw5.com/tiddlers/hiddensettings/Hidden Setting Sync System Tiddlers From Server.tid +13 -0
- package/editions/tw5.com/tiddlers/hiddensettings/Hidden Setting SyncLogging.tid +13 -0
- package/editions/tw5.com/tiddlers/hiddensettings/Hidden Setting_ More Tabs Horizontal.tid +7 -0
- package/editions/tw5.com/tiddlers/howtos/How to create keyboard shortcuts.tid +2 -0
- package/editions/tw5.com/tiddlers/howtos/Reading data from JSON tiddlers.tid +10 -1
- package/editions/tw5.com/tiddlers/images/Federatial.png +0 -0
- package/editions/tw5.com/tiddlers/images/Federatial.png.meta +3 -0
- package/editions/tw5.com/tiddlers/images/Funding.png +0 -0
- package/editions/tw5.com/tiddlers/images/{TiddlyMap.png.meta → Funding.png.meta} +1 -1
- package/editions/tw5.com/tiddlers/images/Marketplace Banner.png +0 -0
- package/editions/tw5.com/tiddlers/images/Marketplace Banner.png.meta +3 -0
- package/editions/tw5.com/tiddlers/images/New Release Banner.png +0 -0
- package/editions/tw5.com/tiddlers/macros/ListMacro.tid +3 -1
- package/editions/tw5.com/tiddlers/macros/TableOfContentsMacro.tid +36 -2
- package/editions/tw5.com/tiddlers/marketplace/TiddlyWiki Marketplace.tid +18 -0
- package/editions/tw5.com/tiddlers/mechanisms/PopupMechanism.tid +1 -0
- package/editions/tw5.com/tiddlers/messages/WidgetMessage_ tm-modal.tid +4 -2
- package/editions/tw5.com/tiddlers/messages/WidgetMessage_ tm-new-tiddler.tid +1 -1
- package/editions/tw5.com/tiddlers/nodejs/Installing TiddlyWiki on Node.js.tid +2 -2
- package/editions/tw5.com/tiddlers/pragmas/Pragma_ _parsermode.tid +17 -0
- package/editions/tw5.com/tiddlers/releasenotes/Release 5.2.4.tid +144 -0
- package/editions/tw5.com/tiddlers/releasenotes/Release 5.2.5.tid +25 -0
- package/editions/tw5.com/tiddlers/releasenotes/Releases.tid +1 -1
- package/editions/tw5.com/tiddlers/saving/Emergency Tiddler Export.tid +1 -1
- package/editions/tw5.com/tiddlers/saving/Saving on TiddlyHost.tid +1 -1
- package/editions/tw5.com/tiddlers/saving/Saving on TiddlySpot.tid +0 -1
- package/editions/tw5.com/tiddlers/saving/Saving with Polly.tid +1 -0
- package/editions/tw5.com/tiddlers/saving/Saving with the HTML5 fallback saver.tid +3 -23
- package/editions/tw5.com/tiddlers/saving/Saving with the HTML5 saver.tid +27 -0
- package/editions/tw5.com/tiddlers/saving/Saving.tid +12 -5
- package/editions/tw5.com/tiddlers/saving/TiddlyBucket - Save to AWS or Google Storage.tid +15 -0
- package/editions/tw5.com/tiddlers/system/doc-macros.tid +1 -1
- package/editions/tw5.com/tiddlers/system/tw5.com-card-template.tid +1 -16
- package/editions/tw5.com/tiddlers/system/tw5.com-styles.tid +168 -40
- package/editions/tw5.com/tiddlers/system/version-macros.tid +3 -4
- package/editions/tw5.com/tiddlers/system/wikitext-macros.tid +43 -15
- package/editions/tw5.com/tiddlers/systemtags/SystemTag_ $__tags_ClassFilters_PageTemplate.tid +9 -0
- package/editions/tw5.com/tiddlers/systemtags/SystemTag_ $__tags_ClassFilters_TiddlerTemplate.tid +9 -0
- package/editions/tw5.com/tiddlers/systemtags/SystemTag_ $__tags_Filter.tid +2 -2
- package/editions/tw5.com/tiddlers/testimonials/Testimonials - Joe Armstrong.tid +8 -0
- package/editions/tw5.com/tiddlers/testimonials/Testimonials - Network World.tid +8 -0
- package/editions/tw5.com/tiddlers/testimonials/Testimonials - Product Hunt.tid +6 -0
- package/editions/tw5.com/tiddlers/webserver/Using the external JavaScript template.tid +10 -10
- package/editions/tw5.com/tiddlers/webserver/WebServer API_ Get All Tiddlers.tid +3 -1
- package/editions/tw5.com/tiddlers/widgets/ActionPopupWidget.tid +4 -3
- package/editions/tw5.com/tiddlers/widgets/ButtonWidget.tid +2 -1
- package/editions/tw5.com/tiddlers/widgets/DraggableWidget.tid +2 -1
- package/editions/tw5.com/tiddlers/widgets/ErrorWidget.tid +17 -0
- package/editions/tw5.com/tiddlers/widgets/EventCatcherWidget.tid +4 -3
- package/editions/tw5.com/tiddlers/widgets/GenesisWidget.tid +41 -0
- package/editions/tw5.com/tiddlers/widgets/LetWidget.tid +4 -1
- package/editions/tw5.com/tiddlers/widgets/ScrollableWidget.tid +1 -1
- package/editions/tw5.com/tiddlers/widgets/SelectWidget.tid +1 -0
- package/editions/tw5.com/tiddlers/wikitext/Macro Definitions in WikiText.tid +27 -4
- package/editions/tw5.com/tiddlers/wikitext/Styles and Classes in WikiText.tid +1 -1
- package/editions/tw5.com/tiddlers/wikitext/Table Classes Captions Headers and Footers.tid +20 -0
- package/editions/tw5.com/tiddlers/wikitext/Tables in WikiText.tid +3 -13
- package/editions/tw5.com/tiddlers/wikitext/Utility Classes.tid +20 -0
- package/editions/tw5.com/tiddlers/wikitext/parser/WikiText Parser Modes.tid +1 -1
- package/editions/twitter-archivist/tiddlers/DefaultTiddlers.tid +4 -0
- package/editions/twitter-archivist/tiddlers/HelloThere.tid +9 -0
- package/editions/twitter-archivist/tiddlers/SiteSubtitle.tid +3 -0
- package/editions/twitter-archivist/tiddlers/SiteTitle.tid +3 -0
- package/editions/twitter-archivist/tiddlywiki.info +16 -0
- package/languages/ar-PS/ControlPanel.multids +1 -1
- package/languages/ca-ES/ControlPanel.multids +1 -1
- package/languages/cs-CZ/ControlPanel.multids +1 -1
- package/languages/da-DK/ControlPanel.multids +1 -1
- package/languages/de-DE/Buttons.multids +5 -1
- package/languages/de-DE/ControlPanel.multids +1 -1
- package/languages/de-DE/Help/commands.tid +14 -0
- package/languages/de-DE/Misc.multids +1 -0
- package/languages/el-GR/ControlPanel.multids +1 -1
- package/languages/es-ES/Buttons.multids +91 -87
- package/languages/es-ES/ControlPanel.multids +19 -2
- package/languages/es-ES/Docs/PaletteColours.multids +2 -2
- package/languages/es-ES/EditTemplate.multids +3 -0
- package/languages/es-ES/Fields.multids +6 -5
- package/languages/es-ES/GettingStarted.tid +4 -3
- package/languages/es-ES/Help/commands.tid +18 -0
- package/languages/es-ES/Help/default.tid +4 -1
- package/languages/es-ES/Help/listen.tid +0 -1
- package/languages/es-ES/Help/render.tid +2 -2
- package/languages/es-ES/Import.multids +1 -1
- package/languages/es-ES/Misc.multids +2 -1
- package/languages/es-ES/SideBar.multids +1 -0
- package/languages/es-ES/Snippets/ListByTag.tid +1 -1
- package/languages/fa-IR/ControlPanel.multids +1 -1
- package/languages/fr-FR/Buttons.multids +2 -0
- package/languages/fr-FR/ControlPanel.multids +4 -4
- package/languages/fr-FR/Misc.multids +3 -2
- package/languages/hi-IN/ControlPanel.multids +1 -1
- package/languages/ia-IA/ControlPanel.multids +1 -1
- package/languages/it-IT/ControlPanel.multids +1 -1
- package/languages/ja-JP/ControlPanel.multids +9 -9
- package/languages/ko-KR/ControlPanel.multids +1 -1
- package/languages/nl-NL/ControlPanel.multids +1 -1
- package/languages/pl-PL/Buttons.multids +7 -3
- package/languages/pl-PL/ControlPanel.multids +26 -24
- package/languages/pl-PL/GettingStarted.tid +4 -3
- package/languages/pl-PL/Help/commands.tid +18 -0
- package/languages/pl-PL/Help/render.tid +2 -2
- package/languages/pl-PL/Misc.multids +1 -0
- package/languages/pl-PL/ThemeTweaks.multids +3 -3
- package/languages/pt-BR/ControlPanel.multids +1 -1
- package/languages/pt-PT/ControlPanel.multids +1 -1
- package/languages/ru-RU/ControlPanel.multids +1 -1
- package/languages/sk-SK/ControlPanel.multids +1 -1
- package/languages/sl-SI/ControlPanel.multids +1 -1
- package/languages/sv-SE/ControlPanel.multids +1 -1
- package/languages/zh-Hans/Buttons.multids +36 -32
- package/languages/zh-Hans/ControlPanel.multids +19 -19
- package/languages/zh-Hans/CoreReadMe.tid +1 -1
- package/languages/zh-Hans/Docs/ModuleTypes.multids +2 -2
- package/languages/zh-Hans/Docs/PaletteColours.multids +8 -8
- package/languages/zh-Hans/Fields.multids +7 -7
- package/languages/zh-Hans/Filters.multids +1 -1
- package/languages/zh-Hans/GettingStarted.tid +8 -6
- package/languages/zh-Hans/Help/commands.tid +18 -0
- package/languages/zh-Hans/Help/fetch.tid +6 -6
- package/languages/zh-Hans/Help/init.tid +1 -1
- package/languages/zh-Hans/Help/listen.tid +5 -5
- package/languages/zh-Hans/Help/makelibrary.tid +1 -1
- package/languages/zh-Hans/Help/savetiddlers.tid +1 -1
- package/languages/zh-Hans/Help/server.tid +6 -6
- package/languages/zh-Hans/Help/setfield.tid +3 -3
- package/languages/zh-Hans/Import.multids +1 -1
- package/languages/zh-Hans/Misc.multids +12 -11
- package/languages/zh-Hans/Search.multids +6 -6
- package/languages/zh-Hans/SiteSubtitle.tid +1 -1
- package/languages/zh-Hans/Snippets/ListByTag.tid +1 -1
- package/languages/zh-Hans/ThemeTweaks.multids +7 -7
- package/languages/zh-Hans/TiddlerInfo.multids +2 -2
- package/languages/zh-Hant/Buttons.multids +4 -0
- package/languages/zh-Hant/ControlPanel.multids +2 -2
- package/languages/zh-Hant/Fields.multids +2 -2
- package/languages/zh-Hant/GettingStarted.tid +4 -3
- package/languages/zh-Hant/Help/commands.tid +18 -0
- package/languages/zh-Hant/Misc.multids +1 -0
- package/licenses/cla-individual.md +6 -0
- package/package.json +1 -1
- package/plugins/tiddlywiki/bibtex/deserializer.js +2 -2
- package/plugins/tiddlywiki/codemirror/engine.js +4 -0
- package/plugins/tiddlywiki/dynannotate/docs/readme.tid +2 -2
- package/plugins/tiddlywiki/dynannotate/modules/dynannotate.js +4 -2
- package/plugins/tiddlywiki/help/tabs/Support.tid +6 -2
- package/plugins/tiddlywiki/jasmine/command.js +33 -0
- package/plugins/tiddlywiki/jasmine/help.tid +24 -0
- package/plugins/tiddlywiki/jasmine/jasmine-plugin.js +24 -18
- package/plugins/tiddlywiki/jasmine/readme.tid +31 -1
- package/plugins/tiddlywiki/jasmine/run-wiki-based-tests.js +93 -0
- package/plugins/tiddlywiki/jasmine/startup.js +37 -0
- package/plugins/tiddlywiki/translators/macros/translatableStringEditor.tid +6 -0
- package/plugins/tiddlywiki/translators/system/styles.tid +5 -0
- package/plugins/tiddlywiki/twitter-archivist/Twitter Archives.tid +5 -0
- package/plugins/tiddlywiki/twitter-archivist/archivist.js +319 -0
- package/plugins/tiddlywiki/twitter-archivist/configTiddlerInfoMode.tid +2 -0
- package/plugins/tiddlywiki/twitter-archivist/loadtwitterarchive.js +53 -0
- package/plugins/tiddlywiki/twitter-archivist/macros.tid +222 -0
- package/plugins/tiddlywiki/twitter-archivist/plugin.info +6 -0
- package/plugins/tiddlywiki/twitter-archivist/readme.tid +33 -0
- package/plugins/tiddlywiki/twitter-archivist/spec.tid +62 -0
- package/plugins/tiddlywiki/twitter-archivist/startup.js +38 -0
- package/plugins/tiddlywiki/twitter-archivist/styles.tid +47 -0
- package/plugins/tiddlywiki/twitter-archivist/template-archive.tid +3 -0
- package/plugins/tiddlywiki/twitter-archivist/template-hashtag.tid +3 -0
- package/plugins/tiddlywiki/twitter-archivist/template-tweet.tid +3 -0
- package/plugins/tiddlywiki/twitter-archivist/template-tweeter.tid +3 -0
- package/plugins/tiddlywiki/twitter-archivist/todo.tid +15 -0
- package/plugins/tiddlywiki/twitter-archivist/usage.tid +18 -0
- package/plugins/tiddlywiki/twitter-archivist/view-template-body-cascade.tid +8 -0
- package/plugins/tiddlywiki/upgrade/UpgradeWizard.tid +3 -3
- package/readme.md +1 -1
- package/themes/tiddlywiki/vanilla/base.tid +114 -9
- package/editions/fr-FR/tiddlers/$__core_ui_TagTemplate.tid +0 -33
- package/editions/prerelease/tiddlers/Release 5.2.4.tid +0 -59
- package/editions/tw5.com/tiddlers/hellothere/thumbnails/HelloThumbnail - Classic.tid +0 -6
- package/editions/tw5.com/tiddlers/hellothere/thumbnails/HelloThumbnail - Developers.tid +0 -7
- package/editions/tw5.com/tiddlers/hellothere/thumbnails/HelloThumbnail - Gentle Guide.tid +0 -11
- package/editions/tw5.com/tiddlers/hellothere/thumbnails/HelloThumbnail - HelpingTiddlyWiki.tid +0 -7
- package/editions/tw5.com/tiddlers/hellothere/thumbnails/HelloThumbnail - TWEUM2017.tid +0 -8
- package/editions/tw5.com/tiddlers/hellothere/thumbnails/HelloThumbnail - TiddlyMap.tid +0 -6
- package/editions/tw5.com/tiddlers/images/Dev Thumbnail.jpg +0 -0
- package/editions/tw5.com/tiddlers/images/Dev Thumbnail.jpg.meta +0 -3
- package/editions/tw5.com/tiddlers/images/TiddlyMap.png +0 -0
@@ -0,0 +1,14 @@
|
|
1
|
+
title: Open Collective
|
2
|
+
modified: 20221204165636777
|
3
|
+
created: 20221204165636777
|
4
|
+
tags: About HelloThere [[Open Collective]]
|
5
|
+
|
6
|
+
Open Collective is a platform for transparent fundraising and expenses for projects like TiddlyWiki. It is the official TiddlyWiki community fundraising space.
|
7
|
+
|
8
|
+
https://opencollective.com/tiddlywiki
|
9
|
+
|
10
|
+
You can make a fixed one-time donation, or setup a recurring contribution.
|
11
|
+
|
12
|
+
The main goals listed for donations are to cover basic costs for community infrastructure like the Discourse forum, and a new goal for supporting the TiddlyWiki Core.
|
13
|
+
|
14
|
+
Additionally, the community can make use of the platform for special projects - to pool funds to pay for development, design, or anything else. The [[File Upload Plugin|https://opencollective.com/tiddlywiki/projects/tiddlywiki-file-upload]] is the first of these, and we want to welcome others to launch projects here.
|
@@ -1,9 +1,9 @@
|
|
1
1
|
created: 20141230182901899
|
2
|
-
modified:
|
2
|
+
modified: 20220226205227090
|
3
3
|
tags: [[Community Editions]] [[Community Plugins]]
|
4
4
|
title: "GSD5" by Roma Hicks
|
5
5
|
type: text/vnd.tiddlywiki
|
6
|
-
url: http://gsd5.
|
6
|
+
url: http://gsd5.tiddlyhost.com/
|
7
7
|
|
8
8
|
An adaptation of the [[TiddlyWiki powered GTD® system formerly known as MonkeyGTD|http://mgsd.tiddlyspot.com/]] for TiddlyWiki version 5.
|
9
9
|
|
@@ -5,7 +5,7 @@ title: RegExp in Tiddlywiki by Mohammad
|
|
5
5
|
type: text/vnd.tiddlywiki
|
6
6
|
url: http://tw-regexp.tiddlyspot.com/
|
7
7
|
|
8
|
-
~RegExp in Tiddlywiki contains practical use cases of
|
8
|
+
~RegExp in Tiddlywiki contains practical use cases of regular expression in Tiddlywiki.
|
9
9
|
|
10
10
|
{{!!url}}
|
11
11
|
|
package/editions/tw5.com/tiddlers/community/resources/_file-backups_ Extension Firefox by pmario.tid
CHANGED
@@ -11,7 +11,7 @@ title: "file-backups" Extension for Firefox by pmario
|
|
11
11
|
type: text/vnd.tiddlywiki
|
12
12
|
url: https://github.com/pmario/file-backups
|
13
13
|
|
14
|
-
An extension for Mozilla Firefox that smoothes out some of the friction from ~TiddlyWiki's built-in [[HTML5
|
14
|
+
An extension for Mozilla Firefox that smoothes out some of the friction from ~TiddlyWiki's built-in [[HTML5 saver|Saving with the HTML5 saver]], making it almost as easy to use as ~TiddlyFox. The workflow is intended to work out of the box, without configuration.
|
15
15
|
|
16
16
|
https://github.com/pmario/file-backups which contains links to the documentation and introduction video(s).
|
17
17
|
|
@@ -11,6 +11,6 @@ title: "savetiddlers" Extension for Chrome and Firefox by buggyj
|
|
11
11
|
type: text/vnd.tiddlywiki
|
12
12
|
url: https://github.com/buggyj/savetiddlers
|
13
13
|
|
14
|
-
An extension for Google Chrome and Mozilla Firefox that smoothes out some of the friction from TiddlyWiki's built-in [[HTML5
|
14
|
+
An extension for Google Chrome and Mozilla Firefox that smoothes out some of the friction from TiddlyWiki's built-in [[HTML5 saver|Saving with the HTML5 saver]], making it almost as easy to use as TiddlyFox once it is set up correctly.
|
15
15
|
|
16
16
|
https://github.com/buggyj/savetiddlers
|
@@ -0,0 +1,42 @@
|
|
1
|
+
created: 20220810201659784
|
2
|
+
modified: 20220810201659784
|
3
|
+
tags: Concepts
|
4
|
+
title: Coordinate Systems
|
5
|
+
type: text/vnd.tiddlywiki
|
6
|
+
|
7
|
+
TiddlyWiki (primarily the RevealWidget) supports two coordinate systems for positioning popups (see PopupMechanism to learn more about popups).
|
8
|
+
|
9
|
+
<<.from-version "5.2.4">> We introduced absolute coordinates that may not work with all extensions and plugins. For maximum backwards compatibility, use absolute coordinates only where necessary.
|
10
|
+
|
11
|
+
!! Relative coordinate system
|
12
|
+
|
13
|
+
The default coordinate system is relative to the nearest positioned ancestor element. This is either:
|
14
|
+
|
15
|
+
* an element with a non-static position, or
|
16
|
+
* a ''td'', ''th'', ''table'' in case the element itself is static positioned.
|
17
|
+
|
18
|
+
For tiddlers the nearest positioned ancestor element mostly is the body of the tiddler. Read the next chapter to learn about the exceptions.
|
19
|
+
|
20
|
+
Relative coordinates are expressed in the form ''(x,y,w,h)''. Where ''x'' and ''y'' represent the position and ''w'' and ''h'' the width and height of the element.
|
21
|
+
|
22
|
+
!! Absolute coordinate system
|
23
|
+
|
24
|
+
The relative coordinate system works flawless most of the time. Problems occure if the target element (for example, a popup) and the source element (the triggering button) do not share the same positioned ancherstor element. This is often the case if the popup is declared outside a table and the triggering button is declared within a table cell. In this case the coordiante systems have different origins and the popup will be displayed in the wrong location.
|
25
|
+
|
26
|
+
Absolute coordinates can fix this problem by using the root element of the page (the upper-left corner of the page) as the origin of the coordinate system. Absolute coordinates are expressed in the form ''@(x,y,w,h)''. Where ''x'' and ''y'' represent the position and ''w'' and ''h'' the width and height of the element. The leading ''@''-symbol marks these coordinates as absolute.
|
27
|
+
|
28
|
+
The ButtonWidget has an option (''popupAbsCoords'') to put absolute coordinates into the state tiddler. The DraggableWidget and the EventCatcherWidget provide the absolute coordinate of an event within the attribute `tv-popup-abs-coords`.
|
29
|
+
|
30
|
+
|
31
|
+
!! Example
|
32
|
+
|
33
|
+
The following example shows a popup that is triggerd from within a table cell. The table cell is the nearest positioned ancestor element. The popup was defined outside the table cell. The button using relative coordinates will open the popup in the wrong location because the button and the popup do not agree on the same coordinate system. Using absolute coordinates fixes this problem.
|
34
|
+
|
35
|
+
<<wikitext-example-without-html '<$reveal type="popup" state="$:/state/CoordinateSampleReveal">
|
36
|
+
<div class="tc-drop-down">
|
37
|
+
Popup
|
38
|
+
</div>
|
39
|
+
</$reveal>
|
40
|
+
|
41
|
+
| Table Row 1 |<$button popup="$:/state/CoordinateSampleReveal">Relative coordinates</$button>|
|
42
|
+
| Table Row 2 |<$button popup="$:/state/CoordinateSampleReveal" popupAbsCoords="yes">Absolute coordinates</$button>|'>>
|
@@ -7,6 +7,8 @@ A ''Keyboard Shortcut Tiddler'' is made of three parts:
|
|
7
7
|
* The ''field'' `key` with a [[Keyboard Shortcut Descriptor]] as its ''value''
|
8
8
|
* Actions in its ''text'' field
|
9
9
|
|
10
|
+
<<.tip """<<.from-version "5.2.4">> By default <<.wlink KeyboardWidget>> and text editor shortcuts take priority, which can be circumvented by setting the ''field'' `priority` to `yes`.""">>
|
11
|
+
|
10
12
|
If the [[Keyboard Shortcut Descriptor]] has the form `((my-shortcut))` it's a ''reference'' to a ''configuration Tiddler'' that stores the corresponding [[Keyboard Shortcut|KeyboardShortcuts]]
|
11
13
|
|
12
14
|
In order to make a ''shortcut'' editable through the <<.controlpanel-tab KeyboardShortcuts>> Tab in the $:/ControlPanel it's sufficient to create a tiddler `$:/config/ShortcutInfo/my-shortcut`, where the ''suffix'' is the ''reference'' used for the [[Keyboard Shortcut|KeyboardShortcuts]]
|
@@ -1,9 +1,21 @@
|
|
1
1
|
created: 20130825154900000
|
2
2
|
modified: 20170718160846820
|
3
|
+
modified: 20221204165636777
|
3
4
|
tags: Definitions
|
4
5
|
title: Federatial
|
5
6
|
type: text/vnd.tiddlywiki
|
6
7
|
|
7
|
-
Federatial Limited
|
8
|
+
Federatial Limited helps organisations explore new user interaction concepts through rapid prototyping of sophisticated web-based tools. Services include:
|
9
|
+
|
10
|
+
* Consultancy advice on TiddlyWiki adoption
|
11
|
+
* Development of custom solutions based on TiddlyWiki
|
12
|
+
* Multi-user TiddlyWiki hosting – no outages since 2016
|
13
|
+
* Sponsorship of TiddlyWiki core development
|
8
14
|
|
9
15
|
See https://federatial.com/ and https://twitter.com/federatial for more information.
|
16
|
+
|
17
|
+
JeremyRuston founded Federatial Limited in 2011 to support his work on TiddlyWiki for the advertised 25 years. Since then, Federatial has been privileged to have worked with a wide range of fantastic clients in very different sectors, on some very diverse projects:
|
18
|
+
|
19
|
+
* For a law firm in the Washington DC, developing a custom multi-user ~TiddlyWiki application. It replaced a Microsoft Word document hosted on ~SharePoint that had grown to 18,000 pages and 10 million words, and was increasingly unwieldy to manage. We converted the document to a non-linear TiddlyWiki structure. Startup, searching and browsing are an order of magnitude faster than using Word and ~SharePoint
|
20
|
+
* For a publishing firm in Paris, devising a new TiddlyWiki-based format for interactive electronic publications (including conversion from the established EPUB format). See https://twpub-tools.org/
|
21
|
+
* For a charity in London, maintaining a multiuser instance of TiddlyWiki running on Amazon's serverless infrastructure. It has more than 1,000 users, and over 15,000 tiddlers in 500 interlinked wikis. See https://manuals.annafreud.org/ambit
|
@@ -0,0 +1,9 @@
|
|
1
|
+
created: 20220818091959523
|
2
|
+
modified: 20220818092101307
|
3
|
+
tags: Definitions
|
4
|
+
title: HTML Block Elements
|
5
|
+
type: text/vnd.tiddlywiki
|
6
|
+
|
7
|
+
<<<
|
8
|
+
HTML (Hypertext Markup Language) elements historically were categorized as either "block-level" elements or "inline-level" elements. Since this is a presentational characteristic it is nowadays specified by CSS in the Flow Layout. A Block-level element occupies the entire horizontal space of its parent element (container), and vertical space equal to the height of its contents, thereby creating a "block".
|
9
|
+
<<< https://developer.mozilla.org/en-US/docs/Web/HTML/Block-level_elements
|
@@ -4,6 +4,8 @@ tags: Definitions
|
|
4
4
|
title: TiddlyWikiClassic
|
5
5
|
type: text/vnd.tiddlywiki
|
6
6
|
|
7
|
-
|
7
|
+
[img[TiddlyWiki Classic.png]]
|
8
|
+
|
9
|
+
"~TiddlyWiki Classic" refers to versions prior to 5.0, before TiddlyWiki was completely rewritten. TiddlyWiki Classic is still actively maintained at:
|
8
10
|
|
9
11
|
https://classic.tiddlywiki.com/
|
@@ -0,0 +1,16 @@
|
|
1
|
+
caption: Selective (custom icons)
|
2
|
+
created: 20220819080004663
|
3
|
+
modified: 20220819081049054
|
4
|
+
order: 5
|
5
|
+
tags: table-of-contents-example
|
6
|
+
title: Example Table of Contents: Selectively Expandable (custom icons)
|
7
|
+
type: text/vnd.tiddlywiki
|
8
|
+
|
9
|
+
<<.from-version "5.2.4">> It is possible to define the `toc-open-icon` and `toc-closed-icon` variable, to change the icons used by the toc macros. This setting works for all toc-macro variants
|
10
|
+
|
11
|
+
<$macrocall $name=".example" n="1"
|
12
|
+
eg="""<$let toc-open-icon="$:/core/images/fold-button" toc-closed-icon="$:/core/images/folder">
|
13
|
+
<div class="tc-table-of-contents">
|
14
|
+
<<toc-selective-expandable "Contents">>
|
15
|
+
</div>
|
16
|
+
</$let>"""/>
|
@@ -16,7 +16,7 @@ This is a version of the TaskManagementExample enhanced with the ability to drag
|
|
16
16
|
|
17
17
|
//(Listed in reverse order of completion)//
|
18
18
|
|
19
|
-
<$list filter="[!has[draft.of]tag[task]tag[done]sort[
|
19
|
+
<$list filter="[!has[draft.of]tag[task]tag[done]sort[modified]]">
|
20
20
|
<div>
|
21
21
|
<$checkbox tag="done"> ~~<$link/>~~</$checkbox>
|
22
22
|
</div>
|
@@ -1,14 +1,14 @@
|
|
1
1
|
created: 20140418142957325
|
2
|
-
modified:
|
2
|
+
modified: 20221121131150032
|
3
3
|
tags: Features
|
4
4
|
title: DateFormat
|
5
5
|
type: text/vnd.tiddlywiki
|
6
6
|
|
7
|
-
The default representation of dates is a compact string such as `20211002153802059`. For example, the `created` and `modified` fields are stored like this.
|
7
|
+
The default representation of dates is a compact string such as `20211002153802059`. For example, the `created` and `modified` fields are stored like this.
|
8
8
|
|
9
9
|
The display format for this string can be controlled with a template. For example, transcluding the `modified` field automatically applies a template to display the date as `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:
|
10
10
|
|
11
|
-
`<$view field=modified format=date template
|
11
|
+
`<$view field=modified format=date template="DDth mmm YYYY 0hh:0mm:0ss" />`
|
12
12
|
|
13
13
|
The date string is processed with the following substitutions:
|
14
14
|
|
@@ -46,6 +46,7 @@ The date string is processed with the following substitutions:
|
|
46
46
|
|`am` or `pm` |Lower case AM/PM indicator |
|
47
47
|
|`AM` or `PM` |Upper case AM/PM indicator |
|
48
48
|
|`TZD` |Timezone offset |
|
49
|
+
|`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. |
|
49
50
|
|`\x` |Used to escape a character that would otherwise have special meaning |
|
50
51
|
|`[UTC]`|Time-shift the represented date to UTC. Must be at very start of format string|
|
51
52
|
|
@@ -59,3 +60,26 @@ The `{era:BCE||CE}` notation can specify different strings for years that are ne
|
|
59
60
|
|`DDth MMM YYYY` |16th February 2011 |
|
60
61
|
|`DDth MMM \M\M\M YYYY` |16th February MMM 2011 |
|
61
62
|
|`DDth mmm YYYY 0hh:0mm:0ss` |16th Feb 2011 11:38:42 |
|
63
|
+
|
64
|
+
!! Using `TIMESTAMP` to calculate time difference
|
65
|
+
|
66
|
+
You can calculate the difference between two dates by doing the following:
|
67
|
+
|
68
|
+
# Convert both dates to timestamps
|
69
|
+
# Subtract the later date from the earlier one -- if you don't know which one is earlier use the <<.olink "abs">> operator to get an absolute value after subtraction
|
70
|
+
# Divide the resulting number by the number of milliseconds in your chosen interval
|
71
|
+
|
72
|
+
Here is an example of calculating the number of days that passed between creation and last modification of current tiddler:
|
73
|
+
|
74
|
+
* Fields `modified` and `created` contain their respective datetimes in the format `[UTC]YYYY0MM0DD0hh0mm0ssXXX` so convert them to timestamps
|
75
|
+
* `86400000` is the number of milliseconds in a day (1000 * 60 * 60 * 24)
|
76
|
+
|
77
|
+
<$macrocall $name=".example" n="0" eg="""<$let
|
78
|
+
timestamp-modified={{{ [{!!modified}format:date[TIMESTAMP]] }}}
|
79
|
+
timestamp-created={{{ [{!!created}format:date[TIMESTAMP]] }}}
|
80
|
+
difference-days={{{ [<timestamp-modified>subtract<timestamp-created>divide[86400000]floor[]] }}}>
|
81
|
+
|
82
|
+
* ''Modified date:'' <$text text={{{ [{!!modified}format:date[YYYY-0MM-0DD]] }}}/>
|
83
|
+
* ''Created date:'' <$text text={{{ [{!!created}format:date[YYYY-0MM-0DD]] }}}/>
|
84
|
+
* ''Difference in days:'' <<difference-days>> days
|
85
|
+
</$let>"""/>
|
@@ -13,9 +13,12 @@ The tiddler to be displayed can contain the following optional fields that are u
|
|
13
13
|
|subtitle|The subtitle text for a modal, displayed in a `h3` html tag|
|
14
14
|
|class|An additional class to apply to the modal wrapper|
|
15
15
|
|help|An optional external link that will be displayed at the left of the footer with the text "Help"|
|
16
|
+
|mask-closable|When set to ''yes'' or ''true'', will close the modal dialog when the mask (area outside the modal) is clicked|
|
16
17
|
|
17
18
|
Note that the footer and subtitle fields are not limited to plain text, and wiki text features such as widgets and transclusions can be used as well.
|
18
19
|
|
19
20
|
Modals are displayed with the [[WidgetMessage: tm-modal]].
|
20
21
|
|
21
22
|
<$button message="tm-modal" param="SampleWizard">Open demo modal</$button>
|
23
|
+
|
24
|
+
<<.tip """<$macrocall $name=".from-version" version="5.2.4"/> allow using "mask-closable" field""">>
|
@@ -1,5 +1,5 @@
|
|
1
1
|
created: 20201020102735123
|
2
|
-
modified:
|
2
|
+
modified: 20220611104737314
|
3
3
|
tags: [[Operator Examples]] [[format Operator]]
|
4
4
|
title: format Operator (Examples)
|
5
5
|
type: text/vnd.tiddlywiki
|
@@ -18,9 +18,12 @@ Modified date shown as a relative date:
|
|
18
18
|
A tiddler title with spaces formatted as a title list:
|
19
19
|
<<.operator-example 4 """[[Hello There]format:titlelist[]]""">>
|
20
20
|
|
21
|
-
All tiddler titles tagged with <<tag TableOfContents>> formatted as a title list
|
21
|
+
All tiddler titles tagged with <<tag TableOfContents>> formatted as a title list:
|
22
22
|
<<.operator-example 5 """[tag[TableOfContents]format:titlelist[]]""">>
|
23
23
|
|
24
|
+
A JSON string formatted as JSON – note how the JSON string is normalised to remove the duplicated properties:
|
25
|
+
<<.operator-example 6 """[[{"one":"first","one":"another","two":"second"}]format:json[]]""">>
|
26
|
+
|
24
27
|
<<.tip "To create a string to save a [[title list|Title List]] into a list field, use `format:titlelist[]` with the [[join operator|join Operator]]">>
|
25
28
|
<<.operator-example 6 """[tag[TableOfContents]format:titlelist[]join[ ]]""">>
|
26
29
|
For example, to save titles tagged `TableOfContents` to the titles field of the tiddler [[format titlelist test]]:
|
@@ -1,6 +1,6 @@
|
|
1
1
|
caption: format
|
2
2
|
created: 20201020100834443
|
3
|
-
modified:
|
3
|
+
modified: 20220611104737314
|
4
4
|
op-input: a [[selection of titles|Title Selection]]
|
5
5
|
op-output: input strings formatted according to the specified suffix <<.place B>>
|
6
6
|
op-parameter: optional format string for the formats
|
@@ -17,9 +17,10 @@ type: text/vnd.tiddlywiki
|
|
17
17
|
The suffix <<.place B>> is one of the following supported string formats:
|
18
18
|
|
19
19
|
|!Format |!Description |
|
20
|
-
|^`date` |The input string is interpreted as a UTC date and displayed according to the DateFormat specified in the optional operator
|
21
|
-
|^`
|
22
|
-
|^`
|
20
|
+
|^`date` |The input string is interpreted as a UTC date and displayed according to the DateFormat specified in the optional operator operand. (Defaults to "YYYY MM DD 0hh:0mm") |
|
21
|
+
|^`json` |<<.from-version "5.2.4">> The input string is interpreted as JSON and displayed with standard formatting. The optional operator operand specifies the number of spaces to use for indenting, or a string to use for indenting. Nothing is returned if the input string is not valid JSON |
|
22
|
+
|^`relativedate` |The input string is interpreted as a UTC date and displayed as the interval from the present instant. Any operator parameters are ignored |
|
23
|
+
|^`titlelist` |<<.from-version "5.2.0">> The input string wrapped in double square brackets if it contains a space. Appropriate for use in a [[title list|Title List]]. |
|
23
24
|
|
24
25
|
<<.warning """The [[Title List]] format cannot reliably represent items that contain certain specific character sequences such as `]] `. Thus it should not be used where there is a possibility of such sequences occurring.""">>
|
25
26
|
|
@@ -0,0 +1,66 @@
|
|
1
|
+
created: 20220611104737314
|
2
|
+
modified: 20220611104737314
|
3
|
+
tags: [[Filter Operators]] [[JSON Operators]]
|
4
|
+
title: jsonextract Operator
|
5
|
+
caption: jsonextract
|
6
|
+
op-purpose: retrieve the JSON string of a property from JSON strings
|
7
|
+
op-input: a selection of JSON strings
|
8
|
+
op-parameter: one or more indexes of the property to retrieve
|
9
|
+
op-output: the JSON string values of each of the retrieved properties
|
10
|
+
|
11
|
+
<<.from-version "5.2.4">> See [[JSON in TiddlyWiki]] for background.
|
12
|
+
|
13
|
+
The <<.op jsonextract>> operator is used to retrieve values from JSON data as JSON substrings. See also the following related operators:
|
14
|
+
|
15
|
+
* <<.olink jsonget>> to retrieve the values of a property in JSON data
|
16
|
+
* <<.olink jsontype>> to retrieve the type of a JSON value
|
17
|
+
* <<.olink jsonindexes>> to retrieve the names of the fields of a JSON object, or the indexes of a JSON array
|
18
|
+
|
19
|
+
Properties within a JSON object are identified by a sequence of indexes. In the following example, the value at `[a]` is `one`, and the value at `[d][f][0]` is `five`.
|
20
|
+
|
21
|
+
```
|
22
|
+
{
|
23
|
+
"a": "one",
|
24
|
+
"b": "",
|
25
|
+
"c": "three",
|
26
|
+
"d": {
|
27
|
+
"e": "four",
|
28
|
+
"f": [
|
29
|
+
"five",
|
30
|
+
"six",
|
31
|
+
true,
|
32
|
+
false,
|
33
|
+
null
|
34
|
+
],
|
35
|
+
"g": {
|
36
|
+
"x": "max",
|
37
|
+
"y": "may",
|
38
|
+
"z": "maize"
|
39
|
+
}
|
40
|
+
}
|
41
|
+
}
|
42
|
+
```
|
43
|
+
|
44
|
+
The following examples assume that this JSON data is contained in a variable called `jsondata`.
|
45
|
+
|
46
|
+
The <<.op jsonextract>> operator uses multiple operands to specify the indexes of the property to retrieve. Values are returned as literal JSON strings:
|
47
|
+
|
48
|
+
```
|
49
|
+
[<jsondata>jsonextract[a]] --> "one"
|
50
|
+
[<jsondata>jsonextract[d],[e]] --> "four"
|
51
|
+
[<jsondata>jsonextract[d],[f],[0]] --> "five"
|
52
|
+
[<jsondata>jsonextract[d],[f]] --> ["five","six",true,false,null]
|
53
|
+
[<jsondata>jsonextract[d],[g]] --> {"x":"max","y":"may","z":"maize"}
|
54
|
+
```
|
55
|
+
|
56
|
+
Indexes can be dynamically composed from variables and transclusions:
|
57
|
+
|
58
|
+
```
|
59
|
+
[<jsondata>jsonextract<variable>,{!!field},[0]]
|
60
|
+
```
|
61
|
+
|
62
|
+
A subtlety is that the special case of a single blank operand is used to identify the root object. Thus:
|
63
|
+
|
64
|
+
```
|
65
|
+
[<jsondata>jsonextract[]] --> {"a":"one","b":"","c":"three","d":{"e":"four","f":["five","six",true,false,null],"g":{"x":"max","y":"may","z":"maize"}}}
|
66
|
+
```
|
@@ -0,0 +1,93 @@
|
|
1
|
+
created: 20220611104737314
|
2
|
+
modified: 20220611104737314
|
3
|
+
tags: [[Filter Operators]] [[JSON Operators]]
|
4
|
+
title: jsonget Operator
|
5
|
+
caption: jsonget
|
6
|
+
op-purpose: retrieve the value of a property from JSON strings
|
7
|
+
op-input: a selection of JSON strings
|
8
|
+
op-parameter: one or more indexes of the property to retrieve
|
9
|
+
op-output: the values of each of the retrieved properties
|
10
|
+
|
11
|
+
<<.from-version "5.2.4">> See [[JSON in TiddlyWiki]] for background.
|
12
|
+
|
13
|
+
The <<.op jsonget>> operator is used to retrieve values from JSON data as strings. See also the following related operators:
|
14
|
+
|
15
|
+
* <<.olink jsontype>> to retrieve the type of a JSON value
|
16
|
+
* <<.olink jsonindexes>> to retrieve the names of the fields of a JSON object, or the indexes of a JSON array
|
17
|
+
* <<.olink jsonextract>> to retrieve a JSON value as a string of JSON
|
18
|
+
|
19
|
+
Properties within a JSON object are identified by a sequence of indexes. In the following example, the value at `[a]` is `one`, and the value at `[d][f][0]` is `five`.
|
20
|
+
|
21
|
+
```
|
22
|
+
{
|
23
|
+
"a": "one",
|
24
|
+
"b": "",
|
25
|
+
"c": "three",
|
26
|
+
"d": {
|
27
|
+
"e": "four",
|
28
|
+
"f": [
|
29
|
+
"five",
|
30
|
+
"six",
|
31
|
+
true,
|
32
|
+
false,
|
33
|
+
null
|
34
|
+
],
|
35
|
+
"g": {
|
36
|
+
"x": "max",
|
37
|
+
"y": "may",
|
38
|
+
"z": "maize"
|
39
|
+
}
|
40
|
+
}
|
41
|
+
}
|
42
|
+
```
|
43
|
+
|
44
|
+
The following examples assume that this JSON data is contained in a variable called `jsondata`.
|
45
|
+
|
46
|
+
The <<.op jsonget>> operator uses multiple operands to specify the indexes of the property to retrieve:
|
47
|
+
|
48
|
+
```
|
49
|
+
[<jsondata>jsonget[a]] --> "one"
|
50
|
+
[<jsondata>jsonget[d],[e]] --> "four"
|
51
|
+
[<jsondata>jsonget[d],[f],[0]] --> "five"
|
52
|
+
```
|
53
|
+
|
54
|
+
Indexes can be dynamically composed from variables and transclusions:
|
55
|
+
|
56
|
+
```
|
57
|
+
[<jsondata>jsonget<variable>,{!!field},[0]]
|
58
|
+
```
|
59
|
+
|
60
|
+
Boolean values and null are returned as normal strings. The <<.olink jsontype>> operator can be used to retrieve a string identifying the original type. Thus:
|
61
|
+
|
62
|
+
```
|
63
|
+
[<jsondata>jsontype[a]] --> "string"
|
64
|
+
[<jsondata>jsontype[d]] --> "object"
|
65
|
+
[<jsondata>jsontype[d],[f]] --> "array"
|
66
|
+
[<jsondata>jsontype[d],[f],[2]] --> "boolean"
|
67
|
+
```
|
68
|
+
|
69
|
+
Using the <<.op jsonget>> operator to retrieve an object or an array returns a list of the values. For example:
|
70
|
+
|
71
|
+
```
|
72
|
+
[<jsondata>jsonget[d],[f]] --> "five","six","true","false","null"
|
73
|
+
[<jsondata>jsonget[d],[g]] --> "max","may","maize"
|
74
|
+
```
|
75
|
+
|
76
|
+
The <<.olink jsonindexes>> operator retrieves the corresponding indexes:
|
77
|
+
|
78
|
+
```
|
79
|
+
[<jsondata>jsonindexes[d],[f]] --> "0", "1", "2", "3", "4"
|
80
|
+
[<jsondata>jsonindexes[d],[g]] --> "x", "y", "z"
|
81
|
+
```
|
82
|
+
|
83
|
+
If the object or array contains nested child objects or arrays then the values are retrieved recursively and returned flattened into a list. For example:
|
84
|
+
|
85
|
+
```
|
86
|
+
[<jsondata>jsonget[d]] --> "four","five","six","true","false","null","max","may","maize"
|
87
|
+
```
|
88
|
+
|
89
|
+
A subtlety is that the special case of a single blank operand is used to identify the root object. Thus:
|
90
|
+
|
91
|
+
```
|
92
|
+
[<jsondata>jsonindexes[]] --> "a", "b", "c", "d"
|
93
|
+
```
|
@@ -0,0 +1,65 @@
|
|
1
|
+
created: 20220611104737314
|
2
|
+
modified: 20220611104737314
|
3
|
+
tags: [[Filter Operators]] [[JSON Operators]]
|
4
|
+
title: jsonindexes Operator
|
5
|
+
caption: jsonindexes
|
6
|
+
op-purpose: retrieve the value of a property from JSON strings
|
7
|
+
op-input: a selection of JSON strings
|
8
|
+
op-parameter: one or more indexes of the property to retrieve
|
9
|
+
op-output: the values of each of the retrieved properties
|
10
|
+
|
11
|
+
<<.from-version "5.2.4">> See [[JSON in TiddlyWiki]] for background.
|
12
|
+
|
13
|
+
The <<.op jsonindexes>> operator is used to retrieve the property names of JSON objects or the index names of JSON arrays. See also the following related operators:
|
14
|
+
|
15
|
+
* <<.olink jsonget>> to retrieve the values of a property in JSON data
|
16
|
+
* <<.olink jsontype>> to retrieve the type of a JSON value
|
17
|
+
* <<.olink jsonextract>> to retrieve a JSON value as a string of JSON
|
18
|
+
|
19
|
+
Properties within a JSON object are identified by a sequence of indexes. In the following example, the value at `[a]` is `one`, and the value at `[d][f][0]` is `five`.
|
20
|
+
|
21
|
+
```
|
22
|
+
{
|
23
|
+
"a": "one",
|
24
|
+
"b": "",
|
25
|
+
"c": "three",
|
26
|
+
"d": {
|
27
|
+
"e": "four",
|
28
|
+
"f": [
|
29
|
+
"five",
|
30
|
+
"six",
|
31
|
+
true,
|
32
|
+
false,
|
33
|
+
null
|
34
|
+
],
|
35
|
+
"g": {
|
36
|
+
"x": "max",
|
37
|
+
"y": "may",
|
38
|
+
"z": "maize"
|
39
|
+
}
|
40
|
+
}
|
41
|
+
}
|
42
|
+
```
|
43
|
+
|
44
|
+
The following examples assume that this JSON data is contained in a variable called `jsondata`.
|
45
|
+
|
46
|
+
The <<.op jsonindexes>> operator uses multiple operands to specify the indexes of the property to retrieve:
|
47
|
+
|
48
|
+
```
|
49
|
+
[<jsondata>jsonindexes[d],[f]] --> "0", "1", "2", "3", "4"
|
50
|
+
[<jsondata>jsonindexes[d],[g]] --> "x", "y", "z"
|
51
|
+
```
|
52
|
+
|
53
|
+
Indexes can be dynamically composed from variables and transclusions:
|
54
|
+
|
55
|
+
```
|
56
|
+
[<jsondata>jsonindexes<variable>,{!!field}]
|
57
|
+
```
|
58
|
+
|
59
|
+
Retrieving the indexes of JSON properties that are not objects or arrays will return nothing.
|
60
|
+
|
61
|
+
A subtlety is that the special case of a single blank operand is used to identify the root object. Thus:
|
62
|
+
|
63
|
+
```
|
64
|
+
[<jsondata>jsonindexes[]] --> "a", "b", "c", "d"
|
65
|
+
```
|