Skip to content

Commit

Permalink
speedy: prompt for link to deletion discussion page for G4 deletions
Browse files Browse the repository at this point in the history
Per request at WT:TW.
  • Loading branch information
atlight committed Dec 10, 2011
1 parent 4984599 commit b604610
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions modules/twinklespeedy.js
Expand Up @@ -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)
Expand Down

0 comments on commit b604610

Please sign in to comment.