Jump to content

Module:Sandbox/Ahecht/sandbox

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Ahecht (talk | contribs) at 15:15, 27 July 2017 (test). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
local p = {}

local function _main(args)
	return true
end

function p.main(frame)
	local output = '*Version: ' .. mw.site.currentVersion[edit] .. '\n*$wgScriptPath: ' .. mw.site.scriptPath() .. '\n*$wgServer: ' .. mw.site.server() .. '\n*$wgSitename: ' .. mw.site.siteName() .. '\n*$wgStylePath: ' .. mw.site.stylePath()
	return output
end

return p