The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Documentation for this module may be created at Module:Bharatpedia ads/data/doc

-- This module transforms [[Module:Bharatpedia ads/list]] into a format to be
-- used by mw.loadData.

local LIST_MODULE = 'Module:Bharatpedia ads/list'

local list = require(LIST_MODULE)
local ids = {}
for i, t in ipairs(list) do
	assert(t.id, string.format(
		"no 'id' field in table %d in [[%s]]",
		i, LIST_MODULE
	))
	ids[t.id] = t
end
return {list = list, ids = ids, noAds = #list}