Permalink
Browse files

speedy: prompt for link to deletion discussion page for G4 deletions

Per request at WT:TW.
  • Loading branch information...
atlight committed Dec 10, 2011
1 parent 4984599 commit b604610cda43f331a9fbcd7a594789fc82a65991
Showing with 14 additions and 0 deletions.
  1. +14 −0 modules/twinklespeedy.js
View
@@ -1189,6 +1189,20 @@ Twinkle.speedy.getParameters = function twinklespeedyGetParameters(value, normal
}
parameters.date = "~~~~~";
break;
case 'g4':
var deldisc = prompt( 'Please enter the name of the page where the deletion discussion took place. \nNOTE: For regular AfD and MfD discussions, just click OK - a link will be automatically provided.', "" );
if (deldisc === null)
{
statelem.error( 'Aborted by user.' );
return null;
}
if (deldisc !== "" && (deldisc.substring(0, 9) !== "Wikipedia" || deldisc.substring(0, 3) !== "WP:"))
{
statelem.error( 'The deletion discussion page name, if provided, must start with "Wikipedia:". Cannot proceed.' );
return null;
}
parameters["1"] = deldisc;
break;
case 'g5':
var banneduser = prompt( 'Please enter the username of the banned user if available:', "" );
if (banneduser === null)

0 comments on commit b604610

Please sign in to comment.