Jump to content

Wikipedia talk:HotCat/Archive 1: Difference between revisions

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
Content deleted Content added
Fdcn (talk | contribs)
Fdcn (talk | contribs)
Line 245: Line 245:


== support alias of category ==
== support alias of category ==
<source lang="javascript"><nowiki>
<source lang="javascript">
// New. Code by Lupo & Superm401, added by Lupo, 2008-02-2007
var categoryNames=["[Cc]ategory"]; // namespaces and alias of category
var categoryNames=["[Cc]ategory"]; // namespaces and alias of category
// in chinese: categoryNames=["[Cc]ategory","分类","分類"];
// in chinese: categoryNames=["[Cc]ategory","分类","分類"];
</source>
in function hotcat_is_on_blacklist
<source lang="javascript">
function hotcat_is_on_blacklist ( cat_title ) {
if ( !cat_title ) return 0 ;
re = new RegExp ("("+hotcat_cnames.join("|")+"):", "gi");
cat_title = cat_title.ucFirst.replace( re, "" );
for ( var i = 0 ; i < hotcat_modify_blacklist.length ; i++ ) {
if ( cat_title.substr ( 0 , hotcat_modify_blacklist[i].length ) == hotcat_modify_blacklist[i] ) return 1 ;
}
return 0 ;
}</source>
in function hotcat_find_category
<source lang="javascript">
// New. Code by Lupo & Superm401, added by Lupo, 2008-02-2007
function hotcat_find_category (wikitext, category)
function hotcat_find_category (wikitext, category)
{
{
var cat_name = category.replace(/([\\\^\$\.\?\*\+\(\)])/g, "\\$1");
var cat_name = category.replace(/([\\\^\$\.\?\*\+\(\)])/g, "\\$1");
var initial = cat_name.substr (0, 1);
var initial = cat_name.substr (0, 1);
var cat_regex = new RegExp ("\\[\\[\\s*(" + categoryNames.join("|") + ")\\s*:\\s*"
var cat_regex = new RegExp ("\\[\\[\\s*(?:" + categoryNames.join("|") + ")\\s*:\\s*"
+ (initial == "\\"
+ (initial == "\\"
? initial
? initial
Line 267: Line 281:
return result; // An array containing all matches, with positions, in result[i].match
return result; // An array containing all matches, with positions, in result[i].match
}
}
</nowiki></source>
</source>
--[[User:Fdcn|Fdcn]] ([[User talk:Fdcn|talk]]) 19:01, 9 March 2009 (UTC)
--[[User:Fdcn|Fdcn]] ([[User talk:Fdcn|talk]]) 19:01, 9 March 2009 (UTC)

Revision as of 05:41, 10 March 2009

Please leave your comments and suggestions for HotCat.

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)

Called me? -- Cat chi? 15:24, 11 September 2007 (UTC)

Are you in interested in ... ?

  1. having the HotCat system available in the uploadForm like on Commons ?
  2. being able to add/remove/change multiple categories in one edit ?
  3. 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 (talkcontribs) 16:35, 21 March 2008 (UTC)

A big yes to multiple categories in one edit.--Fabrictramp (talk) 15:34, 31 March 2008 (UTC)
Yes please have multi-cat in one edit feature. Pegasus «C¦ 06:38, 2 April 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)

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 (talkcontribs) 12:30, 27 March 2008 (UTC)
Huh, it's saying this:
Error: importScript is not defined
Source File: http://en.wikipedia.org/enwiki/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 (talkcontribs) 13:04, 27 March 2008 (UTC)
Seems to be working now, thanks. --Closedmouth (talk) 05:13, 28 March 2008 (UTC)

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 (talkcontribs) 11:28, 28 March 2008 (UTC)
Tested. The cause was not your change of locale, but most likely the effect of the fix that was applied (one comment higher on this page). That just happened to coincide with your languagechange I think. --TheDJ (talkcontribs) 12:37, 28 March 2008 (UTC)

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 (talkcontribs) 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)

{{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 (talkcontribs) 19:15, 13 April 2008 (UTC)
It seems that they are only converted, when they need to be dated. Please consider adding. – Leo Laursen –   07:56, 29 August 2008 (UTC)

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)

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 (talkcontribs) 19:17, 13 April 2008 (UTC)
Ok, thanks. Still very useful. Johnbod (talk) 02:30, 16 April 2008 (UTC)

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)

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)

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 (talkcontribs) 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 (talkcontribs) 20:23, 15 May 2008 (UTC)

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]] [[Category:boohooohooo]] [[Category:Boohoooohooo]] 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 (talkcontribs) 20:12, 15 May 2008 (UTC)

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)

just wondering if the sort-thing has been addressed. it would be quite a beneficial function. --emerson7 20:14, 19 November 2008 (UTC)

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)

There are 2 ways to tackle this. I can choose not to list redirects at all in the suggestion box. The other possibility is to list them, and when a user selects such a cat, check if it is a redirect (trough the API), and use the redirect target instead of the original when it is a redirect. I'm not sure which one to prefer. --TheDJ (talkcontribs) 11:50, 18 June 2008 (UTC)

It seems to me that it would be better to not list the redirects at all, so that the user selects the correct category in the first place. Or is the problem that filtering out the redirects is a large task that has to be done fresh every time (and therefore would preferably only be done when necessary)? —Paul A (talk) 08:45, 19 June 2008 (UTC)

done. Might require you to force a reload of your browser though. --TheDJ (talkcontribs)
This won't handle category softredirects however..... Sigh. well that only leaves the possibility to check before adding. I'll have to look into that. (can't do that on the version that everyone is using right away.) --TheDJ (talkcontribs) 10:20, 19 June 2008 (UTC)

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)

It was never designed for things like this. For now, I think i will disable hotcat on the Template namespace. --TheDJ (talkcontribs) 11:35, 18 June 2008 (UTC)

Add more than one cat at a time?

Hello, is there a way to add more than one category in the same edit? Regards—G716 <T·C> 12:07, 1 July 2008 (UTC)

Not at this time. It is on my TODO list, but it requires some major rewriting and I haven't gotten around to it yet. --TheDJ (talkcontribs) 13:06, 1 July 2008 (UTC)

hotcat_find_ins()

Hi, I modified your function to include a check for interwiki links. It uses a string consisting of interwiki prefixes defined in nl:User:Erwin/interwiki.js. The script itself is available at nl:User:Erwin/HotCat.js. Regards, Erwin85 (talk) 14:17, 1 July 2008 (UTC)

Strange bug in template namespace (deletions)

I do not know how to explain this. HotCat deleted most of my template, and all I did was Hotcat-ing its category.

Note that hr:Template:Kat: does this: [[:Category:{{{1}}}|{{{1}}}]]. It might have to do something woth the bug. --Sombrero (talk) 17:44, 10 July 2008 (UTC)

Cats and stub cats

Can HotCat be configured so that it places the caegory before any stub messages and including two line breaks between the two? This gives the resulting page a better appearance and places the stub cat, which is of lesser importance, at the end of the list of cats displayed on an article page. -- Alan Liefting (talk) - 05:24, 11 July 2008 (UTC)

Inadvertent text revert?

I was using the HotCat to quick-add a category for this change - but somehow it also made a revert that should definitely not have been made. Not sure what happened there, but did have a bit of trouble adding a category with accents in it, if that's a clue. Dl2000 (talk) 03:25, 7 August 2008 (UTC)

Firefox3

Has this been tested with Firefox3? Stephen Kirrage talk - contribs 09:39, 7 August 2008 (UTC)

Suddenly it stopped working

Hey, about five minutes ago, HotCat suddenly stopped working. I logged out and logged back it, but to no avail? Is there some kind of server issue going on with this thing? --Eastlaw (talk) 02:25, 15 August 2008 (UTC)

Never mind, the problem was on my end, I took care of it. --Eastlaw (talk) 06:58, 15 August 2008 (UTC)

Opera

I checked it out, it gives the same functionality in Opera as it does in IE7. maybe you could add it to the compatibility page? --Rsrikanth05 (talk) 09:03, 5 September 2008 (UTC)

It works with the Modern Skin as well on Opera. --Rsrikanth05 (talk) 16:19, 28 February 2009 (UTC)

please make HotCat non-case sensitive

I just started using HotCat and I really love it! However, I have a suggestion.

From what I've noticed, the Ajax in HotCat is case sensitive. For example, the category "JavaScript" won't appear if I type "javascript" - it only shows up when I use the exact case. This leads to a minor problem: some categories may contain CamelCase, and the case sensitivity may make things difficult for editors who aren't familiar with the letter cases. I was wondering if you could please remove the case sensitivity from HotCat. This would also make things easier for lazy people like me. :)

Thanks! --Ixfd64 (talk) 00:16, 13 September 2008 (UTC)

Small note: this is actually possible by switching to opensearch API query. —AlexSm 03:21, 13 September 2008 (UTC)
Not a bad idea there AlexSm... I might consider that. --TheDJ (talkcontribs) 15:23, 21 October 2008 (UTC)
This is now implemented. Let me know of any regressions that you find. --TheDJ (talkcontribs) 21:40, 21 October 2008 (UTC)
I now find that if I add a category, capitalizing the first letter unnecessarily, I I sometimes now get a popup error message "Oh dear, our JSON query went down the drain? Error: SyntaxError: syntax error", though the category seems to be added fine & so I just have to click the message away. I thought the issue was capitalization, but it actually seems to happen occasionally but irregularly. I've only noticed it happening in the last few days. I use Firefox 3.03 on a Mac. Dsp13 (talk) 00:42, 26 October 2008 (UTC)
This error indicates that HotCat was not able to parse the results that were suggested by the opensearch API. If you find a way (a suggestion string) that triggers this behavior, then I would love to hear about it. If that's not it, then likely timeouts are the cause, and i could consider simply "hiding" the error. --TheDJ (talkcontribs) 15:57, 26 October 2008 (UTC)
It's only occasional, not a real nuisance - timeouts seems a plausible cause.Dsp13 (talk) 11:58, 28 October 2008 (UTC)

Wikipedia:HOTCAT

Might this page be moved to Wikipedia:Hotcat? αЯβιτЯαЯιŁΨθ (talk) 11:32, 21 October 2008 (UTC)

I see little need to do so at this time. --TheDJ (talkcontribs) 15:23, 21 October 2008 (UTC)

I'm wondering why these have disappeared. I use HotCat a lot to fix red category links, and have just noticed them no longer showing the category edit link on red cats any more. A few others appear to no longer show as well. I'm hopeing that, for the red links at least, these can be re-enabled, since this is a loss of some very useful functionality for the tool. - TexasAndroid (talk) 21:09, 22 October 2008 (UTC)

Works just fine for me. Can you give me examples ? Also, please state your browser,OS and versions. --TheDJ (talkcontribs) 21:26, 22 October 2008 (UTC)
User:TexasAndroid/sandbox. IE 6.0.2900.2180 - TexasAndroid (talk) 21:29, 22 October 2008 (UTC)
OS is XP, not certain the version. - TexasAndroid (talk) 21:30, 22 October 2008 (UTC)
Ok, it works just fine for me. I'm not sure, but i think this is due to changes that I copied from commons. Can you confirm that hotcat on commons has the same problem with red categories under IE6 ? --TheDJ (talkcontribs) 21:32, 22 October 2008 (UTC)
That will have to wait for tomorrow. For now, I'm at a different location, and now on Firefox, and am seeing no problem. - TexasAndroid (talk) 00:36, 23 October 2008 (UTC)

Cyclic category dependencies.

[2], [3]. Can we avoid this? Taemyr (talk) 23:52, 26 October 2008 (UTC)

It could. When I have some time, i'll see if I can look into that. --TheDJ (talkcontribs) 13:35, 28 October 2008 (UTC)

Hidden categories

HotCat used to be able to edit hidden categories (which I found useful), but today that seems to have changed. Dsp13 (talk) 11:59, 28 October 2008 (UTC)

I think I disabled this, because almost all hidden cats are included by templates, which is a situation that HotCat has little control over. As such it's rather pointless and confusing to users I think. --TheDJ (talkcontribs) 13:55, 28 October 2008 (UTC)
OK, that makes sense (I was using it for the Living people category, which at present mostly isn't a result of a template) Dsp13 (talk) 15:05, 28 October 2008 (UTC)

Yasothon's Bangfy museum

You removed Yasothon's Bangfy museum from category:yasothon. So, now let's see you put 'em back where they belong. Pawyilee (talk) 02:16, 30 November 2008 (UTC) Image:Bangfai4.JPG Image:Bangfai1.JPG‎ Image:Bangfai M.JPG‎

Replying on User's talk page. --TheDJ (talkcontribs) 14:08, 30 November 2008 (UTC)

+/-

A lot of +/-s near every category on every page seem a bit confusing... the user could easily remove a category while reviewing them or such, so could you, by any chance, add some option to on-the-fly enable hotcat in that form? (Is there any such thing right now?) -- Mentisock 16:58, 1 December 2008 (UTC)

A suggestion

Well, I am not sure if this can work but I would like to ask the following, since I noticed the big mess comes from editors using HotCat:

  • If an editor tries to add Year of birth missing, Year of death missing to a Talk page to get a message that this must be done in the article's page.
  • If an editor tries to add Date of birth missing, Date of death missing to an article page to get a message that this must be done in the talk page.
  • If an editor tries to add Place of birth missing, Place of death missing to an article page to get a message that this must be done in the talk page.

For any questions about that please read the instructions in the given directories or contact me in my Talk page. Thanks.

-- Magioladitis (talk) 01:20, 3 December 2008 (UTC)

Can you please add a link to the edited category in the edit summary? There already is a link to WP:HOTCAT, it would be very helpful to be able to navigate directly to the category from the article's history page and from my contribution page. ~ PaulT+/C 18:17, 24 December 2008 (UTC)

Using HotCat in other wikis

Hello TheDJ, I'd be interested if your really cool application also works on other wikis except the Wikipedia project and the Commons. I mean, if HotCat would also work in other wikis, this would make it much more famous. I once tested HotCat in the sandbox, so I just wanted to know if it's possible. --88.153.24.251 (talk) 20:59, 24 January 2009 (UTC)

Adding more than one category at a time

Any way you can give the contributors an option (pulldown tabs) to add more than one category at a time? I am speaking for the en.wikinews. DragonFire1024 (talk) 02:36, 27 January 2009 (UTC)

Stub categories

Could it be made so that people can't add stub categories using HotCat? (Because stub categories are not supposed to be added directly, only via the corresponding template.) Or would that require some kind of resource-heavy detecting-that-this-is-a-stub-category process? —Paul A (talk) 07:15, 3 March 2009 (UTC)

I support this suggestion. A stub category contains "stub" in its title. If this modification can be made, at least a warning would be nice. (Check my suggestion above for some other categories like "Date of birth missing", etc.) -- Magioladitis (talk) 08:21, 3 March 2009 (UTC)

support alias of category

var categoryNames=["[Cc]ategory"]; // namespaces and alias of category
                                   // in chinese: categoryNames=["[Cc]ategory","分类","分類"];

in function hotcat_is_on_blacklist

function hotcat_is_on_blacklist ( cat_title ) {
  if ( !cat_title ) return 0 ;
  re = new RegExp ("("+hotcat_cnames.join("|")+"):", "gi");
  cat_title = cat_title.ucFirst.replace( re, "" );
  for ( var i = 0 ; i < hotcat_modify_blacklist.length ; i++ ) {
    if ( cat_title.substr ( 0 , hotcat_modify_blacklist[i].length ) == hotcat_modify_blacklist[i] ) return 1 ;
  }
  return 0 ;
}

in function hotcat_find_category

// New. Code by Lupo & Superm401, added by Lupo, 2008-02-2007
function hotcat_find_category (wikitext, category)
{
  var cat_name  = category.replace(/([\\\^\$\.\?\*\+\(\)])/g, "\\$1");
  var initial   = cat_name.substr (0, 1);
  var cat_regex = new RegExp ("\\[\\[\\s*(?:" + categoryNames.join("|") + ")\\s*:\\s*"
                              + (initial == "\\"
                                 ? initial
                                 : "[" + initial.toUpperCase() + initial.toLowerCase() + "]")
                              + cat_name.substring (1).replace (/[ _]/g, "[ _]")
                              + "\\s*(\\|.*?)?\\]\\]", "g"
                             );
  var result = new Array ();
  var curr_match  = null;
  while ((curr_match = cat_regex.exec (wikitext)) != null) {
    result [result.length] = {match : curr_match};
  }
  return result; // An array containing all matches, with positions, in result[i].match
}

--Fdcn (talk) 19:01, 9 March 2009 (UTC)