Module:Figurine/Cache

local q = mw.ext.cargo.query("Figurines", "Game, Name, Description", {	limit = 1000 })

local figurines = {} local figurineNames = {}

for _, fig in ipairs(q) do	figurines[fig.Game] = figurines[fig.Game] or {} figurineNames[fig.Game] = figurineNames[fig.Game] or {} figurines[fig.Game][fig.Name] = { name = fig.Name, description = fig.Description }	table.insert(figurineNames[fig.Game], fig.Name) end

return { figurines = figurines, figurineNames = figurineNames }