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 17:03, 26 March 2024 (test). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
Basic code analysis for Module:Sandbox/Aidan9382/DocInteraction
No issues found

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

local p = require("Module:Sandbox/Aidan9382").Debug()

local function generateNotice(page,module)
	return module.sandboxNotice( --args, env
		{},
		module.getEnvironment({page=page})
	)
end

function p.testCurrentSNotice(frame)
	return generateNotice(frame.args.page,doc)
end

function p.testSandboxSNotice(frame)
	return generateNotice(frame.args.page,docsandbox)
end

return p