Module:UŊCDSO

From Nguhcraft Wiki
Revision as of 14:05, 24 May 2026 by Annwan (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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

local d = mw.loadJsonData "Data:Places"

local _m = {}

_m.number_ung = function(frame)
	local count = 0
	for _, c in ipairs(d.places) do
		if not c.not_ngation and not c.condominium and not c.reason_dissolved and 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.places) do
		if not c.not_ngation and not c.condominium and not c.reason_dissolved then
			count = count + 1
		end
	end
	return count
end

_m.table_sovereign = function(frame) end

return _m