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

Content deleted Content added
m Testing something out
No edit summary
 
(10 intermediate revisions by the same user not shown)
Line 17:
end -- end of the function "hello"
function p.hello_tokeyboard(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 "https://en.wikipedia.org/wikiw/index.php?title=" .. name .. "?uselang&action=ruedit&editintro=Module:Sandbox/54nd60x/test/doc" -- `..` concatenates strings. This will return a customized
-- greeting depending on the name given, such as "Hello, Fred!"
end