Module:Wikipedia ads/data explained

-- This module transforms into a format to be-- used by mw.loadData.

local LIST_MODULE = 'Module:Wikipedia ads/list'local skippedEntries =

local list = require(LIST_MODULE)local ids = local id = 0for i, t in ipairs(list) do assert(t.id, string.format("no 'id' field in table %d in %s", i, LIST_MODULE )) if id + 1 < t.id then for id = id + 1, t.id - 1, 1 do -- Insert skipped entries for missing IDs skippedEntries[id % 2 + 1].id = id ids[id] = mw.clone(skippedEntries[id % 2 + 1]) table.insert(list, id, mw.clone(skippedEntries[id % 2 + 1])) end end id = t.id ids[t.id] = tend

return