Module:Sandbox/Ahecht/sandbox: Difference between revisions
Appearance
< Module:Sandbox | Ahecht
Content deleted Content added
test |
test |
||
Line 2: | Line 2: | ||
local function _main(args) |
local function _main(args) |
||
for k, v in pairs(args) do |
|||
args[k] = "X" |
|||
end |
|||
return true |
return true |
||
end |
end |
||
function p.main(frame) |
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() |
|||
args = frame.args |
|||
⚫ | |||
_args = _main(args) |
|||
output = '{' |
|||
comma = '' |
|||
for k, v in pairs(args) do |
|||
output = output .. comma .. k .. '=' .. v .. ' (args[' .. k .. ']='.. args[k] .. ')' |
|||
comma = ', ' |
|||
end |
|||
⚫ | |||
end |
end |
||
Revision as of 15:15, 27 July 2017
![]() | This is the module sandbox page for Module:Sandbox/Ahecht (diff). |
{{Module rating }}
Usage
{{#invoke:Sandbox/Ahecht/sandbox|main}}
Output
Lua error at line 8: attempt to call field 'scriptPath' (a string value).
See also
- Sandbox/Ahecht
- Sandbox/Ahecht/Catalog lookup link
- Sandbox/Ahecht/Cite DNV
- Sandbox/Ahecht/Gridiron color
- Sandbox/Ahecht/benchmark
- Sandbox/Ahecht/cite
- Sandbox/Ahecht/doc
- Sandbox/Ahecht/flag
- Sandbox/Ahecht/flag/doc
- Sandbox/Ahecht/flag/redirects
- Sandbox/Ahecht/flag/redirects/doc
- Sandbox/Ahecht/interwiki
- Sandbox/Ahecht/interwiki/doc
- Sandbox/Ahecht/min
- Sandbox/Ahecht/modsandbox
- Sandbox/Ahecht/navboxtolua
- Sandbox/Ahecht/navboxtolua/doc
- Sandbox/Ahecht/sandbox
- Sandbox/Ahecht/sandbox2
- Sandbox/Ahecht/sandbox2/doc
- Sandbox/Ahecht/trim date
- Sandbox/Ahecht/url-access
- Sandbox/Ahecht/wikibase
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