Module:FAMEPedia ads/data

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

local LIST_MODULE = 'Module:FAMEPedia 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}