Mô đun:debug/templates
local export = {}
-- Trigger a script error from a template
function export.track(frame)
local params = {
[1] = {required = true, list = true}
}
local args = require("Module:parameters").process(frame.args, params)
require("Module:debug/track")(args[1])
end
-- Trigger a script error from a template
function export.error(frame)
error(frame.args[1] or "(no message specified)")
end
return export