Module:Sandbox/BrownHairedGirl/testparams

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 --				if ( doesCatExist(thisArg)) then					table.insert(rawcats, "Category:" .. thisArg)					nvalid = nvalid + 1				end 			end end end return listedargslist end

return p