Last modified: 2008-02-26 05:05:15 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 13106 - Listing hidden categories
Listing hidden categories
Product: MediaWiki
Classification: Unclassified
Special pages (Other open bugs)
All All
: Normal enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
Depends on:
  Show dependency treegraph
Reported: 2008-02-22 11:39 UTC by Huji
Modified: 2008-02-26 05:05 UTC (History)
3 users (show)

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


Description Huji 2008-02-22 11:39:37 UTC
I talked about this feature over IRC with Tim and Vasiliev. There should be a way to get a list of hidden categories (those which contain the newly added __HIDDENCAT__ magic word), for many reasons, specially for in order to have a way to revert inappropriate addition of this magic word to the category pages. Vasiliev suggested a checkbox can be added to the [[Special:Categories]] which limits the results to the hidden categories. I suggested a user-maintained category (something like [[Category:Hidden categories]]), and Tim also liked the idea and thought it can be a built-in category; however, I find Vasiliev's idea better than mine.
Comment 1 Roan Kattouw 2008-02-22 13:31:09 UTC
How about a JavaScript show/hide link for hidden categories (à la collapsible tables)? A <noscript> implementation could reload the page with the 'showhiddencats' parameter set (or something similar).
Comment 2 Daniel Friesen 2008-02-24 05:18:14 UTC
Well a <noscript/> isn't actually needed.

Stick a link inside the categorylinks, use some css to style and position it in a clean location.

And do the markup something like this:
<a href="/index.php?title=CurrentPage&showhiddencats=1" onclick="javascript: showCategories();return false;">Show Hidden Categories</a>

The javascript intercepts the click, so if the user has JavaScript enabled the AJAX method then would grab the links and show them. (Perhaps some extra code could also alter the location.href if the user's browser does not support AJAX).
And if the user does not have javascript enabled, it behaves like a normal link and reloads the page with the hidden categories.
We could even add something like #catlinks or whatever the id is to the end of that title so that it'll automatically jump back down there when a skin has that id.

As for the Special page. Whether or not a category is created to list hidden categories [[Special:Categories]] should have a 2 or 3 option set to (Show All Categories/Show Visible Categories/Show Hidden Categories) the former two are the most important. As maintenance categories don't have much use on the category list unless the user is looking for them (ie: Someone tracking down a content category has no need to see maintenance categories.) The default setting is up to you.

As for the Hidden categories option, I think that's a good idea to give in any case. Even if we implement something for [[Special:Categories]] it would be good to give the option to let people list those in a real category (Especially if someone also wants to do something with DPL or such).
The category name would be controlled by a MediaWiki message (eg: MediaWiki:Hiddencategories-cat), and that message would be defaulted to '-' which would disable use of the category. (Disabled by default because we don't want a category automatically being used if no-one has bothered to create it. It can come as a surprise to a wiki if MW is automatically inserting a category and they think a user created it and they can't figure out how to delete it)
Comment 3 Tim Starling 2008-02-26 05:05:15 UTC
Fixed in r31262. Using a category to list them means there's no need for an extra index.

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