Jump to content

User:Thisisborin9/unreferencedtool

From Wikipedia, the free encyclopedia

//

// <nowiki>If you are editing a page, click the unref button on your tab bar to add "{{Unreferenced|{{subst:CURRENTMONTHNAME}} {{subst:CURRENTYEAR}}}}" to the top, set "Marked as unreferenced" as the edit summary, mark it as a minor edit, and submit.
 
function doQunref() {
  document.editform.wpTextbox1.value = '{' + '{' + 'Unreferenced|date=' + '{' + '{' + 'subst:CURRENTMONTHNAME}} ' + '{' + '{' + 'subst:CURRENTYEAR}}}}\n\n' + document.editform.wpTextbox1.value;
  document.editform.wpSummary.value = 'Marked as unreferenced.';
  document.editform.wpMinoredit.checked = true;
  document.editform.submit();
}
 
addOnloadHook(function(){
  if(wgNamespaceNumber==0&&wgAction=="view")
  {
    if(document.getElementById("ca-edit"))
      addPortletLink('p-cactions', "javascript:doQunref()", "unref", "ca-unref", "Mark as unreferenced", "");
  }
});
 
// by Thisisborin9
//