Jump to content

Module:NUMBEROF

Permanently protected module
From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by GreenC (talk | contribs) at 15:53, 2 May 2020 (Created page with 'local p = {} function p.numberof(frame) local result = 0 local data = mw.ext.data.get("Wikipedia_statistics/data.tab") for k,v in pairs(data['data']) do if...'). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

local p = {}

function p.numberof(frame)
	local result = 0
	local data = mw.ext.data.get("Wikipedia_statistics/data.tab")
	for k,v in pairs(data['data']) do
		if k == "en.wikipedia" then
			result = v[2]
		end
	end
	return result
end

return p