Module:Article Query and Amend

From Campaign Labour
Jump to navigation Jump to search

Documentation for this module may be created at Module:Article Query and Amend/doc

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

function p.Main( frame )
    tables = 'Articles'
    fields = 'Title=Title'
    -- 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 = 'Publication="Morning Star"',
orderBy = 'Title',
} 
    local result = cargo.query( tables, fields, args)
    return result(tables, fields, args)
--  . . .
end
return p