Documentation for this module may be created at Module:Debug/doc
-- <nowiki>
-- Provides a table for use instead of the default "frame" argument, when using the debug console
-- Usage:
-- frame = require('Module:Debug')
-- = p.main(frame)
local p = {}
p.args = {}
function p.expandTemplate(_, t)
if t.title == 'GEP' then
return '1337'
end
local s = '{{' .. t.title
if t.args then
for i, v in pairs(t.args) do
if type(i) == 'number' then
s = s .. '|' .. v
else
s = s .. '|' .. i .. '=' .. v
end
end
end
return s .. '}}'
end
function p.preprocess(_, x)
return x
end
return p