local concat = table.concatlocal getArgs = require("Module:Arguments").getArgslocal insert = table.insertlocal messageBox = require("Module:Message box").mainlocal namespace = mw.title.getCurrentTitle.namespace
local p =
function p.main(frame) -- We want to keep blanks in the list or ipairs will terminate early, but if allowredlink is blank it should be nil. local args = getArgs(frame,) local allowredlink = args.allowredlink ~= "" and args.allowredlink or nil local list, topic, needs_fixing = for i, arg in ipairs(args) do if i % 2
14 and not (allowredlink or mw.title.new(arg, 14):getContent) ) then needs_fixing = true end end end if #list < 2 then error("Please supply at least two categories, using the first four parameters.") end return messageBox("cmbox",) .. (needs_fixing and "" or "")end
return p