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

ק
חכמי מעדיעוויקי שטעלן עס נישט צו ביים רעדאגירן
(אויך ווען איינגעפלאכטן פון אנדערע מוסטער)
צייכן: צוריקגעשטעלט
ק (חכמי מעדיעוויקי שטעלן עס נישט צו ביים רעדאגירן)
צייכן: צוריקדריי
שורה 238: שורה 238:
     },
     },
     articleOrgChecks: function () {
     articleOrgChecks: function () {
        this.descriptionInsert();
        this.interwikiInsert();
         this.titleOrderCheck();
         this.titleOrderCheck();
         this.checkRefs();
         this.checkRefs();
שורה 1,213: שורה 1,211:
             }
             }
             this.textbox.value = wikitext;
             this.textbox.value = wikitext;
        }
    },
    descriptionInsert: function () {
        var wikitext = this.textbox.value;
        // check whether description is empty
        if (!(mw.config.get( 'wgCategories' ).includes('בלעטער מיט קורצע דעסקריפציע'))) {
            // insert description
            var desc = prompt('ווילט איר צולייגן דעסקריפציע?\nשטעלט אריין א שילדערונג מיט געציילטע ווערטער');
            if (desc) {
                this.textbox.value = '{' + '{דעסקריפציע|' + desc + '}}\n' + wikitext;
                chectTyTool.addSummary('צוגעלייגט דעסקריפציע');
            }
        }
    },
    interwikiInsert: function () {
        var wikitext = this.textbox.value;
        // check whether hebrew is not lnked
        if (!wikitext.toLowerCase().includes('[' + '[he:')) {
            // insert interlink
            var inter = prompt('ווילט איר פארבינדן צו המכלול העברי?\nשטעלט אריין דעם נאמען פון דארטיגן ערך');
            if (inter) {
                this.textbox.value = wikitext + '\n[' + '[he:' + inter + ']]';
                chectTyTool.addSummary('צוגעלייגט אינטערשפראך לינק');
            }
         }
         }
     },
     },
שורה 1,298: שורה 1,272:
         var wikitext = this.textbox.value.replaceAll('רוי:', '');
         var wikitext = this.textbox.value.replaceAll('רוי:', '');
         this.textbox.value = wikitext;
         this.textbox.value = wikitext;
        chectTyTool.addSummary('אראפגענומען דירעקטע רוי לינקס');
     },
     },
     overlinkify: function () {
     overlinkify: function () {