User:Kzollman/monobook.js
Appearance
Code that you insert on this page could contain malicious content capable of compromising your account. If you import a script from another page with "importScript", "mw.loader.load", "iusc", or "lusc", take note that this causes you to dynamically load a remote script, which could be changed by others. Editors are responsible for all edits and actions they perform, including by scripts. User scripts are not centrally supported and may malfunction or become inoperable due to software changes. A guide to help you find broken scripts is available. If you are unsure whether code you are adding to this page is safe, you can ask at the appropriate village pump. This code will be executed when previewing this page. |
The accompanying .css page for this skin is at User:Kzollman/monobook.css. |
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'); }