Module:UŊCDSO

From Nguhcraft Wiki
Jump to navigation Jump to search

Documentation for this module may be created at Module:UŊCDSO/doc

local d = require "Module:Data/UŊCDSO/Countries"

local _m = {}

_m.number_ung = function(frame)
	local count = 0
	for _,c in ipairs(d.countries) do
		if c.ung == "MEMBER" then count = count + 1 end
	end
	return count
end

_m.number_countries = function(frame)
	local count = 0
	for _,c in ipairs(d.countries) do
		if not c.not_ngation and not c.dissolved and not c.disputed and not c.condominium then
			count = count + 1
		end
	end
	return count
end

_m.table_sovereign = function(frame) end

return _m