Page MenuHomePhabricator

Filter page listing specialpages by namespace ( Special:ShortPages, Special:LonelyPages, Special:DeadendPages, etc.)
Open, LowPublic

Description

In pages such as Special:LonelyPages I would love to have an easy to access form which allowed filtering by namespace (à la Special:Allpages). Since MW 1.18, all $wgContentNamespaces are included in the default listing, but I think it would be nice to have some extra filtering.

I've played a bit, by adding a $namespace parameter extracted from $wgRequest->getInt( 'namespace' ), but I would need some guiding about reusing it in more Special pages (for instance, also in WantedPages) and prepare a patch if this enhancement is considered interesting enough.

Additional context

Spun out of T170687:

It would be useful on many of the pages listed above in T170687#3439746

E.g.
Special:ShortPages and Special:DeadendPages could then be used with the Help: and Project: namespace to find things to cleanup or merge
Special:LongPages could then be used with the usertalk namespace to find people to nag to archive their overwhelming talkpages.
Special:AncientPages could then be used with the Help: and Mediawiki: namespace to find things to update or reconsider the defaults.

Note: Special:Random already has this functionality, similar to solution (f) but using full namespace names, per mw:Help:Random_page e.g. full list at https://en.wikipedia.org/wiki/Wikipedia:Random

Unknowns

  • Some design for how the filters should look. Tabs? A search form? A drop down? Is this covered in the UI standards spec?
  • More input

Details

Event Timeline

bzimport raised the priority of this task from to Low.Nov 22 2014, 12:14 AM
bzimport set Reference to bz35758.
bzimport added a subscriber: Unknown Object (MLST).
Toniher created this task.Apr 6 2012, 4:50 PM

(In reply to comment #0)

I've played a bit, by adding a $namespace parameter extracted from
$wgRequest->getInt( 'namespace' ), but I would need some guiding about
reusing
it in more Special pages (for instance, also in WantedPages) and prepare a
patch if this enhancement is considered interesting enough.

I'd recommend to write a basic initial patch and iterate from there on.
You are very welcome to use Developer access

https://www.mediawiki.org/wiki/Developer_access

to submit a patch as a Git branch directly into Gerrit:

https://www.mediawiki.org/wiki/Git/Tutorial
Jdlrobson renamed this task from Filter page listing specialpages by namespace to Filter page listing specialpages by namespace ( Special:ShortPages, Special:LonelyPages, Special:DeadendPages).Aug 1 2017, 8:00 PM
Jdlrobson updated the task description. (Show Details)
Deskana added a subscriber: Deskana.

This doesn't seem to be related to VisualEditor.

Support for this feature request. It came up in the Dutch Wikipedia Village Pump as request a few days ago. A big help would already be to differentiate between Content namespaces (Main, List, etc) and All namespaces.

Ciell awarded a token.Jul 10 2018, 8:17 AM
DannyS712 renamed this task from Filter page listing specialpages by namespace ( Special:ShortPages, Special:LonelyPages, Special:DeadendPages) to Filter page listing specialpages by namespace ( Special:ShortPages, Special:LonelyPages, Special:DeadendPages, etc.).Jul 13 2019, 1:41 PM
DannyS712 added a comment.EditedJul 13 2019, 1:44 PM

There is similar code in SpecialNewpages.php that allows filtering that by namespace (see parseParams, formDescriptor, and the logic in the pager. I think the use of a drop-down menu to select the namespace would be best, given that it is already in use elsewhere. I'll try to add a filter for Special:WantedPages, and if that works add it to the others.

Restricted Application added a project: User-DannyS712. · View Herald TranscriptJul 13 2019, 4:14 PM

Change 522602 had a related patch set uploaded (by DannyS712; owner: DannyS712):
[mediawiki/core@master] Add namespace filter to Special:WantedPages

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

Ltrlg added a subscriber: Ltrlg.Jul 15 2019, 8:31 AM

Another page where this will be very useful is MostTranscludedPages. The templates that are used on articles, user pages, talk pages, and category pages are quite different, and it would be useful to know what are the most used templates in each namespace.