Modul:validate args
A modult a Modul:validate args/doc lapon tudod dokumentálni
local export = {}
function export.check_unused(frame)
local catname = frame.args.cat or "Templates with unused arguments"
local allowed = {}
for _, arg in ipairs(frame.args) do
allowed[arg] = true
end
for key, value in pairs(frame:getParent().args) do
if not allowed[tostring(key)] then
return ("[[Category:%s]]"):format(catname)
end
end
return ""
end
return export