User talk:TheDJ/HotCat
From Wikipedia, the free encyclopedia
Please leave your comments and suggestions for HotCat.
[edit] Discussion
This is a cool thing that works really well on Commons... we should consider bringing it here. Commons:MediaWiki:HotCat.js ... it lets you add and remove categories from things very efficiently. ++Lar: t/c 15:06, 11 September 2007 (UTC)
[edit] Are you in interested in ... ?
- having the HotCat system available in the uploadForm like on Commons ?
- being able to add/remove/change multiple categories in one edit ?
- disabling HotCat on diff pages ?
These are all things I currently have under consideration and am pondering about implementing. If you have good ideas on any of these or on any other issue, just leave your comments here and we will see. --TheDJ (talk • contribs) 16:35, 21 March 2008 (UTC)
- A big yes to multiple categories in one edit.--Fabrictramp (talk) 15:34, 31 March 2008 (UTC)
- I'd like to be able to remove an "Uncategorised" tag and replace it with a chosen one in one move -- Que (talk) 19:13, 6 April 2008 (UTC)
[edit] Not working for me
I enabled this in the gadgets menu, flushed my cache, and it doesn't seem to have done anything. Using Firefox. --Closedmouth (talk) 11:55, 27 March 2008 (UTC)
- What version of Firefox are you using. I just tested the same page Tujiko Noriko on 2.0.0.13 and it is working here. Do you have any errors in your FF Error Console (under the Tools menu). --TheDJ (talk • contribs) 12:30, 27 March 2008 (UTC)
-
- Huh, it's saying this:
Error: importScript is not defined
Source File: http://en.wikipedia.org/w/index.php?title=MediaWiki:Gadget-HotCat.js&action=raw&ctype=text/javascript
Line: 1
- That's weird. Same Firefox version as you. --Closedmouth (talk) 12:55, 27 March 2008 (UTC)
- Ah, i wasn't using the gadget. Apparently Firefox doesn't wait for importScript to be loaded (from common) before it attempts to execute the Gadget. Should be fixed in a couple of minutes. --TheDJ (talk • contribs) 13:04, 27 March 2008 (UTC)
- Seems to be working now, thanks. --Closedmouth (talk) 05:13, 28 March 2008 (UTC)
- Ah, i wasn't using the gadget. Apparently Firefox doesn't wait for importScript to be loaded (from common) before it attempts to execute the Gadget. Should be fixed in a couple of minutes. --TheDJ (talk • contribs) 13:04, 27 March 2008 (UTC)
-
[edit] I had to use Wikipedia's English locale
When discovering I had problems with the metadata script, I tried to fix my problem by switching to the English locale on Wikipedia, from my previously used Swedish locale. This solved my problem with that script and additionally made this script work. Earlier, this one malfunctioned by not showing the "+" sign to even indicate it was being loaded. So both these scripts seem to have bugs in locale use on Wikipedia that I believe should at least be warned about if they are hard to fix (and require e.g. Wikipedia locale author intervention, I'm not sure if this is hard to fix for the script author alone or not, or if it's a problem with the underpinnings of Wikipedia locales). — Northgrove 01:44, 28 March 2008 (UTC)
- Interesting, I'll investigate if it is possible to make it locale independent. --TheDJ (talk • contribs) 11:28, 28 March 2008 (UTC)
[edit] Suggestions
Just discovered the tool, and am finding it very useful. A couple of suggestions for future improvement...
The tool is great on the edit summary for showing "What" was done. It is lacking on "Why". There are times, especially when I'm removing categories, when the why is IMHO more important in the edit summaries than the what. As an example, I remove a lot of "overcategorization". Edit summaries that give at least a basic explanation of why I am removing the category help to reduce my being reverted by others. Not sure how this could be acheived, but a way to tack additional "Why" text after the auto-generated "What" text would be very useful at times.
Another thought is that it would be very nice to be able to use the tool to edit the category ordering data. The stuff that comes after the bar "|" in many category entries. - TexasAndroid (talk) 13:22, 8 April 2008 (UTC)
- Perhaps i can couple a dialog box under a "hotkey" so that it asks you what you want the summary to be. Would that do the trick? The sortkey thing is definitely possible as well. I'll see if i can spend some time on HotCat this week. --TheDJ (talk • contribs) 14:25, 8 April 2008 (UTC)
- I would think that any "Why" box would be best adding on after the existing auto-generated "what" text, as the "What" is also still very useful. And I think a general hotkey, at the end of the category line, in the area where we currently have the one "+" for adding new categories, to pop up a dialog box for "additional summary" information would be quite useful. - TexasAndroid (talk) 14:36, 8 April 2008 (UTC)
- Hmm. As for the sort-key, I would imagine a sort edit icon for each category, and, if you want to go this far, a general one at the end for adding/removing/editing the DEFAULTSORT of the whole shebang. - TexasAndroid (talk) 14:39, 8 April 2008 (UTC)
And here is an edit you might want to put in checks against. I basically ended up hitting OK after making no change. The tool went ahead and moved the category to the bottom of the list, for an edit that really did nothing useful.
Also, I had some wierdness with multiple OK buttons on screen at once. I clicked one +, realized I had clicked the wrong one, and then clicked another later in the category list. I now had two edit bubbles and two OK buttons. I edited the second bubble, clicked the second OK button, and got the non-edit mentioned above from the first bubble, which I had not changed. - TexasAndroid (talk) 15:47, 8 April 2008 (UTC)
[edit] {{uncat}} tags not removed?
When I add a category to an article with the {{uncat}} tag, the tag is not removed; if the article uses {{uncategorized}}, though, then that is removed. Gary King (talk) 18:04, 10 April 2008 (UTC)
- Well uncat tags are usually converted to {{uncategorized}} by a bot. They should be rather rare normally. I can add this though. --TheDJ (talk • contribs) 19:15, 13 April 2008 (UTC)
[edit] Interesting, but..
it seems to take longer to remove a category than doing it manually, plus when I am doing a lot of category edits I usually want to keep going back to the category I'm sorting, and hitting "back" after the edit produces an error message telling me the category I just deleted isn't there, to which you have to press "Ok". You can get back eventually, but again it can take longer than when not using the tool. I agree with the point about edit summaries above. Very promising though. Johnbod (talk) 23:55, 12 April 2008 (UTC)
-
- Oh, if you could add an overide to "add to watchlist", that would be really handy! Johnbod (talk) 00:12, 13 April 2008 (UTC)
- Hmm, i guess it was never really designed for "catsorters" that want to use it on such a scale. It was designed for quickly finding and adding categories to Commons images. I'll see if I can take this into account with my redesign to enable multiple category edits per page though. --TheDJ (talk • contribs) 19:17, 13 April 2008 (UTC)
[edit] Bug??
i am an user from Spanish Wikipedia. I think there is a bug in HotCats. It didn't recognize categories in lowercase. For example i want to remove [[Category:hello]], and only remove it if it says [[Category:Hello]], and not [[Category:hello]]. Same thing in chage category. --190.45.240.155 (talk) 02:05, 16 April 2008 (UTC)
[edit] Not working for me either :)
I use this quite heavily on Commons, and was thrilled to see it available here. It's not working for me, though (Firefox 2.0.0.14 with popups enabled). Any suggestions? Fvasconcellos (t·c) 14:56, 27 April 2008 (UTC)
- It's only working partially for me (Firefox 2.0.0.13 on OpenSuse Linux, with popups enabled). The +/- button gives me an edit box for the category name, but there is no sign of the popup list of categs shown in the screenshots. --BrownHairedGirl (talk) • (contribs) 12:40, 29 April 2008 (UTC)
- OK, a bit of tweaking got it working for me. I tried removing all other scripts, and it worked fine; so I tried all except twinkle, and it still worked fine. I then noticed that I had added some of the individual components of twinkle even though I also had the whole thing added ... and after removing them, everything works fine. That may or may not be relevant to Fvasconcellos, but I can only suggest that you try the same approach: remove other scripts and then use Ctl-Shift-R to bypass the cache, then test ... and repeat until you can hopefully isolate the other script which clashes. --BrownHairedGirl (talk) • (contribs) 13:02, 29 April 2008 (UTC)
- It's now working perfectly, after I removed User:Steel359/protection.js. Maybe there's some dort of conflict between the two? Either way, thank you for your suggestion :) Fvasconcellos (t·c) 23:13, 29 April 2008 (UTC)
[edit] Categories are not removed
When clicking the - categories are not removed anymore. It just jumps to the anchor without actually executing the JavaScript to remove the category. Please fix? Gary King (talk) 09:03, 2 May 2008 (UTC)
- Nothing changed in the code for days, and it works atm for me. Should be something on your end. Perhaps one of your other gadgets/javascripts is failing, or perhaps you downloaded an incomplete copy and need to clear your browsercache ?
- I'm using the gadget. Gary King (talk) 01:52, 3 May 2008 (UTC)
- For some reason, User:Gary King/localize comments.js line containing
document.getElementById(element_id).innerHTML = document.getElementById(element_id).innerHTML.replace(/(\d\d):(\d\d), (\d{1,2}) ([A-Z][a-z]+) (\d{4}) \(UTC\)/g, adjustTime);
is causing the problems. Why is that? Gary King (talk) 02:02, 3 May 2008 (UTC)- Do you have any suggestions for how to fix this? Gary King (talk) 19:34, 15 May 2008 (UTC)
- I would care to see some sort of errormessage that is generated, and to know which browser has this problem. --TheDJ (talk • contribs) 20:07, 15 May 2008 (UTC)
- I suspect this is due to the usage of changing innerHTML, which possibly causes the "onClick" event to get lost in the action. That makes the edits of the two scripts incompatible. Isn't there a better way to adjust the time ? This seems a bit of an aggressive JS action. --TheDJ (talk • contribs) 20:23, 15 May 2008 (UTC)
- Do you have any suggestions for how to fix this? Gary King (talk) 19:34, 15 May 2008 (UTC)
- For some reason, User:Gary King/localize comments.js line containing
- I'm using the gadget. Gary King (talk) 01:52, 3 May 2008 (UTC)
[edit] Couple of bug reports for Hotcat
I used Hotcat to try to add a cat to WP:Timeline standards, and it inserted it inside a nowiki bracket, so it didn't work. My first reaction was that this would rarely happen, but then I realized that there are many style guidelines that have disabled cat tags inside nowiki, to show a previous category.
A second problem is alphabetization in the cat. If you look at for instance Category:Wikipedia style guidelines, no one wants to file every page under "W" for "Wikipedia", they put the WP:How to copyedit page under H, etc. It would be helpful if Hotcat would automatically paste [[Category:Wikipedia style guidelines|How to copyedit]] on a page called WP:How to copyedit in order to give it the usual alphabetization. - Dan Dank55 (talk)(mistakes) 19:40, 13 May 2008 (UTC)
- Hmm, an interesting problem for case #1. Though it will be a little hard to detect such a case I think. I don't have any real ideas so far on how to detect a special case like this. ( It should always find the last occurrence of Category in the list, but when a page is uncategorized, errors like these are possible I guess. )
- category sorting is something that I have been working on for the next version btw. I'm a little limited in my available time atm, so I cannot promise when that will arrive. --TheDJ (talk • contribs) 20:12, 15 May 2008 (UTC)
[edit] Cat placement, Sortkey & "Minor edit"
Hey there, I've been trying it out and in general find it easy to use -- mostly useful when adding or changing a single category. For me, perhaps the biggest drawback is that it automatically adds the new or changed category at the end of the list. Don't know if that's something that can be tweaked to give us control over where they're placed. Somebody already mentioned the Sortkey issue, which can be very important.
Lastly, I was surprised and concerned to discover that it marks all edits as "minor". Sometimes that is the case, but more usually the edit should NOT be marked as "minor", and could even be considered misleading. If it's not possible to offer users a choice on that, then I strongly urge you to change the default ASAP. Regards, and congrats on your work. Cgingold (talk) 07:47, 26 May 2008 (UTC)
[edit] Category redirects
Is there any way of getting HotCat to distinguish between real categories (like Category:Living people) and category redirects (like Category:Living People), and not suggesting the latter for addition? Adding a category redirect is better than nothing, but it does mean that somebody has to come along and fix it later. --Paul A (talk) 01:20, 6 June 2008 (UTC)
[edit] Bug - moves categories outside of <noinclude> codes
HotCat took category tags that were inside <noinclude> codes, and put the replacement categories outside (with nasty results for the template I was recategorizing). For instance, see Template:Proteopedia this edit [1]. It should leave the category tags where they were, and probably insert new ones next to the old. (If there aren't any category tags, don't know what it should do - maybe for template: pages it should put them inside <noinclude> codes. Or just make the user finish the edit. Have enjoyed the tool aside from this. Thanks. Zodon (talk) 19:46, 7 June 2008 (UTC)
In case it helps to have another example, same thing happened with Template:PDB and Template:PDB Molecule of the Month. Among other things it seems to have problems with category tags that are on same line as the <noinclude> directives (although I am not sure that is the only problem). Zodon (talk) 20:12, 7 June 2008 (UTC)