Please sign in to edit, using the button at the upper right corner of the page.
If you would like your name changed, contact Mg27713.


Module:Sandbox

From Gunn Wiki
Jump to navigation Jump to search

Documentation for this module may be created at Module:Sandbox/doc

-- Test stuff here.
local getArgs = require('Module:Arguments').getArgs

local globSandboxVal = ""

local p = {}
function p.getSandboxVal(frame)
    return "Get " .. globSandboxVal
end

function p.setSandboxVal(frame)
    local args = getArgs(frame, {
        valueFunc = function(key, value)
            return value
        end
    })
    globSandboxVal = args[1]
    return "Set " .. globSandboxVal
end

return p