Module:Coin total

return { main = function(frame) local total = 0 local str = frame.args[1] or '' for value in string.gmatch(str, 'data%-sort%-value="(%d-)"') do			total = total + tonumber(value) end return total end, }