אונטערשייד צווישן ווערסיעס פון "מעדיעוויקי:Common.js/externalsmaker.js"

קיין רעדאגירונג באמערקונג
אין תקציר עריכה
אין תקציר עריכה
שורה 116: שורה 116:
}
}


function getLangWikiLink() {
if (window.location.host.indexOf('hamichlol') == 0) {
var langs = { en: "ענ", de: "דייטש", www: "העב" };
var result = '',
name = location.pathname.replace('/wiki/', '').replace(/_/g, ' '),
lang = location.hostname.split('.')[0];
 
if (!langs[lang]) {
return false;
}
 
result = '{{'+langs[lang]+'|'+name+'}}';
 
if (prompt("דרוקן OK וועט קאפּירן דעם מוסטער:", result) != null) {
$('<input>').val(result).appendTo('body').select();document.execCommand('copy');
}
return true;
}
 
if (window.location.host.indexOf('yi.ham') == 0) {
if (getWikiLink()) {
if (getWikiLink()) {
return true;
}
}
if (window.location.host.indexOf('hamichlol') > 0) {
if (getLangWikiLink()) {
return true;
return true;
}
}