Module:Sandbox/54nd60x/test: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 17:
end -- end of the function "hello"
function p.redheader(frame) -- Add another function
local name = frame.args[1] -- To access arguments passed to a module, use `frame.args`
-- `frame.args[1]` refers to the first unnamed parameter
-- given to the module
return "<redh1>" .. name .. ".</redh1>" -- `..` concatenates strings. This will return a customized
-- greeting depending on the name given, such as "Hello, Fred!"
end