בדוקי עריכות אוטומטית, אינטערפעיס רעדאקטארן, אינטערפעיס אדמיניסטראַטאָרן, סיסאפן, מייבאים, מעדכנים, מייבא, אספקלריה רעדאקטארן
46,716
רעדאגירונגען
(אידיש) |
(אידיש) |
||
| שורה 1,196: | שורה 1,196: | ||
defaultRefName = commonRefStructure[1]+commonRefStructure[2]; | defaultRefName = commonRefStructure[1]+commonRefStructure[2]; | ||
} | } | ||
var refName = prompt(' | var refName = prompt('פארהאן א רעפערענץ החוזרת עטליכע מאל. אלע ערשיינונגען קענען ווערן דירעקטירט צו איין רעף דורכן געבן א קורצע און באדייטנדע נאמען פארן רעף.\nביטע הזינו נאמען פארן פאלגנדן רעף:\n'+refContet, defaultRefName); | ||
if ( !refName ) continue; | if ( !refName ) continue; | ||
wikitext = wikitext.replace( refUses[0], chectTyTool.named_comment+refName+'|'+refContet+'}}'); | wikitext = wikitext.replace( refUses[0], chectTyTool.named_comment+refName+'|'+refContet+'}}'); | ||
| שורה 1,208: | שורה 1,208: | ||
titleOrderCheck: function(){ | titleOrderCheck: function(){ | ||
// validates the titles order is consistent | // validates the titles order is consistent | ||
var orderedTitles = [' | var orderedTitles = ['זעט אויך', 'ליינט מער', 'דרויסנדע לינקס', 'רעפערענצן'], | ||
isSorted = 1, | isSorted = 1, | ||
titles = $('#wpTextbox1').val().match('==\\s*'+orderedTitles.join('|')+'\\s*==','g'), i, indexes; | titles = $('#wpTextbox1').val().match('==\\s*'+orderedTitles.join('|')+'\\s*==','g'), i, indexes; | ||
| שורה 1,215: | שורה 1,215: | ||
for ( i=0; ( i < indexes.length-1 ) && isSorted; i++) { isSorted &= (indexes[i] < indexes[i+1]) }; | for ( i=0; ( i < indexes.length-1 ) && isSorted; i++) { isSorted &= (indexes[i] < indexes[i+1]) }; | ||
if ( !isSorted ) { | if ( !isSorted ) { | ||
this.writeMsg($('<div> | this.writeMsg($('<div>עס איז רעקאמענדירט צו פאַרריכטן די סדר פון די טיטלען צו: ' + orderedTitles.join(', ') + '</div>'), 'alert' ); | ||
} | } | ||
}, | }, | ||
| שורה 1,252: | שורה 1,252: | ||
if (fix) { // fix only when when explictly asked | if (fix) { // fix only when when explictly asked | ||
var autoRefSection = '\n== רעפערענצן ==\n{{רעפערענצן}}\n' | var autoRefSection = '\n== רעפערענצן ==\n{{רעפערענצן}}\n' | ||
var lastItems = [/(\n{{בקרת זהויות)/, /(\n{{ | var lastItems = [/(\n{{בקרת זהויות)/, /(\n{{שטומף)/,/\n({{הבהרה (?:רפואית|הלכתית|משפטית))/,/(\n{{מיון רגיל:)/, /(\n\[\[קאטעגאריע:)/]; | ||
for (var i=0; (i < lastItems.length) && (wikitext == newText); i++ ) newText = wikitext.replace(lastItems[i], autoRefSection + '$1'); | for (var i=0; (i < lastItems.length) && (wikitext == newText); i++ ) newText = wikitext.replace(lastItems[i], autoRefSection + '$1'); | ||
if ( wikitext === newText ) newText = wikitext + autoRefSection; | if ( wikitext === newText ) newText = wikitext + autoRefSection; | ||
| שורה 1,279: | שורה 1,279: | ||
while ( m = overlinkingRgx.exec(wikitext) ) { | while ( m = overlinkingRgx.exec(wikitext) ) { | ||
if (/(?:File|קובץ|תמונה| | if (/(?:File|קובץ|תמונה|טעקע):.+/.test(m[1])) { | ||
continue; // skip files | continue; // skip files | ||
} | } | ||
רעדאגירונגען