Difference between revisions of "Module:Sandbox"
Jump to navigation
Jump to search
(Test) |
(better) |
||
Line 3: | Line 3: | ||
local p = {} | local p = {} | ||
− | function p.getSandboxVal() | + | function p.getSandboxVal(frame) |
return globSandboxVal | return globSandboxVal | ||
end | end | ||
− | function p.setSandboxVal( | + | function p.setSandboxVal(frame) |
− | globSandboxVal = | + | local args = getArgs(frame, { |
+ | valueFunc = function(key, value) | ||
+ | return value | ||
+ | end | ||
+ | }) | ||
+ | globSandboxVal = args[1] | ||
end | end | ||
return p | return p |
Revision as of 22:06, 28 September 2021
Documentation for this module may be created at Module:Sandbox/doc
-- Test stuff here. local globSandboxVal = "" local p = {} function p.getSandboxVal(frame) return globSandboxVal end function p.setSandboxVal(frame) local args = getArgs(frame, { valueFunc = function(key, value) return value end }) globSandboxVal = args[1] end return p