Module:TheEternalList

require('Module:Card')

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

function p.listType local args = mw.getCurrentFrame.args[1] local qFields = "Name, Image, Type, SubType, Series, VA" local qArgs = { where = 'Type = ' .. tostring(args) , orderBy = "Name", --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; hyphens:Auto;')

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

return root end

function p.list local args = mw.getCurrentFrame.args[1] local qFields = "Name, Image, Type, SubType, Series, VA" local qArgs = { where = 'SubType = ' .. tostring(args) , orderBy = "Name", --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; hyphens:Auto;')

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

return root end return p