Page MenuHomePhabricator

Support for expressing categorization in outlines without the outlines being themselves categorized
Closed, ResolvedPublic4 Estimated Story Points

Description

As part of Article Guidance work (T396029), guidance for new articles can be captured in outlines. These outlines can include contents such as categories, which is useful to ensure the articles will be categorized automatically as they are created. However, that also causes the outlines to also be categorized. As reported by a user in the talk page, outlines being categorized made them appear in different community workflows and backlogs. For example, the test instance includes outlines such as Actor which as part of the contents includes the [[Category:Actors]] markup.

This ticket proposes to allow outlines to capture the category for new articles to be added to, without the outline to be categorized. For example, including a category attribute in the <article-guidance> tag. In this way, the Actor outline could be updated to remove the [[Category:Actors]] from the content to avoid issueas and update the main tag to become:

<article-guidance article-type="Q33999" notability-risk="wikidata junior" category="Actors">

The system would add the [[Category:Actors]] to the articles generated from the outline without the outline page being also categorized.

Other technical approaches may be possible/preferred.

Event Timeline

Pginer-WMF triaged this task as High priority.
Pginer-WMF moved this task from Backlog to Prioritized on the LPL Hypothesis board.

I think what would be easier to use, since categories are also added through templates, would be custom tags that behave like <nowiki> or <includeonly> tags in the outline page and these tags would then be automatically removed inside articles.

Change #1280505 had a related patch set uploaded (by Sbisson; author: Sbisson):

[mediawiki/extensions/ArticleGuidance@master] Specify category through tag attribute

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

Change #1280505 merged by jenkins-bot:

[mediawiki/extensions/ArticleGuidance@master] Specify category through tag attribute

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

eamedina renamed this task from Support for expressing categorizationin outlines without the outlines being themselves categorized to Support for expressing categorization in outlines without the outlines being themselves categorized.Apr 30 2026, 6:25 PM

The new syntax with the category attribute in the <article-guidance> tag is already available.
This solution is preferred since it does not introduce new tags or require markup hacks around the category insertion.
I migrated the outlines created in the pilot wikis to the new syntax.