Last modified: 2014-03-01 00:12:43 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 T59786, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 57786 - VisualEditor: The category tool should automatically strip the namespace "Category:" out of the cat name, if the editor types it in
VisualEditor: The category tool should automatically strip the namespace "Ca...
Status: ASSIGNED
Product: VisualEditor
Classification: Unclassified
Editing Tools (Other open bugs)
unspecified
All All
: Low enhancement
: ---
Assigned To: Editing team bugs – take if you're interested!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-12-01 00:05 UTC by WhatamIdoing
Modified: 2014-03-01 00:12 UTC (History)
5 users (show)

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


Attachments

Description WhatamIdoing 2013-12-01 00:05:56 UTC
Intention:
Add a category to a page

Steps to Reproduce:
1. Open the page in VisualEditor and choose the categories tool.
2. Type the full name of the category, including the namespace:  Category:Example


Actual Results:  
VisualEditor adds a non-existent, malformed category named [[Category:Category:Example]].

Expected Results:  
That VisualEditor would recognize that "Category:Example" already contained the namespace, and thus omit the duplication.  Ideally, at non-English wikis, it would recognize and remove both the local name for the namespace and the English name, since both are typically valid (e.g., strip out both "Kategorie" and "Category" at the German Wikipedia).

Reproducible: Always
Comment 1 Andre Klapper 2013-12-02 10:12:38 UTC
[new feature or "nice-to-have" => severity=enhancement]
Comment 2 James Forrester 2013-12-03 03:25:39 UTC
What to do when there's a category called "Category:Foo" and another called "Foo". Do we strip or not?
Comment 3 Richard Morris 2013-12-05 23:14:05 UTC
There is [[Category:Category theory]], it might be worth checking as a corner case.
Comment 4 WhatamIdoing 2013-12-06 19:58:00 UTC
Do any [[Category:Category:Foo]] pages exist?  I haven't seen one.
Comment 5 James Forrester 2013-12-06 20:15:51 UTC
(In reply to comment #4)
> Do any [[Category:Category:Foo]] pages exist?  I haven't seen one.

On all ten million MediaWiki wikis out there? Quite probably…

J.
Comment 6 James Forrester 2013-12-06 20:17:21 UTC
Also there's the problem of either (a) only doing this hack for English, or (b) having to hold in VE a copy of all of the translations of Category:, and know which one to remove when (removing Catégorie: on French, but not on English, and so on).

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


Navigation
Links