Module:Demographics Historical

require "Module:Demographics Database" require "Module:Demographics Basics" require "Module:Demographics Race"

demographics.historical = {} demographics.historical.functions = {} demographics.historical.functions.Etrand = function (num) return round(num/5158500 * total("Etrand"),5) end demographics.historical["Etrand"] = { ["0"] = {function return demographics.historical.functions.Etrand(1000000) end,"Founding of Etrand"}, ["34"] = {function return demographics.historical.functions.Etrand(1300000) end,"Before the Orcish Invasion of Etrand"}, ["37"] = {function return demographics.historical.functions.Etrand(1200000) end,"After the Orcish Invasion of Etrand"}, ["104"] = {function return demographics.historical.functions.Etrand(1700000) end}, ["251"] = {function return demographics.historical.functions.Etrand(2600000) end,"Before the Demonic invasions of Artograch"}, ["263"] = {function return demographics.historical.functions.Etrand(1900000) end,"Aftermath of Demonic invasions of Artograch"}, ["270"] = {function return demographics.historical.functions.Etrand(2000000) end,"Etrandish annexation of Dwarven clans"}, ["273"] = {function return demographics.historical.functions.Etrand(1600000) end,"Aftermath of the the Long Raid and the Hulran invasion of Etrand"}, ["718"] = {function return demographics.historical.functions.Etrand(4080000) end,"On the eve of Etrandish Succession War of 718"}, ["800"] = {function return demographics.historical.functions.Etrand(4905000) end}, ["831"] = {function return total("Etrand") end,"Present day"} }

local p = {} function p.main(frame) if (frame.args[2] == "hun") then require "Module:Demographics Hun" return hun_generate_historical(demographics.historical,frame.args[1],0) else return generate_historical(demographics.historical,frame.args[1],0) end end return p