User:Casper2k3/Back up

From Wikipedia, the free encyclopedia

// User:Lupin/popups.js

document.write('<script type="text/javascript" src="'

            + 'http://en.wikipedia.org/w/index.php?title=User:Lupin/popups.js' 
            + '&action=raw&ctype=text/javascript&dontcountme=s"></script>');

function addlilink(tabs, url, name, id, title, key){

   var na = document.createElement('a');
   na.href = url;
   na.appendChild(document.createTextNode(name));
   var li = document.createElement('li');
   if(id) li.id = id;
   li.appendChild(na);
   tabs.appendChild(li);
   if(id)
   {
       if(key && title)
       {
           ta[id] = [key, title];
       }
       else if(key)
       {
           ta[id] = [key, ];
       }
       else if(title)
       {
           ta[id] = [, title];
       }
   }
   // re-render the title and accesskeys from existing code in wikibits.js
   akeytt();
   return li;

}

function addTab(url, name, id, title, key){

   var tabs = document.getElementById('p-cactions').getElementsByTagName('ul')[0];
   return addlilink(tabs, url, name, id, title, key);

}

//Please leave the following line //user:Where/easy db //Start db script addOnloadHook(function() {

 if (document.title.indexOf("User:") != 0 &&document.title.indexOf("User talk") != 0 && document.title.indexOf("Editing ") != 0 && document.URL.search(/\?/) == -1 && document.title.indexOf("Image:") != 0 )  {
    addTab("javascript:easyDbVanity()", "vanity", "ca-db0", "Report this page for Speedy Deletion - Reason: Vanity(Bio)", "");
    addTab("javascript:easyDbBand()", "band", "ca-db0", "Report this page for Speedy Deletion - Reason: Band", "");
    addTab("javascript:easyDbClub()", "club", "ca-db0", "Report this page for Speedy Deletion - Reason: Club", "");
    addTab("javascript:easyDbGroup()", "group", "ca-db0", "Report this page for Speedy Deletion - Reason: Group", "");
    addTab("javascript:easyDbNonsense()", "nonsense", "ca-db0", "Report this page for Speedy Deletion - Reason: Nonsense", "");
    addTab("javascript:easyDbContext()", "nocontext", "ca-db0", "Report this page for Speedy Deletion - Reason: No Context", "");
    addTab("javascript:easyDbAttack()", "attack", "ca-db0", "Report this page for Speedy Deletion - Reason: Attack", "");
    addTab("javascript:easyDbWikify()", "wikify", "ca-db0", "Report this page as needing to be wikified", "");
 }

if (document.title.indexOf("Image:") != -1) {

    addTab("javascript:easyDbImgNoSource()", "no source", "ca-db0", "Report this image as having no source", "");
    addTab("javascript:easyDbImgNoCopyright()", "no copyright", "ca-db0", "Report this image as having no copyright", "");

}

 if (document.title.indexOf("Editing User talk:") != -1) {
    addTab("javascript:userMsgImgNoSource()", "ImgNoSource", "ca-usermsg", "Message: Image has no source information", "");
    addTab("javascript:userMsgImgNoCopyright()", "ImgNoCopyright", "ca-usermsg", "Message: Image has no copyright information", "");
    addTab("javascript:userMsgTest()", "test", "ca-usermsg", "Message: Test", "");
    addTab("javascript:userMsgNonsense()", "nonsense", "ca-usermsg", "Message: Nonsense Warning", "");
    addTab("javascript:userMsgBlanking()", "blanking", "ca-usermsg", "Message: Blanking Warning", "");
    addTab("javascript:userMsgVandalism()", "vandalism", "ca-usermsg", "Message: Vandalism Warning", "");
    addTab("javascript:userMsgFinal()", "final", "ca-usermsg", "Message: Final Warning", "");
    addTab("javascript:userMsgCandSpeedy()", "candSpeedy", "ca-usermsg", "Message: Candidate for Speedy Deletion", "");
    addTab("javascript:userMsgDRMSpeedy()", "DRMSpeedy", "ca-usermsg", "Warning: Do not remove speedy delete notices", "");
 }

});

function easyDbImgNoSource() { db="subst:nsd"; dbreason="Image tagged. (Reason: No Source Information)";

 document.location = document.URL + "?action=edit&autoedit=s/^/\nTemplate:" + db + "\n/&autosummary=" + dbreason + " by Casper2k3 (WP:UI)&autoclick=wpSave";

} function easyDbImgNoCopyright() { db="subst:nld"; dbreason="Image tagged. (Reason: No Copyright Information)";

 document.location = document.URL + "?action=edit&autoedit=s/^/\nTemplate:" + db + "\n/&autosummary=" + dbreason + " by Casper2k3 (WP:UI)&autoclick=wpSave";

} function easyDbVanity() { db="db-bio"; dbreason="Tagged for speedy deletion (Reason:CSD: A7)";

 document.location = document.URL + "?action=edit&autoedit=s/^/\nTemplate:" + db + "\n/&autosummary=" + dbreason + " by Casper2k3 (WP:RCP)&autoclick=wpSave";

} function easyDbBand() { db="db-band"; dbreason="Tagged for speedy deletion (Reason:CSD: A7)";

 document.location = document.URL + "?action=edit&autoedit=s/^/\nTemplate:" + db + "\n/&autosummary=" + dbreason + " by Casper2k3 (WP:RCP)&autoclick=wpSave";

} function easyDbClub() { db="db-club"; dbreason="Tagged for speedy deletion (Reason:CSD: A7)";

 document.location = document.URL + "?action=edit&autoedit=s/^/\nTemplate:" + db + "\n/&autosummary=" + dbreason + " by Casper2k3 (WP:RCP)&autoclick=wpSave";

} function easyDbGroup() { db="db-group"; dbreason="Tagged for speedy deletion (Reason:CSD: A7)";

 document.location = document.URL + "?action=edit&autoedit=s/^/\nTemplate:" + db + "\n/&autosummary=" + dbreason + " by Casper2k3 (WP:RCP)&autoclick=wpSave";

} function easyDbNonsense() { db="db-nonsense"; dbreason="Tagged for speedy deletion (Reason:CSD: G1)";

 document.location = document.URL + "?action=edit&autoedit=s/^/\nTemplate:" + db + "\n/&autosummary=" + dbreason + " by Casper2k3 (WP:RCP)&autoclick=wpSave";

} function easyDbAttack() { db="db-attack"; dbreason="Tagged for speedy deletion (Reason:CSD: G3)";

 document.location = document.URL + "?action=edit&autoedit=s/^/\nTemplate:" + db + "\n/&autosummary=" + dbreason + " by Casper2k3 (WP:RCP)&autoclick=wpSave";

} function easyDbContext() { db="nocontext"; dbreason="Tagged for speedy deletion (Reason:CSD: A1)";

 document.location = document.URL + "?action=edit&autoedit=s/^/\nTemplate:" + db + "\n/&autosummary=" + dbreason + " by Casper2k3 (WP:RCP)&autoclick=wpSave";

} function easyDbWikify() { var date = prompt("What is the date: (E.G. January 2006)"); db="wikify-date"; dbreason="Tagged for wikification (" + date + ")";

 document.location = document.URL + "?action=edit&autoedit=s/^/\nTemplate:" + db + "\n/&autosummary=" + dbreason + " by Casper2k3 (WP:RCP)&autoclick=wpSave";

}

function userMsgTest() { var page = prompt("What is the page name:"); document.editform.wpTextbox1.value += "\n==Your test has been removed or reverted: " + page + "==\nThank you for experimenting with the page " + page + " on Wikipedia. Your test worked, and it has been reverted or removed. Please use the sandbox for any other tests you want to do. Take a look at the welcome page if you would like to learn more about contributing to our encyclopedia. \n--~" + "~" + "~" + "~"; document.editform.wpSummary.value = "User given test warning (Test) by Casper2k3 (WP:RCP)"; }

function userMsgNonsense() { var page = prompt("What is the page name:"); document.editform.wpTextbox1.value += "\n==Please do not post Patent Nonsense: " + page + "==\nPlease refrain from adding nonsense to Wikipedia, as you did to " + page + ". It is considered vandalism. If you would like to experiment, use the sandbox. \n--~" + "~" + "~" + "~"; document.editform.wpSummary.value = "User given nonsense message warning (Test2) by Casper2k3 (WP:RCP)"; }

function userMsgBlanking() { var page = prompt("What is the page name:"); document.editform.wpTextbox1.value += "\n==Please stop removing content: " + page + "==\nPlease refrain from removing content from Wikipedia, as you did to " + page + ". It is considered vandalism. If you want to experiment, please use the sandbox. Thank you. \n--~" + "~" + "~" + "~"; document.editform.wpSummary.value = "User given blanking warning (Test2a) by Casper2k3 (WP:RCP)"; } function userMsgVandalism() { var page = prompt("What is the page name:"); document.editform.wpTextbox1.value += "\n==Stop vandalising pages: " + page + "==\nPlease stop. If you continue to vandalize pages, as you did to " + page + ", you will be blocked from editing Wikipedia. \n--~" + "~" + "~" + "~"; document.editform.wpSummary.value = "User given vandalism warning (Test3) by Casper2k3 (WP:RCP)"; } function userMsgFinal() { var page = prompt("What is the page name:");

document.editform.wpTextbox1.value += "\n==Final Warning - Further vandalism will result in you being blocked: " + page + "==\n

This is your last warning.
The next time you vandalize a page, as you did to " + page + ", you will be blocked from editing Wikipedia. \n---~" + "~" + "~" + "~";

document.editform.wpSummary.value = "User given final warning (Test4) by Casper2k3 (WP:RCP)"; }

function userMsgCandSpeedy() { var page = prompt("What is the page name:"); document.editform.wpTextbox1.value += "\n==Article submitted is a candidate for Speedy Deletion: " + page + "==\nA tag has been placed on " + page + ", requesting that it be speedily deleted from Wikipedia. This has been done because the article seems to be about a person, group of people, band, club, company or website, but it does not indicate how or why the subject is notable. If you can indicate why " + page + " is really notable, I advise you to edit the article promptly, and also put a note on Talk:" + page + ". An admin should check for such edits before deleting the article. Feel free to leave a note on my talk page if you have any questions about this. Please read our criteria for speedy deletion, particularly item 7 under Articles. You might also want to read our general biography criteria. Please do not remove the speedy deletion tag yourself. To contest the tagging and request that admins should wait a while for you to assert his/her/their notability, please affix the template {{hangon}} to the page, and then immediately add such an assertion. It is also a very good idea to add citations from reliable sources to ensure that your article will be verifiable.\n--~" + "~" + "~" + "~"; document.editform.wpSummary.value = "Notice- Article submitted is a candidate for WP:SD by Casper2k3 (WP:RCP)"; } function userMsgDRMSpeedy() { var page = prompt("What is the page name:"); var warnlevel = prompt("What warning do you want to give: _=Polite 2=Warn 3=BlockWarn 4=Final"); document.editform.wpTextbox1.value += "\n==Please do not remove Speedy Deletionnotices from articles you have created yourself: " + page + "==\nTemplate:Drmspeedy" + warnlevel + "\n--~" + "~" + "~" + "~"; document.editform.wpSummary.value = "Warning- Do not remove Speedy Deletion notices (drmspeedy) by Casper2k3 (WP:RCP)"; }

function userMsgImgNoSource() { var image = prompt("What is the image name:"); document.editform.wpTextbox1.value += "\nTemplate:" + "subst:Image source\n--~" + "~" + "~" + "~"; document.editform.wpSummary.value = "Notice- Image tagged as 'No Source' WP:UI by Casper2k3 (WP:RCP)"; }

function userMsgImgNoCopyright() { var image = prompt("What is the image name:"); document.editform.wpTextbox1.value += "\nTemplate:" + "subst:Image copyright\n--~" + "~" + "~" + "~"; document.editform.wpSummary.value = "Notice- Image tagged as 'No Copyright' WP:UI by Casper2k3 (WP:RCP)"; }

//End db script


//Please leave the following line //user:Where/usertabs