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.

Foi útil?

Solução

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.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top