Page MenuHomePhabricator

Avoid articles in the user namespace to be connected through Wikidata when a translation is published
Closed, ResolvedPublic

Description

When a translation is published using Content and Section Translation, the original page and the translation created are automatically connected in Wikidata as equivalent. This is supported on mobile (T294006) and desktop (T87410) editors.

Currently articles get connected even if the source page is from the user namespace. User namespace pages can be used to draft the contents to be translated but may not represent the original content that should be connected on Wikidata. An example of this are the articles prepared for the Medicine Translaiton project. This conversation on Wikidata provide more details.

This ticket proposes to avoid connecting the published pages on Wikidata when the source page is from the user namespace.

Additionally we could consider to include a URL parameter that allows external tools to indicate to which item to connect the translation by providing a Wikidata Q-id.

Event Timeline

Pginer-WMF triaged this task as Medium priority.Feb 14 2023, 6:21 PM
Pginer-WMF updated the task description. (Show Details)

We currently have a tool that comes along and fixes the Wikidata links on WP. We; however, are unable to delete the WD entry that was created. Would be good to have the tool not create WD entries for user namespace items. Thanks

Wangombe changed the task status from Open to In Progress.Jul 3 2023, 1:43 PM
Wangombe claimed this task.

Change 935084 had a related patch set uploaded (by Wangombe; author: Wangombe):

[mediawiki/extensions/ContentTranslation@master] SX: Prevent article publishing in user namespace

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

Change 935085 had a related patch set uploaded (by Wangombe; author: Wangombe):

[mediawiki/extensions/ContentTranslation@master] CX: Prevent article publishing in user namespace

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

Change 935084 merged by jenkins-bot:

[mediawiki/extensions/ContentTranslation@master] SX: Prevent Wikidata links on articles from user namespace

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

Change 936678 had a related patch set uploaded (by Nik Gkountas; author: Nik Gkountas):

[mediawiki/extensions/ContentTranslation@master] CX3 Build 0.2.0+20230710

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

Change 935085 merged by jenkins-bot:

[mediawiki/extensions/ContentTranslation@master] CX: Prevent Wikidata links to articles from user namespace

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

Change 936678 abandoned by Nik Gkountas:

[mediawiki/extensions/ContentTranslation@master] CX3 Build 0.2.0+20230710

Reason:

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

Change 946931 had a related patch set uploaded (by Nik Gkountas; author: Nik Gkountas):

[mediawiki/extensions/ContentTranslation@master] CX3 Build 0.2.0+20230808

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

Change 946931 merged by jenkins-bot:

[mediawiki/extensions/ContentTranslation@master] CX3 Build 0.2.0+20230808

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

@Pginer-WMF the source and target pages are no longer connected in Wikidata, when the source page lives in the user namespace of the source wiki.

I have created a translation (https://el.wikipedia.org/wiki/%CE%A7%CF%81%CE%AE%CF%83%CF%84%CE%B7%CF%82:Iiirxs/wikibasetest) of a test page in the user namespace (https://en.wikipedia.org/wiki/User:Iiirxs/wikibasetest) and the two pages were not linked.

We can create a new task if we want to support explicitly linking to a specific Qid through URL parameter or other mechanism.

This task can be considered closed.

We can create a new task if we want to support explicitly linking to a specific Qid through URL parameter or other mechanism.

I created a task to support a couple of scenarios where Wikidata-Ids can provide some flexibility for external tools:
T345427: Accept Wikidata Q-IDs in url parameters to identify the topic to translate when loading and publishing