Page MenuHomePhabricator

Add to the "Orphan" warning a link to Special:WhatLinksHere (like "Previously deleted" links to Special:Log/delete)
Closed, ResolvedPublicFeature

Description

The "Orphan" issue warning in PageTriage (Special:NewPagesFeed) should link to Special:WhatLinksHere so that reviewers check that the page is still orphaned before tagging it as such. New incoming links may have been added since the most recent edit to the page, as pointed out at https://en.wikipedia.org/wiki/Wikipedia_talk:New_pages_patrol/Reviewers#Feed_incorrectly_tagging_pages_as_orphans

While I am not completely sure how to change this, there seems to be relevant code in /modules/ext.pageTriage.views.toolbar/articleInfo.js:

Current:

			if ( parseInt( this.model.get( 'linkcount' ) ) < 1 ) {
				this.problemCount++;
				problems += this.formatProblem( 'orphan' );
			}

Suggested:

			if ( parseInt( this.model.get( 'linkcount' ) ) < 1 ) {
				this.problemCount++;
				const whatLinksHereLink = mw.util.getUrl( 'Special:WhatLinksHere', {
					page: this.model.get( 'title' )
				} );
				problems += this.formatProblem( 'orphan' , whatLinksHereLink);
			}

Based on the related code for the "Previously deleted" warning:

			this.problemCount++;
			const previouslyDeletedLogLink = mw.util.getUrl( 'Special:Log', {
				type: 'delete',
				page: this.model.get( 'title' )
			} );
			problems += this.formatProblem( 'recreated', previouslyDeletedLogLink );
		}

Event Timeline

Could also add a link for "Blocked" (https://en.wikipedia.org/wiki/Special:Log?type=block&page=User%3AUsername).
Also, these links need to be there on the NewPagesFeed too.

Change 974720 had a related patch set uploaded (by MPGuy2824; author: MPGuy2824):

[mediawiki/extensions/PageTriage@master] Add links for orphan and blocked tags in the feed and toolbar

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

@Scardenasmolinar 's comment on the patch:

The only problem I see is that in the Page Info section of the toolbar, you can't really tell where the added links are. We should try and make them pop out more.

I agree. Our options:

  1. Make only the red text into a blue link
  2. Make the entire text (including description) into a blue link
  3. Leave the red text as is, but make the description into a blue link

Screenshot of the three options:

Opera Snapshot_2023-12-02_084548_patchdemo.wmflabs.org.png (107×406 px, 17 KB)

I like option 3.

I agree, option 3 looks to be the best choice.

Change 974720 merged by jenkins-bot:

[mediawiki/extensions/PageTriage@master] Add links for orphan and blocked tags in the feed and toolbar

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