Page MenuHomePhabricator

[WIPR] Prototype - Display Wikiproject link on Beta Item pages using "instance of" statements
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 Astronomy on Items on Beta Wikidata that are have the following "instance of" statements:
instance of (P694)planet (Q500792)

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

Acceptance Criteria

  • On Beta Wikidata, Items that have statements that use the "instance of" statement instance of (P694)planet (Q500792) display a link to WikiProject Astronomy following the default of same-window navigation
  • This link is included in the tools section of the item page, following the design
  • Items that do not have any WikiProject links the section doesn't show
  • The quality level is 'first pass'
  • Tests should continue to pass
  • New tests should be added as needed

Event Timeline

Change #1277545 had a related patch set uploaded (by Sadiya.mohammed13; author: Sadiya.mohammed13):

[mediawiki/extensions/Wikibase@master] Add prototype WikiProject links to sidebar

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

@Arian_Bozorg - for the code supporting this, there's nothing special about instance of (P694). As currently written, the match is specifed by a property-value pair, but limited to EntityId datatype values. Does this limitation make sense, given what WikiProjects are actually looking for? Or should we include more/all datatypes?

Yes, let's limit this to EntityID

Change #1277545 merged by jenkins-bot:

[mediawiki/extensions/Wikibase@master] Add prototype WikiProject links to sidebar

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

TV: The IDs for the instance of (P694) > planet (Q500792) needs to be added to the operations/mediawiki-config in a new patch as it is currently missing.
Check: https://www.wikidata.beta.wmcloud.org/wiki/Q593106

Change #1299450 had a related patch set uploaded (by Arthur taylor; author: Arthur taylor):

[mediawiki/extensions/Wikidata.org@master] Add translatable messages for WikiProject Astronomy

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

Change #1299451 had a related patch set uploaded (by Arthur taylor; author: Arthur taylor):

[operations/mediawiki-config@master] WikiProjects links - add statement-based link to project on beta

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

Change #1299450 merged by jenkins-bot:

[mediawiki/extensions/Wikidata.org@master] Add translatable messages for WikiProject Astronomy

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

Change #1299451 merged by jenkins-bot:

[operations/mediawiki-config@master] WikiProjects links - add statement-based link to project on beta

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

TV: No further changes needed. Thank you!