Module:Icons: Difference between revisions

No change in size ,  11 March 2021
p._Currency calls now require maxAmt to be greater than amount
(Implement RC function & standardise currency functions)
(p._Currency calls now require maxAmt to be greater than amount)
Line 196: Line 196:
function p._Currency(fileName, link, amt, maxAmt)
function p._Currency(fileName, link, amt, maxAmt)
   local amtText = Shared.formatnum(amt)
   local amtText = Shared.formatnum(amt)
   if maxAmt ~= nil and maxAmt ~= amt then
   if maxAmt ~= nil and maxAmt >= amt then
     amtText = amtText .. ' - ' .. Shared.formatnum(maxAmt)
     amtText = amtText .. ' - ' .. Shared.formatnum(maxAmt)
   end
   end