On 24/08/10 10:59, Petr Kadlec wrote:
On 24 August 2010 10:43, lampakllampak@gmail.com 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]]
Thanks :) I guess it was foolish of me to expect it would be simple? Never mind, seems it's too much work for a minor fix, so I think it will stay as it is. Or I will figure some quick-and-dirty workaround.
But thanks anyway :)
lampak