Module:CargoTest

require('Module:Card')

local p = {} local cargo = mw.ext.cargo

function p.test local args = mw.getCurrentFrame.args[1] local qFields = "Name, Image, Type, SubType, Series" local qArgs = { --where = 'Type = ' .. tostring(frame) , where = 'SubType = ' .. tostring(args) , orderBy = "SubType", --groupBy = "Type" }   local lolis = cargo.query("loliInfo",qFields, qArgs) mw.logObject(lolis) local root = mw.html.create('div') :cssText('display:flex; flex-flow:row wrap;')

for i,loli in ipairs(lolis) do       --mw.logObject(i) --mw.logObject(loli) root:Card(loli) end

return root end return p