Module:Sandbox/Aidan9382/DocInteraction
Appearance
Testing page for firing specific parts of Documentation with tables (only reasonably doable from lua)
testCurrent: Script error: The function "testCurrentSNotice" does not exist.
testSandbox: Script error: The function "testSandboxSNotice" does not exist.
local doc = require("Module:Documentation")
local docsandbox = require("Module:Documentation/sandbox")
local p = {}
local function generateNotice(page,module)
mw.logObject(module.getEnvironment({page=page}))
return module.sandboxNotice( --args, env
{},
module.getEnvironment({page=page})
)
end
function p.testCurrent(frame)
return generateNotice(frame.args.page,doc)
end
function p.testSandbox(frame)
return generateNotice(frame.args.page,docsandbox)
end
return p