all[current]backlinks[]]
<$macrocall $name="remembercz" text="[[example backlink]]"/>
\define text-pattern()
[[$(currentTiddler)$]]
\end
<$list filter="[all[current]backlinks[]] [regexp:title<text-pattern>] -[is[current]] -[tag[hide]] -[is[system]]"></$list>
I will look again tomorrow however it is still not clear what you want to do and your example is not complete.
Without any wiki text can you say what you want?
backlinks can only be found for a tiddler when other have links to it.
What do you mean when you say in a Macrocall?
what do you want the macro to do?
why a macro and not just in a list filter?
best wishes tones
[all[current]backlinks[]]doesn't return the backlinks wrote inside a macrocall, like this one:
<$macrocall $name="remembercz" text="[[example backlink]]"/>To fix that issue I wanted to create a filter that searches for titles written inside [[]], so that it works inside macrocalls aswell.The problem is that you can't use [[]] brackets inside a macro definition, so my first attempt to accomplish this didn't work:
\define text-pattern() [[$(currentTiddler)$]]
<$list filter="[all[current]backlinks[]] [regexp:title<text-pattern>]"></$list>
..a filter that searches for the string "[[example backlink]]"...
\define start() "[[\define end() ]]"<$list filter="[{!!text}split<start>splitbefore<end>removesuffix<end>]"> <$link><<currentTiddler>></$link><br></$list>
<$macrocall $name="remembercz" text="[[example backlink]]"/>
{{{ [all[current]backlinks[]] }}}
<$list filter="[all[current]backlinks[]]">
</$list>
\define my-backlinks(filter) {{{ $filter$ }}}
<<my-backlinks "[all[current]backlinks[]]">>
or
<$macrocall $name=my-backlinks filter="[all[current]backlinks[]]"/>
\define my-backlinks2(filter)
<$list filter="$filter$">
</$list>
\end
<$macrocall $name=my-backlinks2 filter="[all[current]backlinks[]]"/>
\define my-backlinks(filter) {{{ $filter$ }}}
\define my-backlinks3(filter)
<$list filter="$filter$">
Backlinks here <<currentTiddler>><br>
Backlinks there <<my-backlinks "[all[current]backlinks[]]">>
</$list>\end
<$macrocall $name=my-backlinks2 filter="[all[current]backlinks[]]"/>\define my-backlinks(filter) {{{ $filter$ }}}
\define my-backlinks3(filter)
<$list filter="$filter$">
Backlinks here <<currentTiddler>><br>
Backlinks there <<my-backlinks "$filter$">>
</$list>
\end
<$macrocall $name=my-backlinks3 filter="[all[current]backlinks[]]"/>
\define my-backlinks4(filter)
<$list filter="$filter$">
<$link/>
</$list>
\end
\define my-backlinks3(filter)
<$list filter="$filter$">
Backlinks to here <$link/><br>
Backlinks to there <<my-backlinks4 "$filter$">><br>
</$list>
\end
<$macrocall $name=my-backlinks3 filter="[all[current]backlinks[]]"/>
<$list filter="[all[tiddlers]backlinks[]sort[]]">
</$list>
\define macroname()
<$list filter="[all[tiddlers]backlinks[]sort[]]">
</$list>
\end
<<macroname>>
\define macroname()
[[This backlinks to another tiddler]]
\end
\define text-pattern-backlink()
\u005B\u005B$(currentTiddler)$\u005D\u005D
\end
filter="[all[current]backlinks[]] [regexp:text<text-pattern-backlink>] -[is[current]] -[tag[hide]] -[is[system]]"