Module:MinMax: Revision history

Jump to navigation Jump to search
Diff selection: mark the radio boxes of the versions to compare or click on a revision date to view it. (cur) = difference from current version, (prev) = difference from preceding version,  m = minor edit, → = section edit

17 October 2024

  • curprev 11:2311:23, 17 October 2024Alex talk contribs 727 bytes +727 Created page with "local p = {} local expr = mw.ext.ParserFunctions.expr function p.min(frame) local args = getargs(frame) return p._min(args) end function p._min(tbl) local low = tbl[1] for _, v in ipairs(tbl) do if v < low then low = v end end return low end function p.max(frame) local args = getargs(frame) return p._max(args) end function p._max(tbl) local high = tbl[1] for _, v in ipairs(tbl) do if v > high then high = v end end return high end..."