Module:Exclusive/data

-- create data cache from cargo local cargo = mw.ext.cargo local result = mw.ext.cargo.query('Exclusive', 'pagename, desktop, console, oldgen, mobile, 3ds, japanese', {	orderBy = "cached DESC",	groupBy = "pagename",	limit = 5000, -- may be not enough in future. }) local info = {} for _, row in ipairs(result) do	-- all are strings local str = ((row['desktop'] ~= ) and 'd' or ) .. ((row['console'] ~= ) and 'c' or ) .. ((row['oldgen'] ~= )  and 'o' or ) .. ((row['mobile'] ~= )  and 'm' or ) .. ((row['3ds'] ~= )     and '3' or ) .. ((row['japanese'] ~= ) and 'j' or ) if str == 'dcom3' or str == 'dcom3j' or str == '' then str = null end

info[row['pagename']] = str end return info