אונטערשייד צווישן ווערסיעס פון "מעדיעוויקי:Gadget-Checkty.js"

אידיש
(אידיש)
(אידיש)
שורה 1,196: שורה 1,196:
  defaultRefName = commonRefStructure[1]+commonRefStructure[2];
  defaultRefName = commonRefStructure[1]+commonRefStructure[2];
  }
  }
  var refName = prompt('ישנה הערת שוליים החוזרת מספר פעמים. ניתן להפנות את כל המופעים אל הערה אחת באמצעות מתן שם קצר ובעל משמעות להערה.\nאנא הזינו שם להערה הבאה:\n'+refContet, defaultRefName);
  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>מומלץ לתקן את סדר הכותרות ל: ' + orderedTitles.join(', ') + '</div>'), 'alert' );
  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{{קצרמר)/,/\n({{הבהרה (?:רפואית|הלכתית|משפטית))/,/(\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|קובץ|תמונה|מדיה):.+/.test(m[1])) {
  if (/(?:File|קובץ|תמונה|טעקע):.+/.test(m[1])) {
  continue; // skip files
  continue; // skip files
  }
  }