Different way of wikitext linking

Is there any way of having wikitext call a procedure to do linking? I am thinking of a user defined way to linking tiddlers via a procedure. For example,

[[abc| xyz]]

Where xyz is a procedure call.

Bobj

[[abc|xyz]] is already used to create a “pretty link”, where abc is the display text, and xyz is the tiddler title.

To use a procedure to output a link, I suggest just using the standard <<xyz "abc">> syntax, where the xyz procedure might be defined something like this:

\procedure xyz(tid)
<$link to=<<tid>>
... do something to compute and output the desired display text ...
</$link>
\end

-e

You could also call the procedure from inside a transclusion {{abc||uvw}} in side uvw it will call xyz with the abc parameter or current tiddler. Better yet, {{abx||xyz}} where xyz is a tiddler that does what your procedure would have done to abc. An advantage here is the new transcluding operator.

In the case of [[abc|xyz]] xyz is a tiddler or as you propose a procedure. You could redefine the $link widget to handle calling procedure but how do you decide when its a tiddler and when its a procedure.

But @Bob_Jansen why?, If not @EricShulman way, as this is how you use a procedure?