Last modified: 2013-01-14 17:09:14 UTC
Hello! All is in the title; for example <code>{{PAGENAME:Fran%C3%A7ois}}</code> returns nothing.
The magic word is {{PAGENAME}}, which returns the name of the current page.
(In reply to comment #1) > The magic word is {{PAGENAME}}, which returns the name of the current page. It's also a parser function defined in CoreParserFunctions.php.
these parser functions does not do decoding of the input and titles with percent sequence are invalid.
"Fran%C3%A7ois" is an invalid page title. https://en.wikipedia.org/wiki/Fran%25C3%25A7ois Will respond with "Bad title". This parser function works on titles, not urls. There is no reason for this function to expect url encoding, it is wikitext/html, not a url. If we do decoding in this parser function, it means certain titles would have to be explicitly encoded, that would make things fail. Marking INVALID, as it is not a bug, it is designed to take valid titles, not url portions. And making it accept url portions will likely break in unexpected ways. Just fix the wikitext to pass the actual page name, why would you put url encodings in wikitext anyway?
(In reply to comment #4) > If we do decoding in this parser function, it means certain titles would have > to be explicitly encoded, that would make things fail. Nothing would fail because we already do decoding in [[ ]] syntax -- that is, [[Fran%C3%A7ois]] links to https://en.wikipedia.org/wiki/Fran%C3%A7ois , and a urlencoded form is never a valid title.
*** Bug 22553 has been marked as a duplicate of this bug. ***