local p = local getArgs = require('Module:Arguments').getArgs function p.main(frame) local rawcats = local nvalid = 0 local args = getArgs(frame)local listedargslist = "" listedargslist = "args['testnamed'] = [" .. args['testnamed'] .. "]\n\n" for i, v in ipairs(frame.args) do listedargslist = listedargslist .. "* i=[" .. i .. "] v = [" .. v .."]\n" if (v ~= nil) then local thisArg = mw.text.trim(v) thisArg = mw.ustring.gsub(thisArg, "^[Cc]ategory:%s*", "", 1) if (thisArg ~= "") then if mw.ustring.match(thisArg, "=") then return "named arg: [" .. thisArg .. "]" end-- end end end return listedargslistend
return p