Module:Medical cases chart/data: Difference between revisions

Content deleted Content added
No edit summary
On second thought, use null as the nodata indicator
Line 106:
local row = {
record.date or "",
tostring(record.deaths and record.deaths >= 0 and record.deaths or ""),
tostring(record.recoveries and record.recoveries >= 0 and record.recoveries or ""),
tostring(record.cases and record.cases >= 0 and record.cases or ""),
tostring(record.class4 and record.class4 >= 0 and record.class4 or ""),
tostring(record.class5 and record.class5 >= 0 and record.class5 or ""),
record.cases > 0 and lang:formatNum(record.cases) or "",
record.cases > 0 and formatChange(prevRecord.cases, record.cases) or "",