Wikipedia:WikiProject User scripts/Scripts/warn.js: Difference between revisions

Content deleted Content added
add prefix prompt
some more contractions
Line 1:
/*<pre>
Script version 2.2.1
Versions 1.0-2.0 in history of [[User:Sceptre/monobook.js]]... I think
*/
Line 6:
{
var txt = document.editform.wpTextbox1;
var type = prompt("Which standard warning do you wish to issue?");
var prefix = prompt("What is the prefix? Change if appropriate", "uw-")
var severitytype = prompt("HowWhich severestandard iswarning thedo violationyou wish to issue?", "test");
var severity = prompt("How severe is the violation?", "1");
var page = prompt("What page?");
if(type.length == 0) type = "test";
if(severity.length == 0) severity = "1";
var msgtext = "{{subst:"+prefix + type + severity + "|" + page + "|subst=subst:}} ~~~~";
if(page.length == 0) {page = "Wikipedia"} else { page = "[["+page+"]]" };