Revision 484117 of "MediaWiki:Onlyifediting.js" on kuwiki/* Ji de.wikipedia <source lang="javascript"><nowiki> */
var charinsert = {
"Kurdî":[
["Ç", "ç", "Ê", "ê", "Î", "î", "Ş", "ş", "Û", "û", "Ẍ", "ẍ", "Ḧ", "ḧ"],
[ ["„","“"], "’", ["‚","‘"], ["“","”"], ["‘","’"], ["«","»"], ["‹","›"], ["»","«"], ["›","‹"], "–" ],
[ "+", "−", "·", "×", "÷", "≈", "≠", "±", "≤", "≥", "²", "³", "½", "†", "#", "*",
"‰", "§", "€", "¢", "£", "¥", "$", "¿", "¡", "∞", "‣", "•", ["〈","〉"], "…", "→", "↔"],
[" ", ["[[","]]","","Girêdan"], "|", ["{{","}}","","Şablon"], ["~~~~","","","Îmze"] ],
["°", "′", "″"]
],
"Koda wîkiyê":[
[ [ "[[Kategorî:","]]" ], [ "[[Wêne:","]]" ], [ "#BERALÎKIRIN [[","]]" ] ],
[ "{{Çavkanî}}", "{{çp}}" ],
[ [ "<ref>","<\/ref>" ], [ "<ref name=\"","\"><\/ref>" ], [ "<ref name=\"", "\" \/>" ], "<references \/>" ],
[ [ "<nowiki>","<\/nowiki>" ], [ "<!--","-->" ], [ "<code>","<\/code>" ], [ "<source lang=\"","\"><\/source>" ],
[ "<noinclude>","<\/noinclude>" ], [ "<includeonly>","<\/includeonly>" ] ],
[ [ "<math>","<\/math>" ], [ "<sup>","<\/sup>" ], [ "<sub>","<\/sub>" ] ],
],
"IPA":[
{ "class":"IPA" },
["p", "t̪", "t", "ʈ", "c", "k", "q", "ʡ", "ʔ"],
["b", "d̪", "d", "ɖ", "ɟ", "ɡ", "ɢ"],
["ɓ", "ɗ", "ʄ", "ɠ", "ʛ"],
["t͡s", "t͡ʃ", "t͡ɕ", "d͡z", "d͡ʒ", "d͡ʑ"],
["ɸ", "f", "θ", "s", "ʃ", "ʅ", "ʆ", "ʂ", "ɕ", "ç", "ɧ", "x", "χ", "ħ", "ʜ", "h"],
["β", "v", "ʍ", "ð", "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"ɑ", "ɑ̯", "ɑ̃", "ɒ", "ɒ̯", "ɒ̃"],
["ˈ", "ˌ", "ː", "ˑ", "˘", ".", "‿", "|", "‖"]
],
"Latînî":[
["Á", "á", "Ć", "ć", "É", "é", "Í", "í", "Ó", "ó", "Ś", "ś", "Ú", "ú", "Ý", "ý", "Ǿ", "ǿ"],
["À", "à", "È", "è", "Ì", "ì", "Ò", "ò", "Ù", "ù"],
["Â", "â", "Ĉ", "ĉ", "Ê", "ê", "Ĝ", "ĝ", "Ĥ", "ĥ", "Î", "î", "Ĵ", "ĵ", "Ô", "ô", "ŝ", "Ŝ", "Û", "û"],
["Ä", "ä", "Ë", "ë", "Ï", "ï", "Ö", "ö", "Ü", "ü", "ÿ"],
["İ", "i"],
["I", "ı"],
["Ã", "ã", "Ñ", "ñ", "Õ", "õ"],
["Å", "å"],
["Ç", "ç"],
["Č", "č", "Š", "š", "ŭ"],
["Ł", "ł"],
["Ő", "ő", "Ű", "ű"],
["Ø", "ø"],
["Ā", "ā", "Ē", "ē", "Ī", "ī", "Ō", "ō", "Ū", "ū", "Ȳ", "ȳ"],
["Ă", "ă", "Ĕ", "ĕ", "Ğ", "ğ", "Ĭ", "ĭ", "Ŏ", "ŏ", "Ŭ", "ŭ", "Y̆", "y̆"],
["Æ", "æ", "Œ", "œ"],
["Ð", "ð", "Þ", "þ", "|"]
],
"Soranî":[
{ "direction":"rtl", "lang":"ar", "class":"spanAr", "font-size":"1.25em" },
["پ", "چ", "ڕ", "ژ", "ڤ", "ک", "گ", "ڵ", "ۆ", "ھ", "ە", "ی", "ێ"],
["٢" ,"٣" ,"٤" ,"٥" ,"٦" ,"٧" ,"٨" ,"٩"]
],
"Erebî":[
{ "direction":"rtl", "lang":"ar", "class":"spanAr", "font-size":"1.25em" },
["؛", "؟", "ء", "آ", "أ", "ؤ", "إ", "ئ", "ا", "ب", "ة", "ت", "ث", "ج", "ح", "خ", "د", "ذ", "ر", "ز", "س", "ش", "ص",
"ض", "ط", "ظ", "ع", "غ", "ف", "ق", "ك", "ل", "م", "ن", "ه", "و", "ى", "ي", "،"],
["پ", "چ", "ژ", "گ", "ڭ"]
],
"Kirîlî":[
["А", "Ә", "Б", "В", "Г", "Ґ", "Ѓ", "Ғ", "Д", "Ђ", "Е", "Є", "Ё", "Ж", "З", "Ѕ", "И", "І", "Ї", "İ", "Й", "Ӣ", "Ј", "К",
"Ќ", "Қ", "Л", "Љ", "М", "Н", "Њ", "Ң", "О", "Ө", "П", "Р", "С", "Т", "Ћ", "У", "Ў", "Ӯ", "Ұ", "Ү", "Ф", "Х", "Ҳ", "Һ",
"Ц", "Ч", "Ҷ", "Џ", "Ш", "Щ", "Ъ", "Ы", "Ь", "Э", "Ю", "Я"],
["а", "ә", "б", "в", "г", "ґ", "ѓ", "ғ", "д", "ђ", "е", "є", "ё", "ж", "з", "ѕ", "и", "і", "ї", "й", "ӣ", "ј", "к", "ќ", "қ",
"л", "љ", "м", "н", "њ", "ң", "о", "ө", "п", "р", "с", "т", "ћ", "у", "ў", "ӯ", "ұ", "ү", "ф", "х", "ҳ", "һ", "ц", "ч", "ҷ",
"џ", "ш", "щ", "ъ", "ы", "ь", "э", "ю", "я"]
],
"Yewnanî":[
{ "lang":"hl" },
["Α", "Ά", "Β", "Γ", "Δ", "Ε", "Έ", "Ζ", "Η", "Ή", "Θ", "Ι", "Ί", "Κ", "Λ", "Μ", "Ν", "Ξ", "Ο", "Ό", "Π", "Ρ", "Σ", "Τ", "Υ", "Ύ", "Φ", "Χ", "Ψ", "Ω", "Ώ"],
["α", "ά", "β", "γ", "δ", "ε", "έ", "ζ", "η", "ή", "θ", "ι", "ί", "κ", "λ", "μ", "ν", "ξ", "ο", "ό", "π", "ρ", "σ", "ς", "τ", "υ", "ύ", "φ", "χ", "ψ", "ω", "ώ"]
]
};
addOnloadHook(function() {
addOnloadHook(function() {
var box;
function loadCommonsTools() {
function selectSubset() {
var pp = box.getElementsByTagName("p");
for (var i=0; i<pp.length; ++i) {
pp[i].style["display"] = "none";
}
//show/create current subset
var id = sel.options[sel.selectedIndex].value;
var p = document.getElementById(id);
if(!p) {
p = document.createElement('p');
p.setAttribute("id", id);
p.setAttribute("class", "mwEdittoolsLanguage");
createTokens(p, charinsert[id.substr("mwEdittools--".length)]);
box.appendChild(p);
}
p.style["display"] = "inline";
}
function createTokens(paragraph, outerArr) {
var buttons;
function insertInner(elem) {
var a = false, ins;
switch(typeof(elem)) {
case("string"): {
ins = function() {
insertTags(elem, "", "");
return false;
};
a = document.createElement("a");
a.setAttribute("title", elem);
a.appendChild(document.createTextNode(elem));
} break;
case("array"):
case("object"): {
ins = function() {
insertTags(elem[0], elem[1] || "", elem[2] || "");
return false;
};
a = document.createElement("a");
a.setAttribute("title", elem[3] || (elem[0] + (elem[2] || "…") + (elem[1] || "")));
a.appendChild(document.createTextNode(elem[4] || (elem[0] + (elem[1] || ""))));
}; break;
}
if(a !== false) {
a.onclick = ins;
a.setAttribute("href", "#");
a.setAttribute("class", "mwEdittoolsButton");
buttons.appendChild(document.createTextNode(" "));
buttons.appendChild(a);
}
}
function insertOuter(innerArr) {
switch(typeof(innerArr)) {
case("object"):
case("array"):
var obj = false;
if(typeof(innerArr["class"]) === "string") {
obj = true;
paragraph.setAttribute("class", innerArr["class"]);
}
if(typeof(innerArr["lang"]) === "string") {
obj = true;
paragraph.setAttribute("lang", innerArr["lang"]);
}
if(typeof(innerArr["direction"]) === "string") {
obj = true;
paragraph.style.direction = innerArr["direction"];
}
if(typeof(innerArr["font-family"]) === "string") {
obj = true;
paragraph.style.fontFamily = innerArr["font-family"];
}
if(typeof(innerArr["font-size"]) === "string") {
obj = true;
paragraph.style.fontSize = innerArr["font-size"];
}
if(obj) {
return false;
}
buttons = document.createElement("span");
buttons.setAttribute("class", "mwEdittoolsButtons");
for(var i = 0; i<innerArr.length; ++i) {
insertInner(innerArr[i]);
}
paragraph.appendChild(buttons);
return true;
default:
return false;
}
}
if(outerArr.length == 0) { return; }
for(var i=0; i<outerArr.length-1; ++i) {
if(insertOuter(outerArr[i])) {
var s = document.createElement("span");
s.appendChild(document.createTextNode("\xA0\xA0•\xA0 "));
s.style["font-weight"] = "bold";
paragraph.appendChild(s);
}
}
insertOuter(outerArr[outerArr.length-1]);
}
//create drop-down select
var sel = document.createElement("select");
for(var id in charinsert) {
var op = document.createElement("option");
op.setAttribute("value", "mwEdittools--" + id);
op.appendChild(document.createTextNode(id));
sel.appendChild(op);
}
sel.setAttribute("title", "Li ser nîşanê bitikîne");
sel.onchange = sel.onkeyup = selectSubset;
box.appendChild(sel);
box.appendChild(document.createTextNode(" "));
selectSubset();
return false;
}
//get div#mw-editTools
box = document.getElementById('mw-editTools');
if(!box) { return; }
box = box.appendChild(document.createElement("div"));
box.setAttribute("id", "specialchars");
loadCommonsTools();
})
});
/* </nowiki></source> */All content in the above text box is licensed under the Creative Commons Attribution-ShareAlike license Version 4 and was originally sourced from https://ku.wikipedia.org/w/index.php?oldid=484117.
![]() ![]() This site is not affiliated with or endorsed in any way by the Wikimedia Foundation or any of its affiliates. In fact, we fucking despise them.
|