User talk:^demon/CSD AutoReason
From Wikipedia, the free encyclopedia
Contents |
[edit] Feature request (yes already)
So far, gotta love the feel for it (though I've yet to clear out any backlogs with it). I do have a feature request, though: I generally like stating the criteria name, which the script does (and links, hot damn), but I also sum up the general criteria (ie: "G11: spam" or "A7: non-notable"). Basically, similar to what we see on the Delete page in the drop-down menu, just extended to the "Reason for deletion" field. Thanks! EVula // talk // ☯ // 22:01, 24 April 2007 (UTC)
I'll get to that later, don't have the energy tonight.Done ^demon[omg plz] 06:31, 25 April 2007 (UTC)
How about a "general" A7 field, for ones that aren't bios, websites, firms, bands, or clubs? So that I can just link to A7 and fill in the blank myself? (F'r example, if someone makes an article for their coded-in-the-basement-and-never-released-to-anyone-but-friends-and-relatives game, I could just use the menu to link to A7 and then add "game" to the field.) ♠PMC♠ 18:23, 20 June 2007 (UTC)
[edit] bug report
I can't seem to get this to work for me at all. I'm using IE6, on winXP. any suggestions? DES (talk) 22:38, 24 April 2007 (UTC)
- Looks like ^demon put an extra unnecessary comma after
Underpopulated"}
— Alex Smotrov 23:45, 24 April 2007 (UTC)- I think that should do it, but double check in IE6 again for me. ^demon[omg plz] 06:07, 25 April 2007 (UTC)
- Sorry. Works for me on my home machine which has IE7, but not on my work machine which has IE6 (specifically IE 6.0.2900.2180; installed with SP2). DES (talk) 15:31, 25 April 2007 (UTC)
- When i commented out some other scripts (from 2005, no longer used much) in my monobook.js file, this now works for me, and looks very good. Thanks. DES (talk) 15:45, 25 April 2007 (UTC)
- I think that should do it, but double check in IE6 again for me. ^demon[omg plz] 06:07, 25 April 2007 (UTC)
Done ^demon[omg plz] 17:38, 25 April 2007 (UTC)
[edit] Customization
I have modified the list of reasons (in my personal copy of this script) to include more links to relevant policy and guideline pages, to clarify the reasons a bit, and to split out the sub-sections of A7 so that there can be proper links to the specific relevant notability guideline in each case. I aslo added an item for deleting as part of an AfD close. Here is my revised list: anyone is free to make use of it or any part of it, of course:
/*
*/ ValueArray:[ {"value":"[[WP:CSD#G1|CSD G1]]: [[WP:PN|Patent Nonsense]]","display":"G1 - Nonsense"}, {"value":"[[WP:CSD#G2|CSD G2]]: Test Pages","display":"G2 - Test Pages"}, {"value":"[[WP:CSD#G3|CSD G3]]: [[WP:VAND|Pure Vandalism]]","display":"G3 - Pure Vandalism"}, {"value":"[[WP:CSD#G4|CSD G4]]: Recreation of deleted material","display":"G4 - Recreated Deleted"}, {"value":"[[WP:CSD#G5|CSD G5]]: Contributions by [[Wikipedia:List of banned users|Banned User]]","display":"G5 - Banned User"}, {"value":"[[WP:CSD#G6|CSD G6]]: Housekeeping","display":"G6 - Housekeeping"}, {"value":"[[WP:CSD#G7|CSD G7]]: Author Requests Deletion","display":"G7 - Author Request"}, {"value":"[[WP:CSD#G8|CSD G8]]: Talkpage of non-Existent Article","display":"G8 - Talk Page"}, {"value":"[[WP:CSD#G9|CSD G9]]: [[WP:OFFICE|Office Actions]]","display":"G9 - Office Actions"}, {"value":"[[WP:CSD#G10|CSD G10]]: [[Wikipedia:Attack page|Attack Page]]","display":"G10 - Attack Pages"}, {"value":"[[WP:CSD#G11|CSD G11]]: [[WP:SPAM|Blatant Advertising]]","display":"G11 - Advertising"}, {"value":"[[WP:CSD#G12|CSD G12]]: [[WP:C|Blatant Copyright infringment]]","display":"G12 - Copyright"}, {"value":"[[WP:CSD#A1|CSD A1]]: Very short article providing little or no conteXt","display":"A1 - No ConteXt"}, {"value":"[[WP:CSD#A2|CSD A2]]: Foreign language article that exists on another Wikipedia","display":"A2 - Foreign Language"}, {"value":"[[WP:CSD#A3|CSD A3]]: No content","display":"A3 - No Content"}, {"value":"[[WP:CSD#A5|CSD A5]]: Has been transwikied","display":"A5 - Transwikied"}, {"value":"[[WP:CSD#A7|CSD A7(Bio)]]: Biographical article that does not assert significance","display":"A7 - Unremarkable Bio"}, {"value":"[[WP:CSD#A7|CSD A7(Group)]]: Article about a club or group that does not assert significance","display":"A7 - Unremarkable Group"}, {"value":"[[WP:CSD#A7|CSD A7(Band)]]: Article about a band that does not assert [[WP:MUSIC|significance]]","display":"A7 - Unremarkable Band"}, {"value":"[[WP:CSD#A7|CSD A7(Corp)]]: Article about a company that doesn't assert [[WP:CORP|significance]]","display":"A7 - Unremarkable Firm"}, {"value":"[[WP:CSD#A7|CSD A7(Web)]]: Article about a web site that does not assert [[WP:WEB|significance]]","display":"A7 - Unremarkable Web"}, {"value":"[[WP:CSD#R1|CSD R1]]: Redirect to non-existent page","display":"R1 - Bad Target"}, {"value":"[[WP:CSD#R2|CSD R2]]: Redirect to User/User talk namespaces from mainspace","display":"R2 - Crossnamespace"}, {"value":"[[WP:CSD#R3|CSD R3]]: Implausible typo","display":"R3 - Bad Typo"}, {"value":"[[WP:CSD#I1|CSD I1]]: Redundant to another image","display":"I1 - Redundant"}, {"value":"[[WP:CSD#I2|CSD I2]]: Image is corrupted","display":"I2 - Corrupt/Empty"}, {"value":"[[WP:CSD#I3|CSD I3]]: Improper license","display":"I3 - Improper License"}, {"value":"[[WP:CSD#I4|CSD I4]]: No license","display":"I4 - Lack of License"}, {"value":"[[WP:CSD#I5|CSD I5]]: Is unused and [[WP:NFCC|not free]]","display":"I5 - Unused Unfree"}, {"value":"[[WP:CSD#I6|CSD I6]]: No [[WP:FURG|justification]] given for fair use","display":"I6 - No Fair Use"}, {"value":"[[WP:CSD#I7|CSD I7]]: Bad [[WP:FURG|justification]] given for fair use","display":"I7 - Invalid Fair Use"}, {"value":"[[WP:CSD#I8|CSD I8]]: Image exists on the Commons","display":"I8 - On Commons"}, {"value":"[[WP:CSD#G1|CSD C1]]: Category is Empty (and has been for 4 days or more)","display":"C1 - Empty"}, {"value":"[[WP:CSD#C2|CSD C2]]: Speedy Renaming","display":"C2 - Speedy Rename"}, {"value":"[[WP:CSD#C3|CSD C3]]: Corresponding template was deleted","display":"C3 - Template"}, {"value":"[[WP:CSD#U1|CSD U1]]: User requested deletion","display":"U1 - User Request"}, {"value":"[[WP:CSD#U2|CSD U2]]: Userpage of non-existent user","display":"U2 - No User"}, {"value":"[[WP:CSD#U3|CSD U3]]: Userpage that is primarily a gallery of fair use images","display":"U3 - Fair Use Gallery"}, {"value":"[[WP:CSD#T1|CSD T1]]: Template that is divisive and inflammatory.","display":"T1 - Divisive"}, {"value":"[[WP:CSD#P2|CSD P2]]: Underpopulated","display":"P2 - Underpopulated"}, {"value":"[[WP:ADF|AdF]]: Deleted after discussion at Articles for Deletion","display":"ADF close"} ], /*
*/
[edit] importScript
Is there a reason the source on this page doesn't use the importScript() syntax? The code importScript('User:^demon/csd.js');
works in my monobook.js and is cleaner. CMummert · talk 02:49, 25 May 2007 (UTC)
- Done. Reason being when I first authored the page, I didn't know about importScript(). I found out about it a few days after, and never bothered to switch it over, hehe. ^demon[omg plz] 02:59, 25 May 2007 (UTC)
[edit] CSD I1 and I8
Would it be possible to have CSD I1 and CSD I8 deletions provide a link to the non-deleted image? It is difficult to come across a log, see that an image was deleted, but not know where the other image is located. --Iamunknown 04:52, 16 June 2007 (UTC)
- I'll look into it. Not sure what all that would require, but I'll see. ^demon[omg plz] 03:32, 18 June 2007 (UTC)
[edit] Another bug report
In IE6, I find that the first line of the script must be
if ((document.title.indexOf("Confirm deletion") != -1) || (document.title.indexOf("Confirm delete") != -1)) {
rahter than
if (document.title.indexOf("Confirm deletion") != -1 || document.title.indexOf("Confirm delete") != -1) {
while in IE7 your version works correctly. You might want to verify this and make the correction if you confirm it. Thanks again for this script, btw. DES (talk) 15:51, 20 June 2007 (UTC)
- It doesnt seem to show up in Safari. (I have Java & Javascript enabled) Any experience with Macs? It seems that many of the scripts don't seem to work well except with IE. DGG 19:16, 22 June 2007 (UTC)
-
- I'm not sure why, but after re-starting a few times it finally began working. So thanks fort what is indeed a useful script. I may try some of the others again. DGG 21:24, 22 June 2007 (UTC)
[edit] Deletes information about the deletion
I have stopped using this template in its present form. It removes previous information -- usually more specific information -- in the box, alongwith, usually, the firstfew words of the article. If someone has placed a tag, and I now delete the article, it removes any sign of what the prev. ed. said. If some places a prod, it removes the information, contrary to the policy at WP:PROD. The one time when one wishes to remove any previous content is that in attack pages, it is necessary to be careful to remove the essence of the attack in the article. Otherwise the information should be kept, as it's all a non-admin can see.
I think this should be modified to insert the reason from the template in front of anything pre-xisting in the box, instead of overwriting it. I think that's technically feasible. DGG 21:27, 24 June 2007 (UTC)
-
- I like this change in general, with one big exception: G10. In general, when deleting attack pages it is a Bad Idea to show the attack page contents in the deletion summary, which this now automatically does. For me, at least, this shortcut is now a detriment not a help on G10 deletions. - TexasAndroid 18:59, 25 June 2007 (UTC)
I really like it--thanks for paying close attention. We can now also add and subtract comments as appropriate. we do have to remember to cut the stuff from the attack page, but there's a bold faced reminder. If it could be programmed all the better, but I like a template that lets you do what you want, but defaults to something that's usually reasonable. Maybe I'll delete twice as much now. (joke) DGG
- I agree with TexasAndroid, I don't think this is an improvement. Only for expired prod's this is useful but for the most speedy deletions I do, I don't want a part of the article in the deletion log. Specifically copyvio's and attack articles. But even for spam or nonsense pages it's not necessary to have a sentence of the article in the deletion log. Is there perhaps a way that you can edit something in your monobook so that you can choose if you want pevious content or not with CSD Autoreason? Garion96 (talk) 10:59, 26 June 2007 (UTC)
- I see it's back the old way again. And I cannot see any use for it the way it is; if I'm deleting a previously placed tag the summary is already there & at most I have to say I confirm it; if I'm deleting it from scratch, I do want to give some hint of the contents--the first few words usually make it unmistakably clear why it was deleted, generally better than the reasons themselves do. (except for attack pages). I think the preference, confirmed recently at WT:CSD, is that deleting admins should generally leave a sufficiently descriptive version behind them--it helps avoid challenges and shows clearly what we're doing. If this is the final state, I'll move the discussion there. DGG 03:44, 28 June 2007 (UTC)
- The obvious solution here is to make a version of this in your own userspace and have that the way you like it. – Steel 13:55, 28 June 2007 (UTC)
- I removed the feature of keeping the content in it. A) I didn't like it, and B) I had several people complain to me on IRC that they disliked it too. So I got rid of it. ^demon[omg plz] 04:25, 29 June 2007 (UTC)
- I'm one of those people who complained. It gets in the way and is in no way helpful in the case of, say, images. I don't see how the first few words help explain anything; an A7 article is an A7 article. EVula // talk // ☯ // 04:39, 29 June 2007 (UTC)
- DGG: this alternative script can remember default Mediawiki reason and append it to your chosen reason ∴ Alex Smotrov 23:22, 26 July 2007 (UTC)
- I'm one of those people who complained. It gets in the way and is in no way helpful in the case of, say, images. I don't see how the first few words help explain anything; an A7 article is an A7 article. EVula // talk // ☯ // 04:39, 29 June 2007 (UTC)
- I see it's back the old way again. And I cannot see any use for it the way it is; if I'm deleting a previously placed tag the summary is already there & at most I have to say I confirm it; if I'm deleting it from scratch, I do want to give some hint of the contents--the first few words usually make it unmistakably clear why it was deleted, generally better than the reasons themselves do. (except for attack pages). I think the preference, confirmed recently at WT:CSD, is that deleting admins should generally leave a sufficiently descriptive version behind them--it helps avoid challenges and shows clearly what we're doing. If this is the final state, I'll move the discussion there. DGG 03:44, 28 June 2007 (UTC)
[edit] Minor change
Might I request that the I5 summary be changed from [[WP:CSD#I5|CSD I5]]: Is unused and [[WP:NFCC|not free]] to [[WP:CSD#I5|CSD I5]]: Image is unused and [[WP:NFCC|not free]] or something similar? Thanks. Chick Bowen 04:09, 8 July 2007 (UTC)
[edit] Code questions
I was looking at your code hoping to easily port it to a different project but your coding style is so different from mine that I eneded up writing my version from scratch. Still, I have some questions:
- why do you check document.title and not
(wgAction==delete)
which would also work for other interface languages - is there a good reason why
ValueArray
is an array and not an object like
var ValueArray = { 'G1 - Nonsense': '[[WP:CSD#G1|CSD G1]]: [[WP:PN|Patent Nonsense]]', 'G2 - Test Pages': '[[WP:CSD#G2|CSD G2]]: Test Pages', … …
- why some functions are outside the main
csdDeleteForm
object
∴ Alex Smotrov 16:12, 24 July 2007 (UTC)
Anyway, my "CSD Reasons" script is here. It has 2 additional features: "guess the reason from article page" and "remember default reason". I do realize that since I'm not an admin:
- less people will be willing to try my script and
- I will probably not update it with new reasons
Maybe you could look at the features and incorporate them into your script? ∴ Alex Smotrov 23:22, 26 July 2007 (UTC)
Replies, in order:
- I didn't think about that I guess, I suppose when I do a rewrite eventually, I could do that instead.
- Eh, personal choice. I had a guy from work help me with it a bit, so it was partially his influence.
- Because I'm a bad programmer, no seriously. I do need to fix that.
Hope this clears things up...I plan to clear up a lot of this eventually and make it better, it's just been back-burner'd so to speak. ^demon[omg plz] 13:26, 28 July 2007 (UTC)
[edit] Needs an update
The image deletion dialog has been updated. Unfortunately, this means that the Autoreason script needs to be updated. Pascal.Tesson 23:29, 25 August 2007 (UTC)
- Done ^demon 15:52, 27 August 2007 (UTC)
- The box has just vanished from my delete screen. Did the latest fix break it somehow, or do I just need to do a cache refresh of some sort? - TexasAndroid 16:19, 27 August 2007 (UTC)
- Mmm…you can't just replace wpReason with wpComment because it's still wpReason on non-image deletion pages. May I suggest something like
- The box has just vanished from my delete screen. Did the latest fix break it somehow, or do I just need to do a cache refresh of some sort? - TexasAndroid 16:19, 27 August 2007 (UTC)
var obj = document.getElementById('wpReason') || document.getElementById('wpComment');
[edit] about translation
I tried to translate messages to Chinese, but it's not convenient to translate. So I copy the code to modified in my page. (zh:User:Alexsh/csd.js)--Alex S.H. Lin 19:40, 27 August 2007 (UTC)