Page MenuHomePhabricator

Provide a mechanism to put abstract articles into MediaWiki categories
Open, Needs TriagePublicFeature

Description

Feature summary (what you would like to be able to do and where):

The ability to categorize Abstract articles which are embedded into other language-wikis.

Use case(s) (list the steps that you performed to discover that problem, and describe the actual underlying problem which you want to solve. Do not describe only a solution):

The issue with this is that changing categories of pages require the editing of the wikitext, which is nonexistent for these articles (and Wikifunctions for that matter). If someone was to categorize it, that would nullify the Abstract article. I am sure that this thought has crossed the team's mind already, but it'll be very important for the communities once they want to track the usage of Abstract articles.

As an example:

Category:Abstract articles about living people
Category:Abstract articles about STEM
Category:Abstract articles about health
Category:Abstract articles about geographic places
Category:Abstract articles about extant species

and more, at the choice of the language's community.

Some may want to fold the articles into normal categories, such as the ones about Living people.

Benefits (why should this be implemented?):

Organizing information is vital to Wikipedia. A lack of categories translates to making it harder to readers and editors to find and track abstract articles and their contents.

I know this will be a tough nut to crack, and I'm not sure what form it may take. As a mockup, it could maybe be a settings icon besides the "View" indicator, which would allow the editing of some basic "metadata" about the page. I'm open to any other alternatives.

image.png (1,087×150 px, 26 KB)

Event Timeline

Then there is a second question about whether we can have article categories on AW itself. For now there are not so many articles, we can watch recentchanges, but later we all hope this will no longer be viable.

Jdforrester-WMF added projects: Epic, WikiLambda.
Jdforrester-WMF subscribed.

Categories are fundamentally part of wikitext, not a general thing in MediaWiki that we can plug Abstract articles (or Wikidata items or Wikifunctions functions) into. Until T112999: Let MediaWiki operate entirely without wikitext is done in some way (or at least this major part of it), there's no way we could build this into the same system.

Theoretically we could build a parallel system instead, which would likely hit the "uncanny valley" of being close but not the same, but that almost certainly wouldn't resolve your wish here.

Jdforrester-WMF renamed this task from Categorizing Abstract articles to Provide a mechanism to put abstract articles into MediaWiki categories.Jul 29 2026, 5:14 PM

I've changed the title to express what I think you're trying to say here, but please shout if I'm wrong.

Categories are fundamentally part of wikitext, not a general thing in MediaWiki that we can plug Abstract articles (or Wikidata items or Wikifunctions functions) into. Until T112999: Let MediaWiki operate entirely without wikitext is done in some way (or at least this major part of it), there's no way we could build this into the same system.

Theoretically we could build a parallel system instead, which would likely hit the "uncanny valley" of being close but not the same, but that almost certainly wouldn't resolve your wish here.

That's understandable.

This is probably worthy of a separate phab task, but a similar issue is the lack of capacity for article message boxes (amboxes). What this means, is that as of now, it is impossible for a user to mark a page as needing more citations, requiring a rewrite for neutrality, or even a notification that the page is under deletion discussion.

There are many flaws with this idea, but what if there was a "section" above each article where editors can edit some basic wikitext? This would be completely divorced from the abstract article, meaning a whole new system wouldn't have to be rewrote. This way, at least local to Abstract Wikipedia, people can add these categories and message boxes. This of course raises questions about whether people would add stuff that shouldn't be there, like monolingual text or spam.

Ultimately, my fear is that once the amount of articles start to multiply the entire project will become disordered and it would be near impossible to find articles of certain characteristics (ex: all articles that are of mammals, or mountains in Europe). It would be impossible to properly track which Abstract articles have glaring issues with them.

Edit: Granted, most of these problems can be solved by putting the relevant templates and categories in the talk page. But this still is an issue because it prevents people from seeing the templates/categories immediately by navigating to the page. A maintenance tag or categories should not be hidden from a person unless they click the Talk page button.

On AW, there could be a box immediately below the article title and menubar which transcludes the talk page, and editors could place message boxes in an <onlyinclude/> block. Is there an API endpoint which mimics transclusion? Then someone could write a UserScript which inserts an iframe of that endpoint.
See also T260953 re: talk pages in WF mainspace used for documentation.

Categories are fundamentally part of wikitext, not a general thing in MediaWiki that we can plug Abstract articles (or Wikidata items or Wikifunctions functions) into.

The Wikidata mainspace can be categorised. It seems Kartographer does it, or used to, when there's a geocoords-typed statement: example

Categories are fundamentally part of wikitext, not a general thing in MediaWiki that we can plug Abstract articles (or Wikidata items or Wikifunctions functions) into.

The Wikidata mainspace can be categorised. It seems Kartographer does it, or used to, when there's a geocoords-typed statement: example

Maybe you have a gadget loaded that makes you think that? The only category on that page is a sitelink to a Category page on Commons, and a matching P373 (see the non-gadget view). These do not:

  • Categorise anything,
  • Provide any discovery system,
  • Provide any nesting/organisation system, or
  • Use the same system as wikitext the categories system in MediaWiki.

Neither of those links on Wikidata.org are things that can currently apply to abstract pages (but see T344038 which proposes doing something similar to Structured Data on Commons, where we could then add Properties), and I fear that even after spending huge amounts of effort to replicate that system it would not satisfy?

Not a gadget but I have hidden categories enabled. You can see Items in the category listing w/o being logged in. I'm guessing this was due to a bug in an earlier version of the extension, otherwise there would be millions of Items in there.

Yes, Kartographer's abuse of Wikidata's category system instead of implementing a cross-wiki tracking table like every other extension is definitely not something we would copy. It only works because Wikidata doesn't ever write to or read from its categories and so they happen to skate past; if we tried to do it too, Kartographer would just break us.

It's also totally irrelevant to the idea of human-controlled categorising of individual abstract articles, sadly.

Regarding your bug concern, yes, I suspect that the data was just not regenerated when the data was migrated last year, and is waiting on edits, but that's off-topic for this.