On 24 August 2010 10:43, lampak <[email protected]> wrote: > How can I generate in JavaScript such a link which would be identical to > the one generated by MediaWiki? Has somebody written such a function? Or > at least, do you know where it is done in MediaWiki php code?
See Parser.php, function guessSectionNameFromWikiText; most of the work is done in Sanitizer::escapeId. -- [[cs:User:Mormegil | Petr Kadlec]] _______________________________________________ Wikitech-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikitech-l
