New experimental tool to quickly add new categories. Called "HotCat", in reminiscence of "hot dog". Sorry.
1. Go to [1], or add "includePage('MediaWiki:HotCat.js');" to your monobook.js (do the latter to see the full functionality) 2. In the list of categories at the bottom of the page, notice the final "(+)" 3. Click on it to add a new category 4. An input box opens. It will suggest a category name "as you type". 5. Click "OK" to add the category.
NOTES: * If you got there via [1], you will only get an open edit window. This is due to the "script test mode". If you add the script to your monobook.js, you will get the full functionality, that is, it will add the category at the bottom of the page and save it. * The script actually retrieves several matches to what you type, but I was too lazy to add a listbox with options. Maybe someone else will implement that :-) * This can be adapted to replace/remove categories. Requires some text parsing, though. Maybe I will do it later, if noone beats me to it :-)
Cheers, Magnus
[1] http://commons.wikimedia.org/w/index.php?title=Image:Valeriana_officinalis_2...
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Magnus Manske's mail client expels the following stream of bytes on 7/7/2007 11:37 AM:
New experimental tool to quickly add new categories. Called "HotCat", in reminiscence of "hot dog". Sorry.
- Go to [1], or add "includePage('MediaWiki:HotCat.js');" to your
monobook.js (do the latter to see the full functionality) 2. In the list of categories at the bottom of the page, notice the
final "(+)"
- Click on it to add a new category
- An input box opens. It will suggest a category name "as you type".
- Click "OK" to add the category.
NOTES:
- If you got there via [1], you will only get an open edit window.
This is due to the "script test mode". If you add the script to your monobook.js, you will get the full functionality, that is, it will add the category at the bottom of the page and save it.
- The script actually retrieves several matches to what you type, but
I was too lazy to add a listbox with options. Maybe someone else will implement that :-)
- This can be adapted to replace/remove categories. Requires some text
parsing, though. Maybe I will do it later, if noone beats me to it :-)
[1]
http://commons.wikimedia.org/w/index.php?title=Image:Valeriana_officinalis_2... Very cool tool! However, you might want to expand the text box a bit, since it goes back to the beginning of the category name when it suggests something new. Something that fits the length of "Diagrams of road signs of the United States" may be feasible.
- -- Charli (vishwin60/zelzany) (whisper) Go to sleep, you are not hungry! ~anonymous flight attendant
On 07/07/07, Magnus Manske magnusmanske@googlemail.com wrote:
New experimental tool to quickly add new categories. Called "HotCat", in reminiscence of "hot dog". Sorry.
And not "Cool Cat"? ;-)
- d.
-----Original Message----- From: commons-l-bounces@lists.wikimedia.org [mailto:commons-l- bounces@lists.wikimedia.org] On Behalf Of David Gerard Sent: Saturday, July 07, 2007 12:11 PM To: Wikimedia Commons Discussion List Subject: Re: [Commons-l] HotCat JavaScript tool, V0.1
On 07/07/07, Magnus Manske magnusmanske@googlemail.com wrote:
New experimental tool to quickly add new categories. Called "HotCat", in reminiscence of "hot dog". Sorry.
And not "Cool Cat"? ;-)
- d.
I understand the name Cool Cat is available....
- c.
On 7/7/07, Cary Bass cbass@wikimedia.org wrote:
-----Original Message----- From: commons-l-bounces@lists.wikimedia.org [mailto:commons-l- bounces@lists.wikimedia.org] On Behalf Of David Gerard Sent: Saturday, July 07, 2007 12:11 PM To: Wikimedia Commons Discussion List Subject: Re: [Commons-l] HotCat JavaScript tool, V0.1
On 07/07/07, Magnus Manske magnusmanske@googlemail.com wrote:
New experimental tool to quickly add new categories. Called "HotCat", in reminiscence of "hot dog". Sorry.
And not "Cool Cat"? ;-)
- d.
I understand the name Cool Cat is available....
- c.
Just to go with the flow I tested it on http://commons.wikimedia.org/wiki/Image:User-Coolcat.svg , and when clicking on the (+) icon the box appeared (very cool how it suggests things, btw... though it did interfere with my typing somewhat, made it stall a tad), I typed in my text, and then it opened the edit page; but there were no changes made to the text.
Is it supposed to automatically add [[Category:Foo]] at the bottom of the page and then you just click "save", or is everything supposed to be automatic? Just wondering, but great work on such short notice :)
On 7/7/07, Ayelie ayelie.at.large@gmail.com wrote:
On 7/7/07, Cary Bass cbass@wikimedia.org wrote:
-----Original Message----- From: commons-l-bounces@lists.wikimedia.org
[mailto:commons-l-
bounces@lists.wikimedia.org] On Behalf Of David Gerard Sent: Saturday, July 07, 2007 12:11 PM To: Wikimedia Commons Discussion List Subject: Re: [Commons-l] HotCat JavaScript tool, V0.1
On 07/07/07, Magnus Manske magnusmanske@googlemail.com wrote:
New experimental tool to quickly add new categories. Called "HotCat", in reminiscence of "hot dog". Sorry.
And not "Cool Cat"? ;-)
- d.
I understand the name Cool Cat is available....
- c.
Just to go with the flow I tested it on http://commons.wikimedia.org/wiki/Image:User-Coolcat.svg , and when clicking on the (+) icon the box appeared (very cool how it suggests things, btw... though it did interfere with my typing somewhat, made it stall a tad), I typed in my text, and then it opened the edit page; but there were no changes made to the text.
Is it supposed to automatically add [[Category:Foo]] at the bottom of the page and then you just click "save", or is everything supposed to be automatic? Just wondering, but great work on such short notice :)
It is fully automatic if you include it on your monobook.js page, as described (I tried it on that image, check the history:-)
You probably clicked on the link I provided as "[1]". This uses the "script test mode", which unfortunately does not carry to the next page, so no text was added.
Right now, I am working on category removal via a "(-)" link after each category. Once that is done, I'll glue it together to have a "replace" mode for free :-) Any suggestions as to what the link for replacing a category should look like? "(X)", maybe?
Cheers, Magnus
On 7/7/07, Magnus Manske magnusmanske@googlemail.com wrote:
On 7/7/07, Ayelie ayelie.at.large@gmail.com wrote:
Just to go with the flow I tested it on http://commons.wikimedia.org/wiki/Image:User-Coolcat.svg , and when clicking on the (+) icon the box appeared (very cool how it suggests things, btw... though it did interfere with my typing somewhat, made it stall a tad), I typed in my text, and then it opened the edit
page;
but there were no changes made to the text.
Is it supposed to automatically add [[Category:Foo]] at the bottom of
the
page and then you just click "save", or is everything supposed to be automatic? Just wondering, but great work on such short notice :)
It is fully automatic if you include it on your monobook.js page, as described (I tried it on that image, check the history:-)
You probably clicked on the link I provided as "[1]". This uses the "script test mode", which unfortunately does not carry to the next page, so no text was added.
Right now, I am working on category removal via a "(-)" link after each category. Once that is done, I'll glue it together to have a "replace" mode for free :-) Any suggestions as to what the link for replacing a category should look like? "(X)", maybe?
Cheers, Magnus
Nope, I added it to my monobook and force reloaded, etc. same as when adding all scripts.
Symbol for replacing a category? Hm. Adding is (+), removing is (-); (X) would be "delete" I think, not replace. What about (<--) or (↔) ? Or more detailed, though longer; (--><--), (+ <--), (<-- +), (<-- + -->). I'm thinking about the icons used on "merge" templates on wikipedia; hard to represent in a few one-line characters :) You could even go simpler and use (*) though people won't know what it indicates right away. What about (±)? remove one category, add another?
The latest version can now change categories as well! Try it out, it almost feels like flickr tag-editing ;-)
On 7/7/07, Ayelie ayelie.at.large@gmail.com wrote:
Nope, I added it to my monobook and force reloaded, etc. same as when adding all scripts.
Strange. I added a category to the image you mentioned, and it worked fine. Well, maybe the current version is better...
Symbol for replacing a category? Hm. Adding is (+), removing is (-); (X) would be "delete" I think, not replace. What about (<--) or (↔) ? Or more detailed, though longer; (--><--), (+ <--), (<-- +), (<-- + -->). I'm thinking about the icons used on "merge" templates on wikipedia; hard to represent in a few one-line characters :) You could even go simpler and use (*) though people won't know what it indicates right away. What about (±)? remove one category, add another?
I ended up using the "±" one. Probably the most intuitive, as these things go...
Cheers, Magnus
I just had a quick look using the preview, but a couple of things would be nice: - don't offer +- on license categories (possibly don't put a +- on any categories that was added using a template, only on categories added using direct wikitext? I suppose that'd be harder to work out) - put in auto edit summary - something like "edited categories using [[MediaWiki:HotCat.js|]]"
nice work again, Magnus! :)
cheers Brianna
On 7/8/07, Brianna Laugher brianna.laugher@gmail.com wrote:
I just had a quick look using the preview, but a couple of things would be nice:
- don't offer +- on license categories (possibly don't put a +- on any
categories that was added using a template, only on categories added using direct wikitext? I suppose that'd be harder to work out)
I can add a "blacklist" for categories not showing "+-". However, the information wether or not this category coems from a template or not is not preserved in the rendered page. I'd have to query the API *on every single page view*, which will bring the servers to a grinding halt if only enough people use my script. Homemade DDOS attack, anyone? ;-) Even without this "little side effect", it would be hard/impossible to get this working correctly, as template categories are usually hidden in <includeonly> tags.
- put in auto edit summary - something like "edited categories using
[[MediaWiki:HotCat.js|]]"
I can do that...
nice work again, Magnus! :)
Thanks!
Cheers, Magnus
Hmm... adding this to this thread because it kind of fits in with the idea of HotCat.js.
What about the ability to mass-add images to a category? I'm thinking of cases where people have created a gallery with images but none are categorised; this happens a lot and it's a pain to open every image and edit to add the category. Something like Magnus's category move javascript, where you can select images in a category and move them to another, but activated for galleries.
I'm thinking...
- Ability to select multiple images in a gallery and add the same category to them all in one go - When in a category, have a button "add images to this category" which, when clicked, pops up a box where you can add the titles of multiple images.
This would be very helpful.. perhaps it could even be written into an existing script, or based off one?
On 7/9/07, Ayelie ayelie.at.large@gmail.com wrote:
Hmm... adding this to this thread because it kind of fits in with the idea of HotCat.js.
What about the ability to mass-add images to a category? I'm thinking of cases where people have created a gallery with images but none are categorised; this happens a lot and it's a pain to open every image and edit to add the category. Something like Magnus's category move javascript, where you can select images in a category and move them to another, but activated for galleries.
I'm thinking...
Ability to select multiple images in a gallery and add the same category to them all in one go When in a category, have a button "add images to this category" which, when clicked, pops up a box where you can add the titles of multiple images. This would be very helpful.. perhaps it could even be written into an existing script, or based off one?
Cat-a-lot could be altered to work on gallery pages as well. I will have a look at this tomorrow...
The "add images to this category" function sounds less efficient, as you will have to find and copy image names on other pages first. But if you think it would be useful, well :-)
Meanwhile, I have added a suggestion list to HotCat. It's kinda experimental, but hey, maybe someone will make it work more fluently ;-)
Cheers, Magnus