Module:Article Query and Amend

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

function p.Main( frame ) tables = 'Articles' fields = 'Title=Title,Author=Author,' -- optional parameters are grouped in one table -- you can omit any or all of them, except join if you use more than one table local args = { where = 'Articles.Publication="Morning Star",', orderBy = 'Articles.Title,', }   local result = cargo.query( tables, fields, args ) return result -- . . . end