Module:Mine Religion

require "Module:Database Miner" require "Module:Demographics Basics" require "Module:Demographics Database"

function mineout(tabula,race) local database = {} database[race] = MineDatabase(tabula,race) return generate(database,race,"Race") end local p = {}

function generate_infobox_data(race,l) local database = {} local temp = "" database[race] = MineDatabase(tabula,race) local sortedKeys = getKeysSortedByValue(database[race], function(a, b) return a > b end) local i = l   for _, key in ipairs(sortedKeys) do        temp = temp .. "|region" .. i .. " = \n" temp = temp .. "|pop" .. i .. " = c. '''" .. format_num(database[race][key],0) .. "'''\n" i = i + 1 end return temp end

function p.main(frame) return mineout(demographics.religion,frame.args[1]) end return p