Module:Shop calc: 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:1300:13, 17 October 2024Alex talk contribs 1,770 bytes +1,770 Created page with "local p = {} local commas = require('Module:Addcommas')._add 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 function p.main(frame) local input = frame:getParent().args local shopIncPercent = (input.shop_inc ~= nil and input.shop_inc ~= '') and tonumber(input.shop_inc) * .01 or 0 local calcTotal = p.calc(input.base_price, shopIncPercent, input.nu..."