diff --git a/core/ui/ControlPanel/Basics.tid b/core/ui/ControlPanel/Basics.tid
index 961cbe161..f494c2af6 100644
--- a/core/ui/ControlPanel/Basics.tid
+++ b/core/ui/ControlPanel/Basics.tid
@@ -2,22 +2,7 @@ title: $:/core/ui/ControlPanel/Basics
tags: $:/tags/ControlPanel/Info
caption: {{$:/language/ControlPanel/Basics/Caption}}
-\define lingo-base() $:/language/ControlPanel/Basics/
-
-\define show-filter-count(filter)
-\whitespace trim
-<$button class="tc-btn-invisible">
-<$action-setfield $tiddler="$:/temp/advancedsearch" $value="""$filter$"""/>
-<$action-setfield $tiddler="$:/temp/advancedsearch/input" $value="""$filter$"""/>
-<$action-setfield $tiddler="$:/temp/advancedsearch/refresh" text="yes"/>
-<$action-setfield $tiddler="$:/state/tab--1498284803" $value="$:/core/ui/AdvancedSearch/Filter"/>
-<$action-navigate $to="$:/AdvancedSearch"/>
-<$action-sendmessage $message="tm-focus-selector" $param=".tc-advanced-search input"/>
-''<$count filter="""$filter$"""/>''
-
-{{$:/core/images/advanced-search-button}}
-$button>
-\end
+\procedure lingo-base() $:/language/ControlPanel/Basics/
\whitespace trim
|tc-max-width tc-edit-max-width|k
diff --git a/core/wiki/allfields.tid b/core/wiki/allfields.tid
index f148640d4..8f59a317f 100644
--- a/core/wiki/allfields.tid
+++ b/core/wiki/allfields.tid
@@ -1,13 +1,30 @@
title: $:/snippets/allfields
-\define renderfield(title)
-
''<$text text=<<__title__>>/>'': | //{{$:/language/Docs/Fields/$title$}}// |
-\end
\whitespace trim
+
+\procedure lingo-base() $:/language/Docs/Fields/
+
+\function tf.getLingoText() [] [] +[join[]get[text]]
+
+\procedure renderfield(title)
+
+
+ ''<$text text=<>/>'':
+ |
+
+ //<>//
+ |
+
+ <$macrocall $name="show-filter-count" filter=`[has[$(title)$]sort[]]`>>
+ |
+
+\end
+
-
-<$list filter="[fields[]sort[title]]" variable="listItem">
-<$macrocall $name="renderfield" title=<>/>
-$list>
-
+
+
+ <$list filter="[fields[]sort[title]]" variable="listItem">
+ <$macrocall $name="renderfield" title=<>/>
+ $list>
+
diff --git a/core/wiki/macros/show-filter-count.tid b/core/wiki/macros/show-filter-count.tid
new file mode 100644
index 000000000..be06fcde1
--- /dev/null
+++ b/core/wiki/macros/show-filter-count.tid
@@ -0,0 +1,17 @@
+title: $:/core/macros/show-filter-count
+tags: $:/tags/Macro $:/tags/Global
+
+\whitespace trim
+
+\procedure show-filter-count(filter)
+<$button class="tc-btn-invisible">
+ <$action-setfield $tiddler="$:/temp/advancedsearch" $value=<>/>
+ <$action-setfield $tiddler="$:/temp/advancedsearch/input" $value=<>/>
+ <$action-setfield $tiddler="$:/temp/advancedsearch/refresh" text="yes"/>
+ <$action-setfield $tiddler="$:/state/tab--1498284803" $value="$:/core/ui/AdvancedSearch/Filter"/>
+ <$action-navigate $to="$:/AdvancedSearch"/>
+ <$action-sendmessage $message="tm-focus-selector" $param=".tc-advanced-search input"/>
+ ''<$count filter=<>/>''
+ {{$:/core/images/advanced-search-button}}
+$button>
+\end
\ No newline at end of file
diff --git a/editions/tw5.com/tiddlers/macros/show-filter-count.tid b/editions/tw5.com/tiddlers/macros/show-filter-count.tid
new file mode 100644
index 000000000..7e026a590
--- /dev/null
+++ b/editions/tw5.com/tiddlers/macros/show-filter-count.tid
@@ -0,0 +1,21 @@
+
+created: 20240804143842924
+modified: 20240804150223291
+tags: Macros [[Core Macros]]
+title: show-filter-count Macro
+type: text/vnd.tiddlywiki
+
+<<.from-version "5.3.6">> -- The <<.def show-filter-count>> [[macro|Macros]] creates an element, that shows a counter and a button to open the provided filter string in $:/AdvancedSearch
+
+!! Parameters
+
+; filter
+: Needs to be a valid [[filter run|Filters]]
+
+!! Examples
+
+<> -- The number and the icon is click-able""">>
+
+<> -- The number and the icon is click-able""">>
+
+Also see: [[$:/core/ui/ControlPanel/TiddlerFields]]