יחידה:WikidataCrossValidation: הבדלים בין גרסאות בדף
מ מקרה נפוץ של מטר |
מאין תקציר עריכה |
||
| שורה 93: | שורה 93: | ||
local noramlizeUnit = mw.ustring.gsub(wikitext, '[%[%]]', '') | local noramlizeUnit = mw.ustring.gsub(wikitext, '[%[%]]', '') | ||
noramlizeUnit = mw.ustring.gsub(noramlizeUnit, '(.+) מטרים', '%1 מטר') | noramlizeUnit = mw.ustring.gsub(noramlizeUnit, '(.+) מטרים', '%1 מטר') | ||
noramlizeUnit = mw.ustring.gsub(noramlizeUnit, '(.+) ק"ג$', '%1 קילוגרם') | |||
if noramlizeUnit == formattedValue then | if noramlizeUnit == formattedValue then | ||
return CrossValidate.CrossValidateResult.COMPATIBLE | return CrossValidate.CrossValidateResult.COMPATIBLE | ||