מייבאים כמותיים, בדוקי עריכות אוטומטית, ביוראקראטן, אינטערפעיס רעדאקטארן, emailconfirmed, אינטערפעיס אדמיניסטראַטאָרן, מנטרים, סיסאפן, צוות טכני, מייבאים, מעדכנים, אספקלריה רעדאקטארן
102,362
רעדאגירונגען
(נאר אין ארטיקל בלעטער) |
(שפארן פאפ-אפס) |
||
| שורה 238: | שורה 238: | ||
}, | }, | ||
articleOrgChecks: function () { | articleOrgChecks: function () { | ||
if ([0, 3000, 8000].includes(mw.config.get('wgNamespaceNumber'))) { | |||
this.descriptionInsert(); | this.descriptionInsert(); | ||
this.interwikiInsert(); | this.interwikiInsert(); | ||
} | |||
this.titleOrderCheck(); | this.titleOrderCheck(); | ||
this.checkRefs(); | this.checkRefs(); | ||
| שורה 1,222: | שורה 1,222: | ||
// check whether description is empty | // check whether description is empty | ||
if (!regex.test(wikitext)) { | if (!regex.test(wikitext)) { | ||
// insert description | descriptionInsertMsg = $('<div>', { text: "דער ארטיקל פארמאגט נישט קיין דעסקריפציע" }).append($('<a>', { | ||
href: '#', | |||
text: 'צולייגן', | |||
}).click(function () { | |||
// insert description | |||
} | var desc = prompt('שטעלט אריין א שילדערונג מיט געציילטע ווערטער'); | ||
if (desc) { | |||
this.textbox.value = '{' + '{דעסקריפציע|' + desc + '}}\n' + wikitext; | |||
chectTyTool.addSummary('צוגעלייגט דעסקריפציע'); | |||
} | |||
return false; | |||
})); | |||
chectTyTool.writeMsg(descriptionInsertMsg, 'info'); | |||
} | } | ||
}, | }, | ||
interwikiInsert: function () { | interwikiInsert: function () { | ||
var wikitext = this.textbox.value; | var wikitext = this.textbox.value; | ||
// check whether hebrew is not | // check whether hebrew is not linked | ||
if (!wikitext.toLowerCase().includes('[' + '[he:')) { | if (!wikitext.toLowerCase().includes('[' + '[he:')) { | ||
// insert interlink | interwikiInsertMsg = $('<div>', { text: "דער ארטיקל פארמאגט נישט קיין אינטערשפראך לינק" }).append($('<a>', { | ||
var inter = prompt(' | href: '#', | ||
text: 'צולייגן', | |||
}).click(function () { | |||
// insert interlink | |||
var inter = prompt('שטעלט אריין דעם נאמען פון ערך אויף המכלול העברי'); | |||
if (inter) { | if (inter) { | ||
this.textbox.value = wikitext + '\n[' + '[he:' + inter + ']]'; | this.textbox.value = wikitext + '\n[' + '[he:' + inter + ']]'; | ||
chectTyTool.addSummary('צוגעלייגט אינטערשפראך לינק'); | chectTyTool.addSummary('צוגעלייגט אינטערשפראך לינק'); | ||
} | } | ||
return false; | |||
})); | |||
chectTyTool.writeMsg(interwikiInsertMsg, 'info'); | |||
} | } | ||
}, | }, | ||
רעדאגירונגען