Module:Round: 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.

10 November 2024

  • curprev 20:3020:30, 10 November 2024Celestial talk contribs 1,899 bytes +1,899 Created page with "-- for comparing numbers but leaving trailing zeros so sorts are cleaner local addcommas = require("Module:Addcommas")._add local p = {} function p.main(frame) local args = frame:getParent().args local n = args[1] n = string.gsub(n, ',', '') n = tonumber(n, 10) if not n then local good, val = pcall(mw.ext.ParserFunctions.expr, args[1]) if good then n = tonumber(val, 10) else return 'Value is not a number or a valid expression' end end local round =..."