Page MenuHomePhabricator

[WIPR] Prototype - Display Wikiproject link on Beta Item pages using properties
Closed, ResolvedPublic

Description

As a wikidata editor I want to know if an Item is related to a wikiproject so that I can connect with other editors who share a common interest.

For this POC we will link to WikiProject Music on Items on Beta Wikidata that have statements that use the following Properties:

The link should be displayed in the tools section following the design

Acceptance Criteria

  • On Beta Wikidata, Items that have statements that use the properties P235781, P253125 and P62013 display a link to WikiProject Music following the default of same-window navigation
  • This link is included in the tools section of the item page, following the design. Making sure to be enabled under a "feature-flag".
  • Items that do not have any statements that use the Properties P235781, P253125 and P62013 show no WikiProject section or link
  • The quality level is 'first pass'
  • Tests should continue to pass
  • New tests should be added as needed

Event Timeline

karapayneWMDE renamed this task from [WIPR] Display Wikiproject link on item page to [WIPR] Prototype - Display Wikiproject link on item page.
karapayneWMDE updated the task description. (Show Details)

Suggestion for what the config could look like:

$wgWBRepoSettings['tmpWikiProjects'][] = [
	'propertyIds' => [ 'P62013', 'P235781', 'P253125' ],
	'href' => 'https://www.wikidata.org/wiki/Wikidata:WikiProject_Music',
];

Change #1268599 had a related patch set uploaded (by Audrey Penven; author: Audrey Penven):

[mediawiki/extensions/Wikibase@master] WikiProject linking prototype

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

Change #1270482 had a related patch set uploaded (by Audrey Penven; author: Audrey Penven):

[operations/mediawiki-config@master] Enable and configure WikiProjects prototype on WikiData beta

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

Note for testing - the current code requires something like the following in your LocalSettings.php, where P72 is a property that exists on the item you want to test with:

// Wikiprojects Sidebar
$wgWBRepoSettings['tmpWikiProjectsLinking'] = [
	[
		'propertyIds' => [ 'P72' ],
		'href' => 'https://www.wikipedia.org',
		'text' => 'Some WikiProject',
	]
];
Arian_Bozorg renamed this task from [WIPR] Prototype - Display Wikiproject link on item page to [WIPR] Prototype - Display Wikiproject link on Beta Item pages using properties.Apr 24 2026, 11:33 AM

Change #1268599 merged by jenkins-bot:

[mediawiki/extensions/Wikibase@master] WikiProject linking prototype

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

the config change is scheduled to go out during Monday afternoon's backport window

Change #1270482 merged by jenkins-bot:

[operations/mediawiki-config@master] Enable and configure WikiProjects prototype on Wikidata beta

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

Mentioned in SAL (#wikimedia-operations) [2026-05-11T13:20:03Z] <lucaswerkmeister-wmde@deploy1003> Started scap sync-world: Backport for [[gerrit:1270482|Enable and configure WikiProjects prototype on Wikidata beta (T421850)]]

Mentioned in SAL (#wikimedia-operations) [2026-05-11T13:21:43Z] <lucaswerkmeister-wmde@deploy1003> audreypenven, lucaswerkmeister-wmde: Backport for [[gerrit:1270482|Enable and configure WikiProjects prototype on Wikidata beta (T421850)]] synced to the testservers (see https://wikitech.wikimedia.org/wiki/Mwdebug). Changes can now be verified there.

Mentioned in SAL (#wikimedia-operations) [2026-05-11T13:26:31Z] <lucaswerkmeister-wmde@deploy1003> Finished scap sync-world: Backport for [[gerrit:1270482|Enable and configure WikiProjects prototype on Wikidata beta (T421850)]] (duration: 06m 28s)