Module:UŊCDSO: Difference between revisions

From Nguhcraft Wiki
Jump to navigation Jump to search
Created page with "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.table_sovereign = function(frame) end return _m"
 
No edit summary
 
Line 7: Line 7:
for _,c in ipairs(d.countries) do
for _,c in ipairs(d.countries) do
if c.ung == "MEMBER" then count = count + 1 end
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
end
return count
return count

Latest revision as of 19:54, 23 September 2025

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