Documentation for this module may be created at Module:IncompleteTable/doc
-- <nowiki>
local p = {}
local data = require("Module:Codename").tables.rel
local getArgs = require("Dev:Arguments").getArgs
function p.main(frame)
local args = getArgs(frame)
local reason = "for one or more reasons"
local categories = "[[Category:Table incomplete]]"
for _, arg in ipairs(args) do
if data[arg] then
categories = categories .. "[[Category:Table incomplete (" .. data[arg].name .. ")]]"
else
reason = "and require the " .. arg .. " entries to be filled"
end
end
return "The following tables are incomplete " .. reason .. ". If you wish, please examine the table and add anything missing. Remove this notice upon completion." .. categories
end
return p
-- <nowiki>