diff --git a/core/wiki/macros/colour-picker.tid b/core/wiki/macros/colour-picker.tid
index ecbc87d2c..640d353b9 100644
--- a/core/wiki/macros/colour-picker.tid
+++ b/core/wiki/macros/colour-picker.tid
@@ -46,7 +46,7 @@ tags: $:/tags/Macro
---
-<$edit-text tiddler="$:/config/ColourPicker/New" tag="input" default="" placeholder="" class="tc-small-gap-right"/>
+<$edit-text tiddler="$:/config/ColourPicker/New" tag="input" default="" placeholder="" class="tc-tiny-gap-right"/>
<$edit-text tiddler="$:/config/ColourPicker/New" type="color" tag="input"/>
<$set name="colour-picker-value" value={{$:/config/ColourPicker/New}}>
<%if [{$:/config/ColourPicker/New}!is[blank]] %>
diff --git a/core/wiki/macros/dumpvariables.tid b/core/wiki/macros/dumpvariables.tid
index 0ab9e2001..835cddabe 100644
--- a/core/wiki/macros/dumpvariables.tid
+++ b/core/wiki/macros/dumpvariables.tid
@@ -1,7 +1,7 @@
title: $:/core/macros/dumpvariables
tags: $:/tags/Macro
-\define dumpvariables()
+\procedure dumpvariables()
\whitespace trim
<$list filter="[variables[]]" variable="varname">
diff --git a/core/wiki/macros/list.tid b/core/wiki/macros/list.tid
index c9dd2ad71..8e3775639 100644
--- a/core/wiki/macros/list.tid
+++ b/core/wiki/macros/list.tid
@@ -1,14 +1,14 @@
title: $:/core/macros/list
tags: $:/tags/Macro
-\define list-links(filter,type:"ul",subtype:"li",class:"",emptyMessage,field:"caption")
+\procedure list-links(filter,type:"ul",subtype:"li",class:"",emptyMessage,field:"caption")
\whitespace trim
-<$genesis $type=<<__type__>> class=<<__class__>>>
- <$list filter=<<__filter__>> emptyMessage=<<__emptyMessage__>>>
- <$genesis $type=<<__subtype__>>>
+<$genesis $type=<> class=<>>
+ <$list filter=<> emptyMessage=<>>
+ <$genesis $type=<>>
<$link to={{!!title}}>
<$let tv-wikilinks="no">
- <$transclude field=<<__field__>>>
+ <$transclude field=<>>
<$view field="title"/>
$transclude>
$let>
@@ -18,24 +18,24 @@ tags: $:/tags/Macro
$genesis>
\end
-\define list-links-draggable-drop-actions()
+\procedure list-links-draggable-drop-actions()
<$action-listops $tiddler=<> $field=<> $subfilter="+[insertbefore,]"/>
\end
-\define list-links-draggable(tiddler,field:"list",emptyMessage,type:"ul",subtype:"li",class:"",itemTemplate)
+\procedure list-links-draggable(tiddler,field:"list",emptyMessage,type:"ul",subtype:"li",class:"",itemTemplate)
\whitespace trim
- <$vars targetTiddler="""$tiddler$""" targetField="""$field$""">
- <$genesis $type=<<__type__>> class="$class$">
- <$list filter="[list[$tiddler$!!$field$]]" emptyMessage=<<__emptyMessage__>>>
+ <$vars targetTiddler=<> targetField=<>>
+ <$genesis $type=<> class=<>>
+ <$list filter="[getenlist-input[]]" emptyMessage=<>>
<$droppable
actions=<>
- tag="""$subtype$"""
+ tag=<>
enable=<>
>
- <$transclude tiddler="""$itemTemplate$""">
+ <$transclude tiddler=<
>>
<$link to={{!!title}}>
<$let tv-wikilinks="no">
<$transclude field="caption">
@@ -64,46 +64,46 @@ tags: $:/tags/Macro
\end
-\define list-tagged-draggable-drop-actions(tag)
+\procedure list-tagged-draggable-drop-actions(tag)
\whitespace trim
-<$set name="order" filter="[<__tag__>tagging[]]">
+<$set name="order" filter="[tagging[]]">
- <$list filter="[<__tag__>tagging[]]">
+ <$list filter="[tagging[]]">
<$action-deletefield $field="list-before"/>
<$action-deletefield $field="list-after"/>
$list>
- <$action-listops $tiddler=<<__tag__>> $field="list" $filter="+[enlist] +[insertbefore,]"/>
+ <$action-listops $tiddler=<> $field="list" $filter="+[enlist] +[insertbefore,]"/>
- <$list filter="[!contains:tags<__tag__>]">
+ <$list filter="[!contains:tags]">
<$fieldmangler tiddler=<>>
- <$action-sendmessage $message="tm-add-tag" $param=<<__tag__>>/>
+ <$action-sendmessage $message="tm-add-tag" $param=<>/>
$fieldmangler>
$list>
$set>
\end
-\define list-tagged-draggable(tag,subFilter,emptyMessage,itemTemplate,elementTag:"div",storyview:"")
+\procedure list-tagged-draggable(tag,subFilter,emptyMessage,itemTemplate,elementTag:"div",storyview:"")
\whitespace trim
- <$set name="tag" value=<<__tag__>>>
+ <$set name="tag" value=<>>
<$list
- filter="[<__tag__>tagging[]$subFilter$]"
- emptyMessage=<<__emptyMessage__>>
- storyview=<<__storyview__>>
+ filter=`[tagging[]$(subFilter)$]`
+ emptyMessage=<>
+ storyview=<>
>
- <$genesis $type=<<__elementTag__>> class="tc-menu-list-item">
+ <$genesis $type=<> class="tc-menu-list-item">
<$droppable
- actions="""<$macrocall $name="list-tagged-draggable-drop-actions" tag=<<__tag__>>/>"""
+ actions="""<$macrocall $name="list-tagged-draggable-drop-actions" tag=<>/>"""
enable=<>
>
- <$genesis $type=<<__elementTag__>> class="tc-droppable-placeholder"/>
- <$genesis $type=<<__elementTag__>>>
- <$transclude tiddler="""$itemTemplate$""">
+ <$genesis $type=<> class="tc-droppable-placeholder"/>
+ <$genesis $type=<>>
+ <$transclude tiddler=<>>
<$link to={{!!title}}>
<$view field="title"/>
$link>
@@ -114,11 +114,11 @@ tags: $:/tags/Macro
$list>
<$tiddler tiddler="">
<$droppable
- actions="""<$macrocall $name="list-tagged-draggable-drop-actions" tag=<<__tag__>>/>"""
+ actions="""<$macrocall $name="list-tagged-draggable-drop-actions" tag=<>/>"""
enable=<>
>
- <$genesis $type=<<__elementTag__>> class="tc-droppable-placeholder"/>
- <$genesis $type=<<__elementTag__>> style="height:0.5em;"/>
+ <$genesis $type=<> class="tc-droppable-placeholder"/>
+ <$genesis $type=<> style="height:0.5em;"/>
$droppable>
$tiddler>
$set>
diff --git a/core/wiki/macros/thumbnails.tid b/core/wiki/macros/thumbnails.tid
index 213b6520c..6444ce12c 100644
--- a/core/wiki/macros/thumbnails.tid
+++ b/core/wiki/macros/thumbnails.tid
@@ -2,33 +2,34 @@ title: $:/core/macros/thumbnails
tags: $:/tags/Macro
-\define thumbnail(link,icon,color,background-color,image,caption,width:"280",height:"157")
-<$link to="""$link$""">>>
<$reveal
+ style.width={{{ [addsuffix[px]] }}} style.height={{{ [addsuffix[px]] }}}>
+<$reveal
type="nomatch"
text=""
- default="""$image$"""
+ default=<>
tag="div"
- style="width:$width$px;height:$height$px;"
->[img[$image$]]$reveal><$reveal
+ style=`width:$(width)$px;height:$(height)$px;`
+><$image source=<>/>$reveal><$reveal
type="match"
text=""
- default="""$image$"""
+ default=<>
tag="div"
class="tc-thumbnail-background"
- style="width:$width$px;height:$height$px;background-color:$background-color$;"
+ style=`width:$(width)$px;height:$(height)$px;background-color:$(background-color)$;`
>$reveal>
$icon$
$caption$
$link>
+ style.fill=<
> style.color=<>
+><><
> $link>
\end
-\define thumbnail-right(link,icon,color,background-color,image,caption,width:"280",height:"157")
-<>
+\procedure thumbnail-right(link,icon,color,background-color,image,caption,width:"280",height:"157")
+<$transclude $variable="thumbnail" link=<> icon=<> color=<> background-color=<> image=<> caption=<> width=<> height=<>/>
\end
-\define list-thumbnails(filter,width:"280",height:"157")
-<$list filter="""$filter$"""><$macrocall $name="thumbnail" link={{!!link}} icon={{!!icon}} color={{!!color}} background-color={{!!background-color}} image={{!!image}} caption={{!!caption}} width="""$width$""" height="""$height$"""/>$list>
+\procedure list-thumbnails(filter,width:"280",height:"157")
+<$list filter=<>><$transclude $variable="thumbnail" link={{!!link}} icon={{!!icon}} color={{!!color}} background-color={{!!background-color}} image={{!!image}} caption={{!!caption}} width=<> height=<>/>$list>
\end
diff --git a/core/wiki/macros/translink.tid b/core/wiki/macros/translink.tid
index 1301c8606..34faaa781 100644
--- a/core/wiki/macros/translink.tid
+++ b/core/wiki/macros/translink.tid
@@ -17,7 +17,7 @@ tags: $:/tags/Macro
<%endif%>
<%if [match[inline]] %>
-<$link to=<> class="tc-small-gap-right">
+<$link to=<> class="tc-tiny-gap-right">
<$text text=<>/>
$link>
(<$transclude tiddler=<> mode="inline">
diff --git a/core/wiki/macros/tree.tid b/core/wiki/macros/tree.tid
index f73bd54fd..7a5e71f8a 100644
--- a/core/wiki/macros/tree.tid
+++ b/core/wiki/macros/tree.tid
@@ -1,62 +1,61 @@
title: $:/core/macros/tree
tags: $:/tags/Macro
-\define leaf-link(full-title,chunk,separator: "/")
-<$link to=<<__full-title__>>><$text text=<<__chunk__>>/>$link>
+\procedure leaf-link(full-title,chunk,separator: "/")
+<$link to=<>><$text text=<>/>$link>
\end
-\define leaf-node(prefix,chunk)
+\procedure leaf-node(prefix,chunk)
\whitespace trim
-
-<$list filter="[<__prefix__>addsuffix<__chunk__>is[shadow]] [<__prefix__>addsuffix<__chunk__>is[tiddler]]" variable="full-title">
-<$list filter="[removeprefix<__prefix__>]" variable="chunk">
-{{$:/core/images/file}} <$macrocall $name="leaf-link" full-title=<> chunk=<>/>
+<$list filter="[addsuffixis[shadow]] [addsuffixis[tiddler]]" variable="full-title">
+<$list filter="[removeprefix]" variable="chunk">
+{{$:/core/images/file}}<$transclude $variable="leaf-link" full-title=<> chunk=<>/>
$list>
$list>
\end
-\define branch-node(prefix,chunk,separator: "/")
+\procedure branch-node(prefix,chunk,separator: "/")
\whitespace trim
-
-<$set name="reveal-state" value={{{ [[$:/state/tree/]addsuffix<__prefix__>addsuffix<__chunk__>] }}}>
+<$set name="reveal-state" value={{{ [[$:/state/tree/]addsuffixaddsuffix] }}}>
<$reveal type="nomatch" stateTitle=<> text="show">
<$button setTitle=<> setTo="show" class="tc-btn-invisible">
-{{$:/core/images/folder}} <$text text=<<__chunk__>>/>
+{{$:/core/images/folder}} <$text text=<>/>
$button>
$reveal>
<$reveal type="match" stateTitle=<> text="show">
<$button setTitle=<> setTo="hide" class="tc-btn-invisible">
-{{$:/core/images/folder}} <$text text=<<__chunk__>>/>
+{{$:/core/images/folder}} <$text text=<>/>
$button>
$reveal>
-
-(<$count filter="[all[shadows+tiddlers]removeprefix<__prefix__>removeprefix<__chunk__>] -[<__prefix__>addsuffix<__chunk__>]"/>)
+(<$count filter="[all[shadows+tiddlers]removeprefixremoveprefix] -[addsuffix]"/>)
<$reveal type="match" stateTitle=<> text="show">
-<$macrocall $name="tree-node" prefix={{{ [<__prefix__>addsuffix<__chunk__>] }}} separator=<<__separator__>>/>
+<$transclude $variable="tree-node" prefix={{{ [addsuffix] }}} separator=<>/>
$reveal>
$set>
\end
-\define tree-node(prefix,separator: "/")
+\procedure tree-node(prefix,separator: "/")
\whitespace trim
-<$list filter="[all[shadows+tiddlers]removeprefix<__prefix__>splitbefore<__separator__>sort[]!suffix<__separator__>]" variable="chunk">
-<$macrocall $name="leaf-node" prefix=<<__prefix__>> chunk=<> separator=<<__separator__>>/>
+<$list filter="[all[shadows+tiddlers]removeprefixsplitbeforesort[]!suffix]" variable="chunk">
+<$transclude $variable="leaf-node" prefix=<> chunk=<> separator=<>/>
$list>
-<$list filter="[all[shadows+tiddlers]removeprefix<__prefix__>splitbefore<__separator__>sort[]suffix<__separator__>]" variable="chunk">
-<$macrocall $name="branch-node" prefix=<<__prefix__>> chunk=<> separator=<<__separator__>>/>
+<$list filter="[all[shadows+tiddlers]removeprefixsplitbeforesort[]suffix<__separator__>]" variable="chunk">
+<$transclude $variable="branch-node" prefix=<> chunk=<> separator=<>/>
$list>
\end
-\define tree(prefix: "$:/",separator: "/")
+\procedure tree(prefix: "$:/",separator: "/")
\whitespace trim
-
<$text text=<<__prefix__>>/>
+
<$text text=<>/>
-<$macrocall $name="tree-node" prefix=<<__prefix__>> separator=<<__separator__>>/>
+<$transclude $variable="tree-node" prefix=<
> separator=<>/>
\end