Module:COVID-19 data: Revision history

Jump to navigation Jump to search

Diff selection: Mark the radio buttons 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.

2 February 2022

  • curprev 17:2517:25, 2 February 2022 Tachyony 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..."