יחידה:WikidataCrossValidation: הבדלים בין גרסאות בדף
מאין תקציר עריכה |
מאין תקציר עריכה |
||
| שורה 50: | שורה 50: | ||
return CrossValidate.CrossValidateResult.MISSING_WIKIDATA_LABEL | return CrossValidate.CrossValidateResult.MISSING_WIKIDATA_LABEL | ||
end | end | ||
local isCompatible = mw.ustring.find(wikitext, localLabel, 1, true) | |||
if not isCompatible then | |||
local sitelink = mw.wikibase.sitelink( "Q" .. propValue.value['numeric-id'] ) | |||
isCompatible = sitelink and mw.ustring.find(wikitext, sitelink, 1, true) | |||
end | |||
if not isCompatible then | |||
return CrossValidate.CrossValidateResult.INCOMPATIBLE | return CrossValidate.CrossValidateResult.INCOMPATIBLE | ||
end | end | ||