Jump to content

User:Kzollman/monobook.js

From Wikipedia, the free encyclopedia
Note: After saving, you have to bypass your browser's cache to see the changes. Google Chrome, Firefox, Microsoft Edge and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.
 
function addRefsLinks(btn) {
  var pageTitle=document.getElementsByTagName('h1')[0].innerHTML;
  var lks=document.links;
  for (var i=0; i<lks.length; ++i) {
    var article=articleFromURL(lks[i].href);
    if(!article) continue;
    var talk=null;
    if (!userName(article)) continue;
    talk=talkPage(article);
    if(!talk) continue;
    var a=document.createElement('a');
    a.href=titlebase + talk +
      '&action=edit&autoedit=s#$#\n==Sources for ' +
      pageTitle + 
      '== Hello, good work on [[' +
      pageTitle + 
      ']], and thanks for the contribution. However, you did not provide any [[WP:CITE|references or sources]] in the article. Keeping Wikipedia accurate and verifiable is very important, and as you might be aware there is currently a push to encourage editors to [[WP:CITE|cite the sources]] they used when adding content. Can you list in the article any websites, books, or other sources that will allow people to verify the content in [[' +
      pageTitle + 
      ']]? You can simply add links, preferably as the [[Wikipedia:Inline citation|inline citations]], or see [[WP:CITET|citation templates]] for different citation methods. Thanks! best, kevin <b>[</b>[[User:Kzollman|kzollman]]<b>][</b>[[User talk:Kzollman|talk]]<b>]</b> 03:43, 12 December 2005 (UTC)#&autoclick=' +
      btn + 
      '&autosummary=References for [['+
      pageTitle+
      ']]';
    var tt=document.createTextNode(' . . ');
    a.innerHTML='request references';
    lks[i].parentNode.appendChild(tt);
    lks[i].parentNode.appendChild(a);
  }
}

var refs=addRefsLinks;


//Interiot's javascript edit counter
if (document.title.indexOf('User:Interiot/Tool2/code.js') != -1) {
  mw.loader.load('https://wiki.riteme.site/w/index.php?title=User:Interiot/Tool2/code.js&action=raw&ctype=text/javascript'); }