WikiSandbox-LinkDots

See also : WikiSandbox-LinkDots2.

This page has only Hans's solution for dots in links, and there are some problems.

* [[Mr. Nobody]] works
* [[Mr. Nobody | Alternative text ]] does not work, links to Mr/Nobody
* [[Text -> Mr. Nobody]] does not work, links to Mr/Nobody
* [[(Mr. )Nobody]] should display "Nobody", it doesn't
* [[Main/HomePage]] should display "HomePage", it doesn't
* [[Main/]] should display "Main", it doesn't

The problem can also be seen in the menu links on the left. On other pages of this wiki, like WikiSandbox-LinkDots2, there is no such problem.

Moreover, WikiTrails, or pagelists built on trails, will not work for links with dots, see the broken wiki trail below.

<|[[WikiSandbox]]|>

WikiSandbox

Note: the page has this local configuration in /local/Main.WikiSandbox-LinkDots.php:

<?php
## Hans' solution
Markup('[[','links',"/(?>\\[\\[\\s*(.*?)\\]\\])($SuffixPattern)/e",
  "Keep(MakeLink(\$pagename,str_replace('. ',' ',PSS('$1')),PSS('$1'),'$2'),'L')");

# unset var enabled on other pages:
unset($MakePageNameFunction);