Module:Demographics Race

require "Module:Demographics Basics" require "Module:Demographics Database" local p = require('Module:Demographics/PopQuery')

function total(country) return total_table(demographics.race,country) end

function p.total(frame) local data = p.filterpops(0, 0, 0, 0, 0, frame.args[1], 0, 0) local total = 0 for k,v in pairs(data) do   		total = total + v['quantity'] end return total end

function p.main(frame) local data = p.filterpops(frame.args[2], 0, 0, 0, 0, frame.args[1], 0, 0) local total = 0 for k,v in pairs(data) do   		total = total + v['quantity'] end return total end return p