Module:Sandbox/Aurelain

From Heroes of Might and Magic: Olden Era Official Wiki
Revision as of 15:50, 13 May 2026 by Aurelain (talk | contribs) (Created page with "local p = {} -- A simple function that returns a custom greeting function p.hello(frame) -- 'frame' contains interface data from the wiki page calling this module local name = frame.args[1] or "World" return "Hello, " .. name .. "! Welcome to my Lua sandbox." end return p")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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

local p = {}

-- A simple function that returns a custom greeting
function p.hello(frame)
    -- 'frame' contains interface data from the wiki page calling this module
    local name = frame.args[1] or "World"
    return "Hello, " .. name .. "! Welcome to my Lua sandbox."
end

return p