dev

This module was made as a sandbox for the user DarthKitty. This documentation is kept to prevent redlinks.


-- <nowiki>
--------------------------------------------------------------------------------
-- General-purpose testing and experimentation module for [[User:DarthKitty]].
--------------------------------------------------------------------------------
local p = {}
local getArgs = require("Dev:Arguments").getArgs

--------------------------------------------------------------------------------
-- Greets a given entity.
--
-- @param {table} frame
--     Frame object.
-- @param {string} frame[1]
--     Name of the entity to greet.
-- @returns {string}
--     A greeting for the entity.
--------------------------------------------------------------------------------
function p.main(frame)
    local args = getArgs(frame)
    local name = args[1] or "World"

    return "Hello, " .. name .. "!"
end

return p