17,101
edits
(Currency: Implement for currency templates; _Currency: Add category to output for non-numeric amount arguments) |
(Currency: Fix minVal, maxVal passed to other currency functions) |
||
Line 904: | Line 904: | ||
local currID, minVal, maxVal, _ | local currID, minVal, maxVal, _ | ||
currID = args[1] | currID = args[1] | ||
if args[2] ~= nil then | if args[2] ~= nil and args[2] ~= '' then | ||
minVal, _ = string.gsub(args[2], ',', '') | minVal, _ = string.gsub(args[2], ',', '') | ||
end | end | ||
if args[3] ~= nil then | if args[3] ~= nil and args[3] ~= '' then | ||
maxVal, _ = string.gsub(args[3], ',', '') | maxVal, _ = string.gsub(args[3], ',', '') | ||
end | end |