User talk:Kbh3rd/Vandal warning toolbox

From Wikipedia, the free encyclopedia

Please leave feedback on this tool here. Thanks. --Kbh3rdtalk 04:35, 22 January 2006 (UTC)


Contents

[edit] Google

The Google lookup feature doesn't seem to always pick up what you have selected on the page. It might be related to browser version, but I'm not sure about that. It's sweet when it works right, and still pretty useful when it doesn't. --Kbh3rdtalk 04:21, 26 January 2006 (UTC)

[edit] Article name pop-up

I've got a separate development version going that pops up a dialog box to prompt for the name of the article, for those templates that have a *-n version. If you enter something, it uses {{subst:test1-n|articlname}}, e.g., otherwise it just uses {{subst:test1}}. I'll put that in whackamole.js soon if it feels right after I use it a bit. --Kbh3rdtalk 04:21, 26 January 2006 (UTC)

Okay, I've installed it. It feels right. In almost all cases it's best to name the offended article in the message, and the text field in the dialog box is a much fatter target for positioning the mouse to paste that in. And this makes it easier for those cases when you don't want to name a single specific article. --Kbh3rdtalk 18:55, 26 January 2006 (UTC)

[edit] Scroll to bottom

I've found the method to make the textarea scroll to the bottom when one of the links adds text at the bottom. The script will be updated sometime today with that feature along with the pop-ups; I've decided that the pop-ups are an improvement. --Kbh3rdtalk 16:07, 26 January 2006 (UTC)

[edit] How to put text at the top instead of the bottom

Question: Do you know how to get this script to add text to the top of the text input area? I'm working on addaption your script for another tool. Thanks —akghetto talk 01:56, 30 January 2006 (UTC)

If you look at the source of the whackEdit function, you'll see where it add text at the end with
f.wpTextbox1.value += "\n\n" + message + " ~~~~ <br clear=\"both\">\n" ;
That adds a concatenation of two newlines, the given message, your signature, and some HTML and a newline to the end of the current "value" of the text box. To put stuff at the front instead, the code would look like this:
f.wpTextbox1.value = newtext + f.wpTextbox1.value ;
That appends the current value of the textbox to the end of newtext (whatever you define that to be), and then sets the value of the textbox to that new composite string. You'd also probably want to not use the line with scrollTop in it that causes it to then scroll to the bottom of the edit textbox. Good luck! --Kbh3rdtalk 22:32, 2 February 2006 (UTC)

[edit] selftest

I added a link for {{selftest}} (and {{selftest-n}}) because I've been needing it frequently. --Kbh3rdtalk 04:06, 22 February 2006 (UTC)

Thanks a lot. Since I've installed your vandal warning toolbox, "selftest" is the only template I remember having to actually type out on a regular basis. Thanks again for all your hard work on the toolbox- it works great! EWS23 | (Leave me a message!) 05:25, 23 February 2006 (UTC)

[edit] Nice, thank you ;)

Very cool tool, thanks for making it! Glen Stollery (My contribs) (talk) 06:41, 11 March 2006 (UTC)

[edit] feedback on your vandal warning script

This thread has been moved here from my talk page.

Hello there, I've been trying out your vandal warning script, and it works quite well. I just have a suggestion on how you might improve it.

You might consider adding some of the more specific messages, such as {{spam}} or {{obscene}}. Of course, you don't want to go overboard and list every single warning template, as shown here.

Again, you've created a great tool for making the whole vandalism warning thing a lot easier. Now I don't have to ask myself, "Is test 2 for blanking, or is it for nonsense?" Thanks! --Tachikoma 16:16, 10 April 2006 (UTC)

Thanks for the suggestions. I don't want the list to get too long, but I'll consider it. I added the selftest message later when it was clear to me that it would be useful, and I'll consider those others. --Kbh3rdtalk 04:20, 11 April 2006 (UTC)

ok!

  • On this same topic, I wondered if it might be advisable to add a section heading along with sub'ing in the selected template to avoid having to remember to add one manually. (I don't like warnings that seem to be part of the previous unrelated section.) Should be straightforward to implement but thought I'd bring it up to you before I go off on my own to mess with it in my own userspace to avoid duplication of effort. Thoughts? B.Rossow talkcontr 18:12, Tuesday [[April 11]] [[2006]] (UTC)
I know exactly what you're talking about. When a user has accumulated a few warnings, they all seemingly run together even though in separate paragraphs. However, in almost all cases where I leave vandalism warnings, where there is usually no other content except for warnings, I much prefer a format that does not use one section per warning. For serial vandals or, especially, shared vandal havens such as school IPs, I use the format that you can see here, and I spend considerable time reformating user talk pages in this manner when I leave messages. I think it makes it much easier for administrators deciding whether a block is deserved to discern the editor's pattern of vandalism and warning history. (The "before" version of that page is here.)
However, perhaps I can have my cake and you can eat it, too. If instead of editing the whole page, you click on the "+" to create a new section, the text that usually goes into the "Edit summary" lands in the section heading box. I may tweak the edit summaries so that they will contain the name of the article, if given, in such a manner that they will serve equally well for either edit summaries for me or for section headings for you (if you decide not to be persuaded to follow my example. ;-) --Kbh3rdtalk 18:58, 11 April 2006 (UTC)
I see your point and it seems more than reasonable. Since I've got my hands full with other projects, I'm just going to stay linked to your script rather than modifying my own copy; if any changes are made, great. It certainly wasn't a sticking point for me — just something I thought I'd mention — and the bottom line is that I'm glad to have one more tool in my arsenal. :-) B.Rossow talkcontr 19:07, Tuesday [[April 11]] [[2006]] (UTC)
I have an updated version in test that I'm liking. The edit summaries are suitable for section headers, if that's how you choose to do it, and I'll have {{spam}}, {{obscene}}, and {{npov}} after the blocked warning since, in my experience, they're less used. I'll tidy up the code and update the toolbox page within a day or two. --Kbh3rdtalk 18:16, 13 April 2006 (UTC)

[edit] Updated 14Apr06

I've updated the tool script per the discussion above.

The edit summaries are more suitable for use as section headers, if that's your style (I don't care for it, as discussed above). The summary text will go into the section header box if you use the + link to add a new section to the talk page, rather than edit the whole page. (That was always the case, BTW.) If you edit the whole page, the summary text goes in the summary box.

Links for {{spam}}, {{npov}}, and {{obscene}} are added after the link for "blocked". The list is getting rather long, and I thought it better to add those less-used messages (in my m.o.), at the end. What do you think? This tool is certainly useful for everyone, not just admins. What do you think of having "blocked", which is only useful to admins, in the middle of the list of warning messages like this? Would it be better to have it at the end anyway?

I'll be updating the documentation page as soon as I finish with this edit to the talk page. --Kbh3rdtalk 19:47, 14 April 2006 (UTC)

[edit] Suggested additions

I find myself often adding Template:SharedIP or Template:SharedIPEDU to user talk pages. It might be useful to add these to the wonderfull toolbox. They'll need to prompt for the name of the ISP or educational institution in question. --jpgordon∇∆∇∆ 22:51, 14 April 2006 (UTC)

I use those templates frequently myself. But the process of finding the name of the institution or ISP takes time, and I always try to find a link to the institution to include, also. With the amount of time that that takes, the little extra that it takes to type in the {{sharedip|...}} is not, to me, a real inconvenience. Making the addition of the template with a single click is not going to significantly ease or speed the whole process. It is with the fast "drive-by" reverts that I find the toolbox most useful. And since I'm concerned about how long the list is getting, I'm not very enthused about adding those particular templates to the list right now. Thanks for your interest and the feedback. --Kbh3rdtalk 04:50, 15 April 2006 (UTC)

[edit] how about localising for other languages?

Hello there, I was wondering if you wouldn't mind if your toolbox were adapted for use in other language Wikipedias?

I have to confess that I tried to do a bit of it myself for the French Wikipédia, but I'm severely hampered by my ignorance of javascript. It's also complicated by the fact that the French Wiki seems to work a little differently when dealing with vandals...warnings starting from test 0 up to test 3, then notifying an admin.

In any case, thanks for coming up with such a useful tool. --Tachikoma 02:28, 27 April 2006 (UTC)

I don't mind it being used or adapted in any manner, and couldn't stop you in any case. (I assume the script is also submited under the assumption of the GFDL.) It wasn't made with ease of localizing in mind, and though it would be easier if it had been, it shouldn't be too hard. I'm not ready to start giving JavaScript lessons, but best wishes to anyone who tries it. --Kbh3rdtalk 04:18, 10 May 2006 (UTC)

[edit] Updated user warning templates

It's been suggested that this toolbox be updated to reflect the new warning templates, and I think that's a good suggestion. I'll have to see if my javascript skills are up to the task of somehow incorporating that matrix in a way that minimizes clicks and typing, maximizing efficiency. Suggestions welcome. --Kbh3rdtalk 00:31, 28 January 2007 (UTC)

Don't mean to nudge, but any progress on this? Love the tool. --ZimZalaBim (talk) 01:54, 24 March 2007 (UTC)
I have had a go for the most common warnings, based on hacking the existing code ... my javascript skills are crude to say the least, but it sort of works. Anyone who wants is welcome to copy from User:Stephen_Burnett/monobook.js, and any improvements are welcome.
It would be specially nice if anyone knows how to get links to the various levels on one line in the toolbox links, that would make it a lot more compact. --Stephen Burnett 22:00, 25 March 2007 (UTC)
Anyone is welcome to steal my edited version of this vandal tool. Here: User:Andy M. Wang/warn.js. -- Andy W. (talk/contrb.) 23:40, 26 March 2007 (UTC)