User:Wyang/common.js

Hello, you have come here looking for the meaning of the word User:Wyang/common.js. In DICTIOUS you will not only get to know all the dictionary meanings for the word User:Wyang/common.js, but we will also tell you about its etymology, its characteristics and you will know how to say User:Wyang/common.js in singular and plural. Everything you need to know about the word User:Wyang/common.js you have here. The definition of the word User:Wyang/common.js will help you to be more precise and correct when speaking or writing your texts. Knowing the definition ofUser:Wyang/common.js, as well as those of other words, enriches your vocabulary and provides you with more and better linguistic resources.
//still experimenting, please help fix any error/clumsiness in the code

//importScript('User:Eirikr/edittools.js');
//importScript('User:Wyang/AddAudio.js');
importScript('User:Dixtosa/AjaxEdit.js');
//importScript('User:suzukaze-c/zhDialMap.js');
//importScript('User:Wyang/autoLoad.js');
importScript('User:V111P/PrefLangs.js');

function autoLoad() {
	var headingText = document.getElementById("firstHeading").innerHTML;
	
	var re_new = new RegExp("^Creating +$");
	var re_allLatin = new RegExp("^Creating +$");
	
	var re_zh = new RegExp("");
	var re_vi = new RegExp("");
	var re_ko = new RegExp("");
	
	if (re_new.test(headingText)) {
		if (document.getElementById("mw-previewheader") === null) {
			
			if (re_zh.test(headingText)) {
				$('textarea').value = "{{subst:" + "zh-n||}}";
				
			} else if (re_vi.test(headingText)) {
				$('textarea').value = "{{subst:" + "vi-n}}";
				
			} else if (re_ko.test(headingText)) {
				$('textarea').value = "{{subst:" + "ko-n}}";
				
			} else if (re_allLatin.test(headingText)) {
				$('textarea').value = "==English==";
				
			} else {
				$('textarea').value = "{{subst:" + "-n}}";
			}
		}
	}
	
	$("#wpTextbox1").on('keyup', function(){
	    var n = $(this).val().replace(/deryy/g,'\n\n====Derived terms====\n{{subst:'+'zh-new/der}}');
	    $(this).val(n);
	});
}

autoLoad();