Page MenuHomePhabricator

Update article title based on the Wikidata item selected
Closed, ResolvedPublic8 Estimated Story Points

Assigned To
Authored By
Pginer-WMF
Apr 9 2026, 11:15 AM
Referenced Files
F76849168: New Article Title Update v7 (11).png
Apr 20 2026, 7:12 PM
F76830338: New Article Title Update v7 (4).png
Apr 20 2026, 6:56 PM
F76831561: New Article Title Update v7 (8).png
Apr 20 2026, 6:56 PM

Description

As part of the Article Guidance work (T396029), the initial "Title entry and topic matching" steps allow users to write the title for their article and help them identify which subject the article will be about.

The list of matching Wikidata items can be perceived as suggestions to auto-complete the title too. As reported by a user, trying to create an article about "No Game No Life", as the user types "No Game" they may notice the result they were looking for already in the Wikidata items and select an item labelled as "No Game No Life". This creates the expectation for the title to be completed based on the selection. (which is not the case). In the next step, the user notices the title is incomplete ("No Game") without a clear option on how to fix it.

We may need to consider different scenarios since updating the title to the Wikidata label of the selected item may not be always expected. For example, a user typing "Orange (color)" as the title of their article, and selecting the orange Wikidata item (Q39338), may find confusing for their title to be automatically changed back to just "orange".

This ticket proposes to explore the following:

  • Ways to use the information in the selected Wikidata item to complete the title when it makes sense. We may want to explore different approaches (automatically update the title, showing a suggestion for the user to apply, etc.) and determine in which circunstances (always, only when the title matches the beginning of the Wikidata item label, etc.).
  • Provide ways to adjust the title to allow correcting any mismatch in expectations. That is, consider cases where the title is automatically updated when the user didn't want it to be, or the other way around, and how those can be easily fixed by the user.
b24e11a4f1.catalyst.wmcloud.org_wiki_Special_NewArticle(Wiki Mobile) (6).png (568×320 px, 54 KB)
b24e11a4f1.catalyst.wmcloud.org_wiki_Special_NewArticle(Wiki Mobile) (7).png (568×320 px, 55 KB)

Proposed UX behavior

  1. Selecting a Wikidata topic automatically updates the title

New Article Title Update v7.png (1×750 px, 137 KB)

After the user picks a Wikidata result, the article title is updated to the selected item’s label.
Examples:

  • User types No Game, selects No Game No Life · television series → title becomes No Game No Life
  1. The next step shows the updated title with an edit affordance

New Article Title Update v7 (1).png (1×750 px, 143 KB)

After selection, the user continues to the next step. The title is shown with the selected topic/type context, and a pencil icon lets the user update the title if the automatic update was not what they wanted.

  1. The pencil opens an Update title screen
New Article Title Update v7 (7).png (1×750 px, 112 KB)
New Article Title Update v7 (8).png (1×750 px, 98 KB)
New Article Title Update v7 (4).png (1×750 px, 142 KB)

The update screen lets the user:

  • update the title manually
  • If the system changed the title automatically, preserve the title the user originally typed as a recovery option.
  • You originally typed "$1". Use that
  • 'Use that' is an inline text action. Selecting it fills the title field with the original typed value but does not immediately continue.

Interaction details

  • The screen title is Update title.
  • The article title field is focused when the screen opens.
  • The selected Wikidata subject remains visible on the screen so the user understands which topic the title belongs to.
  • Primary button label: Update title
  • Secondary button label: Cancel
  • The Update title button is disabled when:
    • the title field is empty or whitespace-only
    • title validation is running
    • the title is invalid
    • the title already exists locally
  • Cancel discards changes made on the Update title screen and returns the user to the previous step.

Title already taken inside Update title

New Article Title Update v7 (11).png (1×750 px, 113 KB)

If the user enters a title that already exists on wiki, keep the Update title button disabled and show inline feedback near the title field.

Guardrails

  • If the selected Wikidata item does not have a label in the wiki’s content language, keep the user’s typed title instead of replacing it with a wikidata label.
  • If the updated title is already taken, use the existing title conflict flow.
  • The title remains editable later in the flow.

Event Timeline

Pginer-WMF triaged this task as Medium priority.

I would personally expect the title to be fully replaced with the title of the selected Wikidata item—either to complete or correct the input—while preserving any disambiguation written in parentheses.

It currently isn't possible to find Orange when searching for Orange (color), so users currently always expect their input to be replaced with a matching item.

Screenshot_2026-04-09-14-20-41-909_com.opera.browser.jpg (2×1 px, 304 KB)

It currently isn't possible to find Orange when searching for Orange (color), so users currently always expect their input to be replaced with a matching item.

Screenshot_2026-04-09-14-20-41-909_com.opera.browser.jpg (2×1 px, 304 KB)

Orange cannot be found because there are no outlines defined for that type of article yet. So the example used in the description is not visible in the current configuration. The idea was to illustrate a potential mismatch between Wikidata labels and article titles, to keep it in mind as we explore solutions. But maybe we can find a better example that can be experienced in the current setup.

Another example could be a use creating an article titled "Batman city" and getting the title changed to just "Batman" after selecting the Wikidata item about the Turkish city (Q159835).

b24e11a4f1.catalyst.wmcloud.org_wiki_Special_NewArticle(Wiki Mobile) (8).png (568×320 px, 45 KB)

Pginer-WMF renamed this task from Explore how to best update article title based on the Wikidata item selected to Update article title based on the Wikidata item selected.Apr 29 2026, 7:55 AM
Pginer-WMF raised the priority of this task from Medium to High.

Change #1280522 had a related patch set uploaded (by Sbisson; author: Sbisson):

[mediawiki/extensions/ArticleGuidance@master] Update title based on selected subject (wikidata item)

https://gerrit.wikimedia.org/r/1280522

Pginer-WMF changed the task status from Open to In Progress.May 7 2026, 8:31 AM

Change #1280522 merged by jenkins-bot:

[mediawiki/extensions/ArticleGuidance@master] Update title based on selected subject (wikidata item)

https://gerrit.wikimedia.org/r/1280522

This seems to work as expected. Searching for "No game no" shows a set of results on Simple English Wikipedia that allows to illustrate different scenarios: topic covered, title taken and title available.

Search for "No life no"Article exists, title is irrelevantArticle does not exist, but title is taken. Defaults to edit the title.No issues with updated title. Option to edit is shownOnce editing a title, option to quickly undo the edit change is provided
simple.wikipedia.org_wiki_Special_NewArticle(Wiki Mobile) (8).png (568×320 px, 56 KB)
simple.wikipedia.org_wiki_Special_NewArticle(Wiki Mobile) (7).png (568×320 px, 46 KB)
simple.wikipedia.org_wiki_Special_NewArticle(Wiki Mobile) (5).png (568×320 px, 43 KB)
simple.wikipedia.org_wiki_Special_NewArticle(Wiki Mobile) (6).png (568×320 px, 62 KB)
simple.wikipedia.org_wiki_Special_NewArticle(Wiki Mobile) (9).png (568×320 px, 51 KB)