Last modified: 2008-06-11 21:23:04 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 13095 - Search by first letters or digits in [[Special:Categories]]
Search by first letters or digits in [[Special:Categories]]
Product: MediaWiki
Classification: Unclassified
Categories (Other open bugs)
All All
: Normal enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
: easy
Depends on:
  Show dependency treegraph
Reported: 2008-02-21 16:29 UTC by Hégésippe
Modified: 2008-06-11 21:23 UTC (History)
4 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Description Hégésippe 2008-02-21 16:29:44 UTC
[[Special:Allpages]] allows to search pages by first letters or first digits. It's very fine and useful. But it doesn't show "non-existing" categories...

Should it be possible, in [[Special:Categories]], to add a form which would also allow to search by first letters or first digits?

Explanation: on big projects, with thousands of categories, it takes a lot of time to find some "red" categories (used in articles or other pages, but without creation of category's page).

This new form should help contributors to create missing pages for some categories... or to choose to remove, in articles using those "red" categories, [[Category:foo]] ou to choose another (already existing) category.

On big projects, you have sometimes, to click a lot of times on link (500 next) before you find the "red" categories you are looking for...

I apologize if there is already any bug report about this problem.
Comment 1 Danny B. 2008-02-22 01:39:08 UTC
[[Special:Wantedcategories]] should cover your needs.
Comment 2 Hégésippe 2008-02-25 15:19:47 UTC
[[Special:Wantedcategories]] only shows the first ***most*** wanted categories, and not the followings.

My proposal should allow to access quickly to all "red" categories in [[Special!:Categories]].
Comment 3 Hégésippe 2008-02-25 15:52:57 UTC
I forgot: the first 1000 ***most*** wanted categories

from , I click one time on (500 next) and, after a second click on this link, I get this message:

<The following information is cached, and was last updated 09:14, 25 February 2008.>

<Discuss this special page at [[Wikipedia talk:Special:Wantedcategories]].>

<See also: Specialpageslist with editable versions.>

<There are no results for this report.>

Maybe there are hundreds of other wanted categories, unreachable from [[Special:Wantedcategories]] (only the the 1000 most wanted).

On EN Wikipedia and [[Special:Categories]], URL seems to be useful: "&offset=Grammar", for example, allows to find "red category" Grammar Schools, cf.

On other Wikipédias, or those where there are categories with accents or diacritics on some letters, we can also search though "&offset", but who knows that? Example, on FR Wikipedia: (but having only typed "&offet=Ré" in the address bar) Then you can find "red" categories with that URI: Réalité virtuelle, Réchauffement climatique, République Fédérale de Yougoslavie, République romaine.

But other "Special" pages use both "&offset=" in the address bar and a box on the page to reach the same result.

For example: [[Special:Listusers]], where I can 1°) "manually" transform (default URL) in or 2°) directly type "Jimmy" in the box after "Display users starting at:".

If it's possible for [[Special:Listusers]], I think it should be also possible for [[Special:Categories]]. Do the Help pages, on any project, show that we can search any category ("red" or existing) by the first letters or digits of its name? I'm not sure, and think that a box should help people.

Comment 4 Lejonel 2008-05-20 12:04:34 UTC
This is fixed in r35065
Comment 5 Waldir 2008-06-08 23:24:28 UTC
This still doesn't work properly. It doesn't process spaces correcly.
For instance, to make the listing start at Cape Verde, one has to manually tweak the url into
make the listing start at "Cape".

Besides, perhaps it would be cool to have the listing start in the category referred in the url, not the one immediately next to it.
Comment 6 Aryeh Gregor (not reading bugmail, please e-mail directly) 2008-06-11 21:15:59 UTC
Where did you get the "offset" parameter in the URL?  These are the ones generated when you type in the box, and they all work fine.

At any rate, if there are any bugs in the implementation, or changes you want, please file new bugs (and possibly link to them here).  Don't reopen this bug, since the original request is in fact fulfilled.
Comment 7 Aryeh Gregor (not reading bugmail, please e-mail directly) 2008-06-11 21:20:09 UTC
Your first problem was probably fixed in r36111, incidentally.  For the other request you can open a new bug.
Comment 8 Brion Vibber 2008-06-11 21:23:04 UTC
Looks like my FIXED note didn't make it in here:

Fixed in r36111. Clean up r35065 -- normalize initial caps and _ input on Special:Categories form and accept /suffix on page name.

The earlier quick hack I did just popped the input value into the 'offset' parameter used by the AlphabeticPager system. This was sub-ideal since it didn't normalize input values as nicely, and could get a little funky when paging backwards. Now the input form uses a 'from' parameter (as with Special:Allpages and others) which is nicely normalized.

Also the ability to put the starting point on the subpage suffix (as with Special:Allpages, Special:Prefixindex, etc) is helpful for making in-wiki links, and was added, allowing either input method to work.

Note You need to log in before you can comment on or make changes to this bug.