Revision history of "Module:COVID-19 data"

Jump to navigation Jump to search

Diff selection: Mark the radio boxes of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

  • curprev 17:25, 2 February 2022Tachyony talk contribs 9,941 bytes +9,941 Created page with "local p = {} local data_title = mw.title.new( 'Template:COVID-19 data/data' ) local data_content = data_title:getContent() local data = mw.text.jsonDecode(data_content) local function format_num(number) if not number then return '' end local _, _, minus, int, _ = tostring(number):find('([-]?)(%d+)([.]?%d*)') int = int:reverse():gsub("(%d%d%d)", "%1,") int = int:reverse():gsub("^,", "") int = minus .. int return int end function p.main() local out = '' loca..."