close
Page MenuHomePhabricator

Set links to pages on Abstract Wikipedia that don't yet exist as red/"new"
Closed, ResolvedPublicFeature

Description

Feature summary:
On AW when a link to another AW article is displayed, it always shows up blue. If the destination does not yet have any content, it should show up red.

Use case(s):
Here's a page I've worked on with heaps of links, most of which should currently be red:
https://abstract.wikipedia.org/view/en/Q408

Benefits:
I think you all know why red links are beneficial.

Event Timeline

Jdforrester-WMF renamed this task from red links on Abstract Wikipedia to Set links to pages on Abstract Wikipedia that don't yet exist as red/"new".Apr 29 2026, 5:05 PM
Jdforrester-WMF added a project: WikiLambda.
LMorgantini-WMF raised the priority of this task from Medium to Needs Triage.May 12 2026, 2:42 PM

class="new" adds the style of the red link automagically

(currently pending discussion/confirmation with Product+Design before proceeding)

Change #1296676 had a related patch set uploaded (by Ecarg; author: Ecarg):

[mediawiki/extensions/WikiLambda@master] Abstract articles with no content should have red links

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

ecarg changed the task status from Open to In Progress.Jun 2 2026, 8:40 PM

two separate patches:

  • one for links to non-existent AW pages in rendered AW article content (i.e. HTML fragments)
  • one for links to such in Special pages

Change #1300572 had a related patch set uploaded (by Ecarg; author: Ecarg):

[mediawiki/extensions/WikiLambda@master] abstract: red-link empty AW articles on special pages

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

Change #1296676 merged by jenkins-bot:

[mediawiki/extensions/WikiLambda@master] abstract: Red-link empty Abstract Wikipedia articles in local wikitext and rendered fragments

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

Looking into RecentChanges after making some edits and having:

  • an existing AW page (Q319)
  • an empty AW page (Q2191516)
  • a deleted AW page (Q18109457)

Screenshot from 2026-06-16 14-49-56.png (1,476×149 px, 70 KB)

The colors seem okay! the deleted and the empty articles are shown red!
However, there seems to be some difference in labeling? Notice that I'm in an environment where abstract NS is not primary, and I can see:

  • for the deleted Qid, the title with prefix
  • for the empty Qid, the title without prefix
  • for the existing Qid, the title with prefix

Can we unify this?

This only happens when WikibaseClient is not loaded, when loaded labels seem to be generated nicely

Screenshot from 2026-06-16 14-58-23.png (1,494×221 px, 113 KB)

Oh the same thing happens when:

  • WikibaseClient is available, but
  • the topics don't have labels, so it needs to show the qid

This is how it shows in that case, different cases render the labels differently:

Screenshot from 2026-06-16 16-29-23.png (1,494×110 px, 70 KB)

Change #1300572 merged by jenkins-bot:

[mediawiki/extensions/WikiLambda@master] abstract: red-link empty AW articles on special pages

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

Change #1305381 had a related patch set uploaded (by Jforrester; author: Jforrester):

[mediawiki/extensions/WikiLambda@master] tests: Cover protocol-relative $wgServer in AW red-link sanitiser

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

Change #1305381 merged by jenkins-bot:

[mediawiki/extensions/WikiLambda@master] tests: Cover protocol-relative $wgServer in AW red-link sanitiser

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

Red links are now live

Screenshot 2026-06-25 at 12.42.58 AM.png (880×770 px, 126 KB)