Page MenuHomePhabricator

Expose WikiProject assessment information to Lua
Closed, ResolvedPublic

Description

WikiProjects associated with pages, along with the class and importance, should be available for querying from Lua. Perhaps as a pageassessments propery on mw.title objects.


From T391642:

Feature summary (what you would like to be able to do and where): I'd like a parser function that can retrieve assessment information of a given page, or at least the current page.
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): Per discussion at enwiki Idea Lab § Metadata gadget as the default experience, using a parser function would more elegantly allow manipulation of a page to make featured content status more prominent. Specific use case would be to include the parser function in MediaWiki:Tagline to update the tagline when an article is a piece of featured content.
Benefits (why should this be implemented?): There have been many discussions about making Good Article and Featured Article status more prominent on enwiki (see above linked discussion) and this would provide a solution to that.

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

Please note that the Scribunto patch allowing other extensions to define properties on mw.title objects is currently under review at https://gerrit.wikimedia.org/r/c/mediawiki/extensions/Scribunto/+/1091767.

Please note that the Scribunto patch allowing other extensions to define properties on mw.title objects is currently under review at https://gerrit.wikimedia.org/r/c/mediawiki/extensions/Scribunto/+/1091767.

Created a dedicated task for it: T380690.

Change #1141032 had a related patch set uploaded (by SD0001; author: SD0001):

[mediawiki/extensions/PageAssessments@master] Expose WikiProject associations to Lua

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

Change #1141036 had a related patch set uploaded (by SD0001; author: SD0001):

[integration/config@master] Zuul: [mediawiki/extensions/PageAssessments] Add Scribunto as a phan dependency

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

Change #1141036 merged by jenkins-bot:

[integration/config@master] Zuul: [mediawiki/extensions/PageAssessments] Add Scribunto phan dependency

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

Mentioned in SAL (#wikimedia-releng) [2025-05-03T10:28:45Z] <James_F> Zuul: [mediawiki/extensions/PageAssessments] Add Scribunto phan dependency, for T380122

Change #1141032 merged by jenkins-bot:

[mediawiki/extensions/PageAssessments@master] Expose WikiProject associations to Lua

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

SD0001 renamed this task from Expose WikiProject associations to Lua to Expose WikiProject assessment information to Lua.May 21 2025, 6:47 PM
SD0001 updated the task description. (Show Details)

Change #1148944 had a related patch set uploaded (by SD0001; author: SD0001):

[mediawiki/extensions/PageAssessments@master] Lua: Rename attribute from projects to pageAssessments

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

Change #1148944 merged by jenkins-bot:

[mediawiki/extensions/PageAssessments@master] Lua: Rename attribute from projects to pageAssessments

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

SD0001 claimed this task.