יחידה:WikidataCrossValidation: הבדלים בין גרסאות בדף

מאין תקציר עריכה
מאין תקציר עריכה
שורה 39: שורה 39:
     if formattedValue == wikitext then
     if formattedValue == wikitext then
     return CrossValidate.CrossValidateResult.COMPATIBLE
     return CrossValidate.CrossValidateResult.COMPATIBLE
    else
    -- try to remove links
    if mw.ustring.gsub(wikitext, '[%[%]]', '') == formattedValue then
    return CrossValidate.CrossValidateResult.COMPATIBLE
    end
     end
     end