You should use Title::newFromText
to create a new Title object representing the page. Once you have that, you can use Title::getPrefixedText
to get the correct representation of the title meant for displaying it.
Get page name from URL-encoded page name in MediaWiki
Pergunta
Is there any built in function to get the page name from the page title in MediaWiki. Example: I have Main_Page
and I want Main Page
.
Solução
Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow