Module:debug/templates
Jump to navigation
Jump to search
- This module lacks a documentation subpage. Please create it.
- Useful links: root page • root page’s subpages • links • transclusions • testcases • sandbox
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