Module:Param Parse: Difference between revisions

I think it's nicer if 0 silver is also shown if gold is set
(nil check)
(I think it's nicer if 0 silver is also shown if gold is set)
Line 209:
end
local silver = math.floor(val / 1000)
if (silver > 0) or (gold > 0) then
output = output .. silver .. '[[File:Silver coin.png|link=]]'
val = val - (silver * 1000)