TiddlyWiki5/plugins/tiddlywiki/wikitext-serialize/rules
Jeremy Ruston 6bc77cf3e2
Dynamic parameters for macro/procedure/function calls (#9055)
* Initial commit

The idea is to extend the macro call syntax to accept dynamic parameter values (ie thing:{{more}} etc). Eventually, this will work in all the contexts in which the double angle bracket syntax is valid.

This initial commit gets the tests passing, but doesn't yet activate the new functionality.

* Test for standalone macro calls with dynamic parameters

* Parse attribute macros with the new parser

This fixes the tests

* Test for attribute macros

* Add some examples

* Tweak examples

* Fix test

* Temporarily disable a broken serializer test

* Fix/dynamic macro calls test (#9459)

* Revert "Temporarily disable a broken serializer test"

This reverts commit b3144300ee.

* restore synamic parameter parse result

* lint

* lint

* remove duplicate

* Update core/modules/parsers/parseutils.js

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update editions/test/tiddlers/tests/data/serialize/DynamicWidgetAttribute.tid

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update editions/test/tiddlers/tests/data/serialize/DynamicWidgetAttribute.tid

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* fix: mixed qouted and unquoted

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Fix unneeded diff

* Minor docs update

* Genuflecting to the linter

* Remove debug logging

* Add change note

* Allow single closing square brackets within double square brackets quoted strings

* Only allow new style parameter values if the separator is an equals sign

* On reflection, new style values should not be allowed for anonymous parameters

Backwards compatibility

* Docs updates

* Docs updates

---------

Co-authored-by: lin onetwo <linonetwo012@gmail.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-02-04 11:24:06 +00:00
..
emphasis feat: serialize AST node back to wikitext string (#8258) 2025-10-29 21:21:36 +00:00
codeblock.js feat: serialize AST node back to wikitext string (#8258) 2025-10-29 21:21:36 +00:00
codeinline.js feat: serialize AST node back to wikitext string (#8258) 2025-10-29 21:21:36 +00:00
commentblock.js feat: serialize AST node back to wikitext string (#8258) 2025-10-29 21:21:36 +00:00
commentinline.js feat: serialize AST node back to wikitext string (#8258) 2025-10-29 21:21:36 +00:00
conditional.js feat: serialize AST node back to wikitext string (#8258) 2025-10-29 21:21:36 +00:00
dash.js feat: serialize AST node back to wikitext string (#8258) 2025-10-29 21:21:36 +00:00
entity.js feat: serialize AST node back to wikitext string (#8258) 2025-10-29 21:21:36 +00:00
extlink.js feat: serialize AST node back to wikitext string (#8258) 2025-10-29 21:21:36 +00:00
filteredtranscludeblock.js feat: serialize AST node back to wikitext string (#8258) 2025-10-29 21:21:36 +00:00
filteredtranscludeinline.js feat: serialize AST node back to wikitext string (#8258) 2025-10-29 21:21:36 +00:00
fnprocdef.js feat: serialize AST node back to wikitext string (#8258) 2025-10-29 21:21:36 +00:00
hardlinebreaks.js feat: serialize AST node back to wikitext string (#8258) 2025-10-29 21:21:36 +00:00
heading.js feat: serialize AST node back to wikitext string (#8258) 2025-10-29 21:21:36 +00:00
horizrule.js feat: serialize AST node back to wikitext string (#8258) 2025-10-29 21:21:36 +00:00
html.js Fix/serialize close html tag (#9437) 2025-11-14 21:33:45 +00:00
image.js feat: serialize AST node back to wikitext string (#8258) 2025-10-29 21:21:36 +00:00
import.js feat: serialize AST node back to wikitext string (#8258) 2025-10-29 21:21:36 +00:00
list.js feat: serialize AST node back to wikitext string (#8258) 2025-10-29 21:21:36 +00:00
macrocallblock.js Dynamic parameters for macro/procedure/function calls (#9055) 2026-02-04 11:24:06 +00:00
macrocallinline.js feat: serialize AST node back to wikitext string (#8258) 2025-10-29 21:21:36 +00:00
macrodef.js feat: serialize AST node back to wikitext string (#8258) 2025-10-29 21:21:36 +00:00
parameters.js feat: serialize AST node back to wikitext string (#8258) 2025-10-29 21:21:36 +00:00
parsermode.js feat: serialize AST node back to wikitext string (#8258) 2025-10-29 21:21:36 +00:00
prettyextlink.js feat: serialize AST node back to wikitext string (#8258) 2025-10-29 21:21:36 +00:00
prettylink.js feat: serialize AST node back to wikitext string (#8258) 2025-10-29 21:21:36 +00:00
quoteblock.js feat: serialize AST node back to wikitext string (#8258) 2025-10-29 21:21:36 +00:00
rules.js feat: serialize AST node back to wikitext string (#8258) 2025-10-29 21:21:36 +00:00
styleblock.js feat: serialize AST node back to wikitext string (#8258) 2025-10-29 21:21:36 +00:00
styleinline.js feat: serialize AST node back to wikitext string (#8258) 2025-10-29 21:21:36 +00:00
syslink.js feat: serialize AST node back to wikitext string (#8258) 2025-10-29 21:21:36 +00:00
table.js feat: serialize AST node back to wikitext string (#8258) 2025-10-29 21:21:36 +00:00
transcludeblock.js feat: serialize AST node back to wikitext string (#8258) 2025-10-29 21:21:36 +00:00
transcludeinline.js feat: serialize AST node back to wikitext string (#8258) 2025-10-29 21:21:36 +00:00
typedblock.js feat: serialize AST node back to wikitext string (#8258) 2025-10-29 21:21:36 +00:00
wikilink.js feat: serialize AST node back to wikitext string (#8258) 2025-10-29 21:21:36 +00:00
wikilinkprefix.js feat: serialize AST node back to wikitext string (#8258) 2025-10-29 21:21:36 +00:00