Odd text substitution for some DollarVars


See [[http://thread.gmane.org/gmane.comp.web.wiki.pmwiki.user/38557/focus=38559|this message from 2007]] (examples are now listed here)

:[[#MakeLink]][@MakeLink($pagename, $tgt, $txt, $suffix, $fmt)@]:
: :Creates a link to $tgt (url, intermap link, or page name) using $txt as the link text according to the string given by $fmt. If $txt isn't given then it uses $tgt as the link text after stripping anything in parentheses. If $fmt isn't given then it uses the default formatting for whatever kind of link $tgt is. For page links this means the $LinkPageExistsFmt and $LinkPageCreateFmt variables, for intermap-style links it comes from either the $IMapLinkFmt array or from $UrlLinkFmt.  Inside of the formatting strings, $LinkUrl is replaced by the resolved url for the link, $LinkText is replaced with the appropriate text, and $LinkAlt is replaced by any "title" (alternate text) information associated with the link.

[=$AbcDe=]: $AbcDe

[=$anything=]: $anything

See this message from 2007 (examples are now listed here)

MakeLink($pagename, $tgt, $txt, $suffix, $fmt)
Creates a link to $tgt (url, intermap link, or page name) using $txt as the link text according to the string given by $fmt. If $txt isn't given then it uses $tgt as the link text after stripping anything in parentheses. If $fmt isn't given then it uses the default formatting for whatever kind of link $tgt is. For page links this means the $LinkPageExistsFmt and $LinkPageCreateFmt variables, for intermap-style links it comes from either the $IMapLinkFmt array or from $UrlLinkFmt. Inside of the formatting strings, $LinkUrl is replaced by the resolved url for the link, $LinkText is replaced with the appropriate text, and $LinkAlt is replaced by any "title" (alternate text) information associated with the link.

$AbcDe: $AbcDe

$anything: $anything

Thanks for noticing, should be fixed now (omission in vardoc.php). --Petko May 17, 2017, at 12:32 AM

 0: 00.00 00.00 config start
 1: 00.01 00.01 config end
 2: 00.21 00.20 MarkupToHTML begin
 3: 00.21 00.20 MarkupToHTML begin
 4: 00.21 00.21 ReadApprovedUrls SiteAdmin.ApprovedUrls begin
 5: 00.21 00.21 ReadApprovedUrls SiteAdmin.ApprovedUrls end
 6: 00.25 00.24 MarkupToHTML end
 7: 00.26 00.25 MarkupToHTML end
 8: 00.26 00.25 MarkupToHTML begin
 9: 00.28 00.26 MarkupToHTML end
10: 00.28 00.26 MarkupToHTML begin
11: 00.28 00.27 MarkupToHTML end
12: 00.28 00.27 now
Peak memory: 3,679,432 bytes