Compare:
https://www.wikifunctions.org/wiki/Z12345
https://www.wikidata.org/wiki/Q0
In Wikibase a wikibase-noentity message is used. Currently this does not lead to NewItem page, but it does get rid of the confusing text "There is currently no text in this page. ...but you do not have permission to create this page. "
??? Do we also want to have this be shown on /view/…/Zx pages that don't have a result? Currently we just redirect to the Main Page if either the ZID or the language isn't known.
Implementation steps:
- Define a new i18n message (e.g. wikilambda-noobject) which says that there's no Object defined at this title, and linking to the Main Page and search pages.
- Register PageRenderingHandler as handling the BeforeDisplayNoArticleTextHook
- Add some code in the handler that shows the new message.