User:Casper2k3/Javascript/artnoticebutton.js

// function doHoax{ document.getElementById('jsWaitMessageBox').innerHTML = ' Tagging article as a possible hoax - Please wait... '; doTag('hoax', '', 'Article is a suspected hoax'); }; function doInUse{ document.getElementById('jsWaitMessageBox').innerHTML = ' Tagging article as in use - Please wait... '; doTag('inuse', '', 'Article is in use'); };

function doCleanup{ document.getElementById('jsWaitMessageBox').innerHTML = ' Tagging article as needing cleanup - Please wait... '; doTag('cleanup-date', '|'+month+' '+year, 'Article is in need of cleanup'); }; function doArticle{ document.getElementById('jsWaitMessageBox').innerHTML = ' Tagging article as sounding like an advert - Please wait... '; doTag('advert', '', 'Article sounds like an advert'); }; function doNotEnglish{ document.getElementById('jsWaitMessageBox').innerHTML = ' Tagging article as needing translation - Please wait... '; doTag('notenglish', '', 'Article needs translation'); };

function doTag(tag, exInfo, reason){ document.location = document.URL + "?action=edit&autoedit=s/^/\n\n/&autosummary=" + reason + " by Casper2k3 (WP:RCP)&autoclick=wpSave"; }; function artNoticeButton{ document.getElementById('jsArticleMessageBox').innerHTML = ' Hoax  - In Use  - Copyvio  - Cleanup  - Advert  - <font color="#0000FF">Not English </a> '; }; //