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

אפציע אראפצונעמען ניקוד
אין תקציר עריכה
(אפציע אראפצונעמען ניקוד)
שורה 204: שורה 204:
         }
         }
         this.languageCheck();
         this.languageCheck();
        this.nikudCheck();
         this.vavCheck();
         this.vavCheck();
         this.expandWikidata();
         this.expandWikidata();
שורה 720: שורה 721:
         // }).click(function(){ $('#wpTextbox1').val($('#wpTextbox1').val().replace(emptyParametersRgx, '')); chectTyTool.addSummary( mw.msg( 'checkty-empty-parameters-summary' ) ); return false; }));
         // }).click(function(){ $('#wpTextbox1').val($('#wpTextbox1').val().replace(emptyParametersRgx, '')); chectTyTool.addSummary( mw.msg( 'checkty-empty-parameters-summary' ) ); return false; }));
         // this.writeMsg(emptyParametersMsg, 'info');
         // this.writeMsg(emptyParametersMsg, 'info');
    },
    nikudCheck: function () {
        var wikitext = chectTyTool.textbox.value;
        if (/[\u0591-\u05C7\u05F3\u05F4]/.test(wikitext)) {
            nikudInsertMsg = $('<div>', { text: "דער ארטיקל פארמאגט ניקוד " }).append($('<a>', {
                href: '#',
                text: 'אראפנעמען',
            }).click(function () {
                // remove nikud
                chectTyTool.textbox.value = chectTyTool.textbox.value.replace(/[\u0591-\u05C7\u05F3\u05F4]/g, '');;
                chectTyTool.addSummary('אראפגענומען ניקוד');
                return false;
            }));
            chectTyTool.writeMsg(nikudInsertMsg, 'info');
        }
     },
     },
     vavCheck: function () {
     vavCheck: function () {