User:Rcsprinter123/warn.js

function warn {   var txt = document.editform.wpTextbox1; var prefix = prompt("What is the prefix? Change if appropriate", "uw-") var type = prompt("Which standard warning do you wish to issue?", "test"); var severity = prompt("How severe is the violation?", "1"); var page = prompt("What page?"); var msgtext = "" + page + "  Rcsprinter  (Gimme a message)  10:30, 28 October 2011 (UTC)"; if(page.length == 0) {page = "Wikipedia"} else { page = ""+page+"" }; var summary = "Your recent edits to " + page ; document.editform.wpSummary.value = summary; document.editform.wpMinoredit.checked = true; if(txt.value.length > 0) txt.value += '\n'; txt.value += msgtext; document.editform.submit; } /*