Module:TestAction

From Fallen London Wiki

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

local p = {}
function p.main(frame)
    for name, value in pairs(frame.args or frame:getParent().args) do
        _G[name] = value
    end
    local action = string.format(''--'<span style="display: none;">'
        .. "{{#ifeq:{{{transcludesection|Locked}}}|Locked|"
        .. "{{User:Achris/Template:WrapMe|%s}}"
        .. "}}", _G.Locked)
    action = '' .. action .. ''
    --action = "<onlyi<includeonly/>nclude>" .. action .. "</onlyinc<includeonly/>lude>"
    action = "<onlyinclude>" .. action .. "</onlyinclude>"
    action = frame:preprocess(action)
    return action
end
return p