Module:Calc/User:Galvagornus: 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 00:0000:00, 17 October 2024Alex talk contribs 3,201 bytes +3,201 Created page with "local p = {} function expr(x) x = tostring(x) local expr_good, expr_val = pcall(mw.ext.ParserFunctions.expr, x) if expr_good then return tonumber(expr_val) end return nil end -- from WP function choose(n,k) if k < 0 or k > n then return 0 end if k == 0 or k == n then return 1 end k = math.min(k, n-k) -- symmetry c = 1 for i=0,k-1 do c = c * (n-i) / (k - i) end return c end function flavourText(x) local flavourTexts = { { -1, 1, "You are some s..."