Module:TheEternalList

--VERY wip. don't even try to understand this as not even I have a clue what I'm doing at the moment

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

function p.list(frame) local args = mw.getCurrentFrame local qField = "Image, Name" --is this the fields I query for? what defines as a field? local qArgs = { limit = '1000', orderBy = '"Name" ASC' }   --where = '"Rarity" NOT LIKE \'Unreleased\'' --the fuck does this do?

--This shit matches the wanted categories. writing this for every category would get old really quickly   	qArgs.where = qArgs.where..(args:match'Standard' and ' AND "ShipGroup"=\'Standard\ or )	qArgs.where = qArgs.where..(args:match'Collab' and ' AND "ShipGroup"=\'Collab\ or )	qArgs.where = qArgs.where..(args:match'Research' and ' AND "ShipGroup"=\'Research\ or )

local lolis = cargo.query('loliInfo', qField, qArgs) --this should query all loliInfo tables for the qField variables with the optional arguments qArgs mw.log(lolis) local root = mw.html.create('div') --this creates the html element :cssText('display:flex; flex-flow:row wrap;') root:card(ARGUMENT) --need to define that card shit

return root end return p