User:Msh210/hyphenate.js

Hello, you have come here looking for the meaning of the word User:Msh210/hyphenate.js. In DICTIOUS you will not only get to know all the dictionary meanings for the word User:Msh210/hyphenate.js, but we will also tell you about its etymology, its characteristics and you will know how to say User:Msh210/hyphenate.js in singular and plural. Everything you need to know about the word User:Msh210/hyphenate.js you have here. The definition of the word User:Msh210/hyphenate.js will help you to be more precise and correct when speaking or writing your texts. Knowing the definition ofUser:Msh210/hyphenate.js, as well as those of other words, enriches your vocabulary and provides you with more and better linguistic resources.
//many thanks to ] for help with this script
function hyphenate() {
 hyphenated=wgPageName.replace(/_/g,"-");
 apiurl=wgServer;
 apiurl+="/w/api.php?action=query&list=logevents&letype=delete&lelimit=1&prop=info&format=json&callback=existence";
 apiurl+="&titles="+hyphenated+"&letitle="+hyphenated;
 mw.loader.load(apiurl);
}
function existence(param) {
 en=document.getElementById("English");
 n=document.getElementById("Noun");
 if (!en || !n) return;
 hyphenated=wgPageName.replace(/_/g,"-");
 autoedit="s~~{{subst:new_en_adj_attr_bot|" + wgTitle + "|'''" + hyphenated + "''' ~g;";
 url=wgServer+"https://dictious.com/en/"+hyphenated+"?action=edit&autoedit="+autoedit;//+"&autoclick=wpDiff";
 a=document.createElement('a');
 a.setAttribute('href',url);
 a.appendChild(document.createTextNode(hyphenated));
 a.setAttribute('style','color:#22cc00');//match WT:ACCEL
//
 goodforcreation=1;
 if (!(param)) goodforcreation=0;
// if (param) goodforcreation=0;
 if (goodforcreation) {
  en.parentNode.parentNode.insertBefore(a,en.parentNode.nextSibling.nextSibling.nextSibling);//right after the h2; FF-specific?
 }
}
if (wgNamespaceNumber==0 && wgAction=="view" && wgPageName.indexOf("_")!=-1) addOnloadHook(hyphenate);

function ligate() {
 ligated=wgPageName.replace(/אל/g,"ﭏ");
 apiurl=wgServer;
 apiurl+="/w/api.php?action=query&list=logevents&letype=delete&lelimit=1&prop=info&format=json&callback=existence2";
 apiurl+="&titles="+ligated+"&letitle="+ligated;
 mw.loader.load(apiurl);
}
function existence2(param) {
 he=document.getElementById("Hebrew");
 if (!he) return;
 ligated=wgPageName.replace(/אל/g,"ﭏ");
 autoedit="s~~#redirect ] typographic variant~g;";
 url=wgServer+"https://dictious.com/en/"+ligated+"?action=edit&redlink=1&autoedit="+autoedit;
 a=document.createElement('a');
 a.setAttribute('href',url);
 a.appendChild(document.createTextNode(ligated));
 a.setAttribute('style','color:#22cc00');//match WT:ACCEL
//
 goodforcreation=1;
 if (!(param)) goodforcreation=0;
// if (param) goodforcreation=0;
 if (goodforcreation) {
  he.parentNode.parentNode.insertBefore(a,he.parentNode.nextSibling.nextSibling);
 }
}
if (wgNamespaceNumber==0 && wgAction=="view" && wgPageName.indexOf("אל")!=-1) addOnloadHook(ligate);