4 Current markup allows to use [Title | ForPageName] to create a link
5 to a page, but use a different title. However other Wikis have the
6 meaning swapped [PageName|title], and this often confuses people.
8 Therefore this plugin provides an (unreliable) workaround, that checks
9 for existing of a page which the name of either side of the dash |
10 in square brackets, and then decides wich side contained the PageName
16 $ewiki_plugins["link_notfound"][] = "ewiki_linking_titlefix";
19 function ewiki_linking_titlefix(&$title, &$href, &$href2, &$type) {
23 $find = ewiki_db::FIND(array($title));
30 $str = '<a href="' . ewiki_script("", $href) . htmlentities($href2)
31 . '">' . $title . '</a>';
32 $type = array("wikipage", "title-swapped");