Jump to content

Module:Sandbox/Aidan9382/DocInteraction

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Aidan9382 (talk | contribs) at 22:12, 26 November 2022 (remove log object). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

local doc = require("Module:Documentation")
local docsandbox = require("Module:Documentation/sandbox")

local p = {}

local function generateNotice(page,module)
	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