Difference between revisions 59841193 and 59843765 on enwiki

/* from [[User:DavidHOzAu]]'s monobook.js */
function MyCitation() 
{
   // iterate over all <sup>-elements
   for(var i=0; a = document.getElementsByTagName("sup")[i]; i++) {
      // if found a citation thag
      if(a.getAttribute("title")=="Needs citation" || a.getAttribute("class")=="uncited") {
         // replace it with whatever I want
         //a.innerHTML = '<span style="padding: 0; margin: 0;"><a href="/wiki/Wikipedia:Cite_sources" title="Citation needed"><img src="http://upload.wikimedia.org/wikipedia/en/4/4a/Citation_needed.gif" alt="Citation needed" width="38" height="11" border="0"/></a></span>';
         //a.innerHTML = '[<a href="/wiki/Wikipedia:Cite_sources" title="Citation needed">CITE</a>]';
         a.innerHTML = '{{fact}}<small><tt>{{citation needed}}</tt></small>'
         a.style.verticalAlign = 'top';
      }
   }
}
addOnloadHook(MyCitation);