Last modified: 2012-11-16 01:13:51 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T42450, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 40450 - Add namespace name "Category" to categories listed at [[Special:UnusedCategories]]
Add namespace name "Category" to categories listed at [[Special:UnusedCategor...
Status: RESOLVED WONTFIX
Product: MediaWiki
Classification: Unclassified
Special pages (Other open bugs)
unspecified
All All
: Unprioritized normal (vote)
: ---
Assigned To: Dereckson
http://en.wikipedia.org/wiki/Special:...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-09-23 06:17 UTC by Meno25
Modified: 2012-11-16 01:13 UTC (History)
4 users (show)

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


Attachments

Description Meno25 2012-09-23 06:17:47 UTC
Please add namespace name "Category" to categories listed at [[Special:UnusedCategories]]. This makes it easier to copy all category names and paste it to a file to be used by bots (like to nominate all these categories for deletion) instead of having to add the namespace name manually.

Current:
1. Catname1
2. Catname2
3. Catname3

Requested:
1. Category:Catname1
2. Category:Catname2
3. Category:Catname3
Comment 1 Dereckson 2012-09-23 06:51:21 UTC
Hello,

I'm offering to add a setting in MediaWiki to control this output.

[ Technical part - add a setting in MediaWiki ]

Configuration name: $wgPrependCategoryInCategoriesSpecialPages

I'm also offering to offer a consistent output in the following special pages:
    * [[Special:UncategorizedCategories]] (currently with a prefix)
    * [[Special:Unused categories]] (no prefix)
    * [[Special:Most linked-to categories]] (no prefix)
    
I would prefer to let [[Special:Categories]] untouched (ie no prefix), as it's the way to browse through categories.

Feedback is welcome on this proposition.
_____________________________________________________________________

[ Social part - get a local consensus ]

If this new setting is validated and added to MediaWiki core, we'll have to set it as false by default (no prefix) and true to en.wikipedia.

This is a site configuration change, and that requires a local consensus. Please discuss the matter the way you feel appropriated on the wiki.

If the en.wikipedia community validates your proposition, please open a second ticket on Bugzilla with the following values:
    * Product: Wikimedia
    * Component: Site config
    * URL: the discussion which led to a local consensus
    * Add in cc dereckson@espace-win.org
    * Add 'shell' in 'Keywords:'
    * When the bug is saved, add in the 'Depends on:' field this bug (40450)
_____________________________________________________________________

So in a nutshell, I'm coding the setting, and meanwhile, you ask your community (en.wikipedia) if they want to have this Category: prefix on these pages.
Comment 2 Dereckson 2012-09-23 07:40:03 UTC
Gerrit change #24695
Comment 3 This, that and the other (TTO) 2012-09-23 11:05:41 UTC
I can't see any reason why you would ''not'' want the namespace name on any of those special pages.
Comment 4 Dereckson 2012-09-23 19:44:27 UTC
Because you already know it's all categories, and so the information is redundant.
Comment 5 MZMcBride 2012-09-23 19:48:31 UTC
(In reply to comment #0)
> Please add namespace name "Category" to categories listed at
> [[Special:UnusedCategories]]. This makes it easier to copy all category names
> and paste it to a file to be used by bots (like to nominate all these
> categories for deletion) instead of having to add the namespace name manually.

This isn't a valid use-case as far as I'm concerned. You should be using the API to retrieve these lists, not copying and pasting. The GUI is for presentation, not scripting.

(In reply to comment #1)
> I'm offering to add a setting in MediaWiki to control this output.
> 
> [ Technical part - add a setting in MediaWiki ]
> 
> Configuration name: $wgPrependCategoryInCategoriesSpecialPages

I don't understand the purpose for implementing this additional configuration variable. What problem is this intended to solve? And why do you believe a configuration variable is the best way to solve this problem (or these problems)?
Comment 6 Dereckson 2012-09-23 19:59:33 UTC
(In reply to comment #5)
> (In reply to comment #0)
> > Please add namespace name "Category" to categories listed at
> > [[Special:UnusedCategories]]. This makes it easier to copy all category names
> > and paste it to a file to be used by bots (like to nominate all these
> > categories for deletion) instead of having to add the namespace name manually.
> 
> This isn't a valid use-case as far as I'm concerned. You should be using the
> API to retrieve these lists, not copying and pasting. The GUI is for
> presentation, not scripting.

A software is used by users, so it's up to them to use the tools the more convenient for them. For example, there are several JS gadgets like VisualFileChange in Commons where you could copy/paste a set of pages title to perform batch operation.

> (In reply to comment #1)
> > I'm offering to add a setting in MediaWiki to control this output.
> > 
> > [ Technical part - add a setting in MediaWiki ]
> > 
> > Configuration name: $wgPrependCategoryInCategoriesSpecialPages
> 
> I don't understand the purpose for implementing this additional configuration
> variable. What problem is this intended to solve?

If we see the bug report, we see there are two ways to present categories.

The setting allows to choose one or the other.

> Current:
> 1. Catname1
> 2. Catname2
> 3. Catname3

$wgPrependCategoryInCategoriesSpecialPages = false;

* * * 

> Requested:
> 1. Category:Catname1
> 2. Category:Catname2
> 3. Category:Catname3

$wgPrependCategoryInCategoriesSpecialPages = true;

> And why do you believe a
> configuration variable is the best way to solve this problem (or these
> problems)?

There are arguments for both versions.

Without, it's simpler to read.

With, it's more accurate and allow copy/paste in a tool an easier way.

So, I would like to have the choice in a MediaWiki installation to use one of the other.
Comment 7 MZMcBride 2012-09-23 20:05:57 UTC
(In reply to comment #6)
>> This isn't a valid use-case as far as I'm concerned. You should be using the
>> API to retrieve these lists, not copying and pasting. The GUI is for
>> presentation, not scripting.
> 
> A software is used by users, so it's up to them to use the tools the more
> convenient for them. For example, there are several JS gadgets like
> VisualFileChange in Commons where you could copy/paste a set of pages title to
> perform batch operation.

The point of these Special pages viewed via (the implicit) ?action=view is to show users a graphical report of particular wiki data. If users want to re-use this content in another script or program, the reports' data _must_ be accessed via the API, not via copy and paste. This has become a fundamental principle of MediaWiki development.

> There are arguments for both versions.
> 
> Without, it's simpler to read.
> 
> With, it's more accurate and allow copy/paste in a tool an easier way.

It's not more accurate, it's just redundant (as conceded by you in comment 4). :-)

> So, I would like to have the choice in a MediaWiki installation to use one of
> the other.

Global configuration variables have a pretty high cost. The benefit here is very, very limited (in my opinion, a valid use-case for adding the prefixes still hasn't even been presented). If users want the prefixes, they can and should write a simple JavaScript gadget or similar. I don't see a reason to implement a configuration variable here.
Comment 8 Chad H. 2012-09-28 03:35:34 UTC
(In reply to comment #7)
> Global configuration variables have a pretty high cost. The benefit here is
> very, very limited (in my opinion, a valid use-case for adding the prefixes
> still hasn't even been presented). If users want the prefixes, they can and
> should write a simple JavaScript gadget or similar. I don't see a reason to
> implement a configuration variable here.

Indeed, this does not need a configuration variable.

I don't rightly care one way or the other if the namespace is actually there, but pick one or the other and just do that for everyone.
Comment 9 Dereckson 2012-11-15 22:44:22 UTC
Hashar offers also an alternative in a Gerrit comment:

"Would it make sense to add a feature to QueryPage so that users can have that list displayed as text or download the current list ?"
Comment 10 Chad H. 2012-11-15 23:25:58 UTC
Absolutely not. If people want the list in a text format (eg: for parsing or programming with or something) then people should use the API.

We should support all query pages via the API, and if we don't, that's another bug.

This bug is a silly bug bikeshedding over whether we should use prefixed names or not when displaying a special page (which I don't even care about, I've only invested time to prevent poor solutions from being implemented).
Comment 11 Dereckson 2012-11-16 00:31:22 UTC
We've a consensus not to fix this bug.

I'm opening a new bug to standardize output across pages and abandoning proposed Gerrit change.
Comment 12 Dereckson 2012-11-16 01:13:51 UTC
Follow-up: bug 42173, Gerrit change #33690.

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


Navigation
Links