Page MenuHomePhabricator

Over-ride the message shown to users on a non-existent page in main namespace, in order to remove confusing text
Open, LowPublic

Description

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.

Event Timeline

Bugreporter renamed this task from non-existent page in main namespace should link to Special:CreateObject to non-existent page in main namespace may use a dedicated message.Jul 28 2023, 11:27 AM
Bugreporter created this task.
Bugreporter renamed this task from non-existent page in main namespace may use a dedicated message to non-existent page in main namespace may use a dedicated message, in order to remove confusing text.Jul 28 2023, 11:56 AM
Jdforrester-WMF subscribed.

Implementation: Add a hook listener for BeforeDisplayNoArticleText and replace the message with a custom one, ideally formatted nicely and prominently with a call-to-action to help users who are lost.

You can see how WikibaseRepo does it via a hook handler which then for some reason calls a shared content generation method; an implementation should also add a test case, like Wikibase does.

Jdforrester-WMF renamed this task from non-existent page in main namespace may use a dedicated message, in order to remove confusing text to Over-ride the message shown to users on a non-existent page in main namespace, in order to remove confusing text.Aug 10 2023, 4:39 PM
Jdforrester-WMF triaged this task as Low priority.
Jdforrester-WMF moved this task from To triage to Backlog on the Abstract Wikipedia team board.