Page MenuHomePhabricator

[Story] Magic Word __EXPECTED_UNCONNECTED_PAGE__ to exclude pages from Special:UnconnectedPages
Closed, ResolvedPublic8 Estimated Story Points

Description

As an editor I want to exclude certain pages from Special:UnconnectedPages on the client wiki in order to have a useful remaining backlog of pages that should be connected to a Wikidata Item via a sitelink.

Problem:
Currently Special:UnconnectedPages lists a lot of pages that should not have a Wikidata Item, thereby making the page less useful as a maintenance report.

Example:
Wikipedia:Redirects for discussion/Log/2019 April 5 doesn’t need a Wikidata item, but shows up on Special:UnconnectedPages (in top 1000 of Wikipedia namespace at the time of writing).

BDD
GIVEN a page that is not connected to any Wikidata Item
AND the page has a the magicword TBD in its wikitext
THEN that page does not show up on Special:UnconnectedPages

Acceptance criteria:

  • A switch magic word is created to exclude a page from Special:UnconnectedPages
  • The query behind Special:UnconnectedPages checks if the page is excluded

Event Timeline

jeblad raised the priority of this task from to Needs Triage.
jeblad updated the task description. (Show Details)
jeblad added a project: Wikidata.
jeblad subscribed.

Second.
This also prevent bots creating items for non-notable pages.

I think it's better to have two magic words. My preferred name is __UNCONNECTEDOPTOUT__ and __NONNOTABLE__. The first for pages currently don't need an item (e.g. pages in Afd), the second for completely non-notable pages (and pages with the second magic word but linked should be automatically added to a category).

The names should not be associated with use in processes on any specific project, it should be concrete for client side technical use in Wikibase.

If anyone wants a "this page is in a deletion process on Wikipedia so don't do like so and so on Wikidata", then that should be implemented through some kind of low level primitives, but not by implicit encoding in the primitives themselves. If we encode high level signals in low level primitives then we start to tie Wikipedia into Wikibase, and I don't think that would be wise.

Imagine the problems that would arise from propagating different Wikipedias notability criteria to Wikidata through a single primitive. Not even the two Norwegian Wikipedias use the same notability criteria.

The behavior switch EXPECT_UNCONNECTED_PAGE would be a marker used by the SQL query for the special page UnconnectedPages, and would not imply any on-going process, or lack of any such process, on Wikidata. It is a purely client side behavior switch for the special page.

Jonas renamed this task from Behavior switch __EXPECT_UNCONNECTED_PAGE__ to [Story] Behavior switch __EXPECT_UNCONNECTED_PAGE__.Aug 13 2015, 7:04 PM
Jonas set Security to None.

It seems there's now a limit of 10500 results in Special:UnconnectedPages so this would be even more useful now, because the pages which shouldn't be connected prevent people from being able to list the ones which should (I checked the API and that has the same issue, but worse, because it doesn't seem to be possible to filter by namespace there).

For example, almost all the pages on https://ru.wikinews.org/wiki/Special:UnconnectedPages?namespace=14 are category redirects. I'm not going to check them all, but going by the page names, well over 80%, so there aren't that many which could be linked to make space for loading older categories.

Any progress on this? What’s preventing us from implementing the switch since nearly 4 years?

Lydia_Pintscher raised the priority of this task from Low to Medium.Mar 26 2019, 9:13 PM

Basically dev time. I can bump this up now though. What would also help is a clearer definition of what we want. I'll add a template to the task description. <3 for anyone who helps flesh it out.

My suggestion for the new name is __EXPECTED_UNCONNECTED_PAGE__ as I want it to reflect the page, consistent with other magic words like HIDDEN_CATEGORY

Lydia_Pintscher renamed this task from [Story] Behavior switch __EXPECT_UNCONNECTED_PAGE__ to [Story] Magic Word __EXPECTED_UNCONNECTED_PAGE__ to exclude pages from Special:UnconnectedPages.Feb 18 2020, 7:13 PM
Lydia_Pintscher updated the task description. (Show Details)

Side note: this switch should also hide the “Add links” link in the sidebar (probably only if there’s really no Wikidata item connected to the page). If there’s no other link in the interlanguage links section, the whole section should be hidden.

Personally I suggest differentiating pages currently don't need an item (e.g. pages in AfD) and pages should not have an item, but this will make things a bit more complicated.

A Wikisource (and I guess other Wikis with a subpage structure, maybe Wikibooks?) wish: allow a parent page to apply something like __EXPECTED_UNCONNECTED_CHILDREN__ to apply (by default) to all subpages. It would be a real pain to need to add __EXPECTED_UNCONNECTED_PAGE__ to all chapters of a book.

Bonus points: also allow the subpages to set __EXPECTED_CONNECTED_PAGE__ to override that interdiction if needed.

I just closed the Investigation as we are now ready to go for the real thing. Please still consider the comments from the investigation ticket (including the one Marius wrote about page_props). Please feel free to re-arrange this as you prefer.

Change 703191 had a related patch set uploaded (by Ladsgroup; author: Ladsgroup):

[mediawiki/extensions/Wikibase@master] Introduce __EXPECTED_UNCONNECTED_PAGE__

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

Change 703191 merged by jenkins-bot:

[mediawiki/extensions/Wikibase@master] Introduce __EXPECTED_UNCONNECTED_PAGE__

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

@Johan I think that there would be value in mentioning this in a Tech News as it has value in that broader level announcement for the Wikimedia sisters.

We also should be looking to add it to mw:Help:Magic words when it goes live.

Are there other Wikidata-created behaviour switches that should be listed on that page?

Addshore subscribed.

Verified on test.wikipedia.org

We also should be looking to add it to mw:Help:Magic words when it goes live.

At @Lydia_Pintscher 's request I'll be adding it to that page on Monday once the feature is live and has been announced.

Are there other Wikidata-created behaviour switches that should be listed on that page?

👀

At @Lydia_Pintscher 's request I'll be adding it to that page on Monday once the feature is live and has been announced.

I have updated the page with information and the test version after which the word was implemented.