//
/////////////////////////////////////////////////////////////////////////////////////////////////////////// //Created by [[User:Magnus animum]] to make MOTD maintenance work more easy. // //Note: To close nominations using this script, it MUST be done section by section. If you want to mass // //close, I suggest that you do it the old-fashioned way — manually typing the outcome of the nomination. // /////////////////////////////////////////////////////////////////////////////////////////////////////////// function closemottonom() { result = prompt("What was the result?"); reason = prompt("Why?"); document.editform.wpTextbox1.value = document.editform.wpTextbox1.value += "\n" + "'''" + result + ":''' " + reason + ". " + "~" + "~" + "~" + "~"; document.editform.wpSummary.value = document.editform.wpSummary.value + "Closing. result was " + result + " because of " + reason; document.editform.wpMinoredit.checked = false; } function closemottotab() { addPortletLink( 'p-cactions', "javascript:closemottonom()", "close nom", "ca-close nom", "close nom", "close nom"); } addOnloadHook(function() { if (document.title.indexOf("Editing Wikipedia:Motto of the day/Nominations") != -1 && document.title.indexOf("\(section\)") != -1) { addOnloadHook(closemottotab); } }); //
//