Page MenuHomePhabricator

Support explicit groupings
Closed, ResolvedPublic

Description

Goal: Users can specify an exhaustive list of groupings using the |groupings=
parameter in the template (e.g., |groupings=Q1,Q2,Q3 for items,
|groupings=2020,2021,2022 for years, or |groupings=enwiki,frwiki for sitelinks).

SPARQL queries should then use VALUES clauses to constrain results to specified groupings

Event Timeline

I’m pretty much done with this. one question: should the grouping order be preserved in the output, instead of being sorted by count ? Or be sorted by count, just like now?

Sorted by count is what I would expect.

Mentioned in SAL (#wikimedia-cloud) [2026-03-05T19:44:20Z] <wmbot~jeanfred@tools-bastion-15> Deploy 5075934 (Add support for user-specified groupings via template parameter) for T419059