Difference between revisions of "Module:Sandbox/Ahecht/sandbox"
< Module:Sandbox | Ahecht
Jump to navigation
Jump to search
blackwiki>Ahecht (test) |
blackwiki>Ahecht (test) |
||
| Line 6: | Line 6: | ||
function p.main(frame) | function p.main(frame) | ||
| − | local output = '*Version: ' .. mw.site.currentVersion | + | local output = '*Version: ' .. mw.site.currentVersion .. '\n*$wgScriptPath: ' .. mw.site.scriptPath .. '\n*$wgServer: ' .. mw.site.server .. '\n*$wgSitename: ' .. mw.site.siteName .. '\n*$wgStylePath: ' .. mw.site.stylePath |
return output | return output | ||
end | end | ||
return p | return p | ||
Revision as of 15:17, 27 July 2017
Documentation for this module may be created at Module:Sandbox/Ahecht/sandbox/doc
local p = {}
local function _main(args)
return true
end
function p.main(frame)
local output = '*Version: ' .. mw.site.currentVersion .. '\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