Module:Grammar
local p = {}
local cargo = mw.ext.cargo
function p.parse(frame)
for a, b in string.gmatch(frame.args[1], "(%w*)[:.](%w*)") do
if (a == "player") then
return "(player's " .. b
elseif (a =="pronouns") then
tables='Pronouns'
fields=b
args = {
where='pronoun=\"' .. frame.args[2] .. '\" AND _pageName=\"Gender and Pronouns\"',
limit='1'
}
return cargo.query(tables,fields,args)
elseif (a =="verb") then
return "todo"
else
return "ERROR"
end
return "error"
end
return a
end
return p