Content deleted Content added
pass frame |
add parameter checking |
||
Line 131:
table.sort(notes, function (x, y) return tonumber(x) < tonumber(y) end)
local warning = ''
---------------------------
-- Unknown parameters -----
---------------------------
local append_table = function(source, destination)
local out = destination or {}
for _, v in ipairs(source) do
table.insert(out, v)
end
return out
end
local parameters = append_table(cfg.parameters.passthrough)
for _, k in ipairs(task_forces) do
table.insert(parameters, 'tf '..k)
table.insert(parameters, 'tf '..k..' importance')
end
for _, k in ipairs(notes) do
table.insert(parameters, 'note '..k)
end
parameters.preview = cfg.parameters.preview
parameters.unknown = ''
local parameter_check = require('Module:Check for unknown parameters')._check(parameters, raw_args)
---------------------------
-- Location warning -------
Line 629 ⟶ 650:
local tstyle = frame:extensionTag ('templatestyles', '', {src='Module:Message box/tmbox.css'}) ..
frame:extensionTag ('templatestyles', '', {src='Module:WikiProject banner/styles.css'})
return parameter_check .. warning .. tstyle .. tostring(banner) .. table.concat(categories)
end
|