Page MenuHomePhabricator

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

Assigned To
None
Authored By
Toniher
Apr 6 2012, 4:50 PM
Referenced Files
F58011430: namespace select in Special:Search.png
Fri, Dec 13, 2:09 PM
F58011403: namespace select in Special:Contributions.png
Fri, Dec 13, 2:09 PM
Tokens
"Like" token, awarded by MichaelSchoenitzer."Baby Tequila" token, awarded by Ciell."Evil Spooky Haunted Tree" token, awarded by Effeietsanders.

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

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).

(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 subscribed.

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.

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

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.

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

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.

Removing task assignee due to inactivity, as this open task has been assigned for more than two years. See the email sent to the task assignee on February 06th 2022 (and T295729).

Please assign this task to yourself again if you still realistically [plan to] work on this task - it would be welcome.

If this task has been resolved in the meantime, or should not be worked on ("declined"), please update its task status via "Add Action… 🡒 Change Status".

Also see https://www.mediawiki.org/wiki/Bug_management/Assignee_cleanup for tips how to best manage your individual work in Phabricator.

For everyone's info, currently no Code-Stewardship-Reviews are taking place as there is no clear path forward and as this is not prioritized work.
(Entirely personal opinion: I also assume lack of decision authority due to WMF not having a CTO currently. However, discussing this is off-topic for this task.)

Novem_Linguae renamed this task from Filter page listing specialpages by namespace ( Special:ShortPages, Special:LonelyPages, Special:DeadendPages, etc.) to Filter page listing specialpages by namespace (Special:ShortPages, Special:LonelyPages, Special:DeadendPages, Special:WantedPages, etc.).Aug 30 2022, 8:05 PM
Novem_Linguae subscribed.
Novem_Linguae changed the subtype of this task from "Task" to "Feature Request".Jun 5 2023, 6:43 PM

Is this supposed to be tagged Code-Stewardship-Review? Seems more like a feature request to me. If you disagree feel free to re-tag.

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

I've seen two different kinds of namespace filters on special pages:

  1. In Special:Contributions and some other pages there's a dropdown that allows you to choose just one:

namespace select in Special:Contributions.png (1×1 px, 110 KB)

  1. In Special:Search there's a dropdown that allows you to choose more namespaces:

namespace select in Special:Search.png (1×1 px, 185 KB)

So the second have more options but I'm not sure are they needed here. And most other special pages have the first dropdown.