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

Content deleted Content added
No edit summary
Tag: Reverted
Undid revision 1004203086 by 54nd60x (talk)
Line 16:
--"str" back to Wikipedia.
end -- end of the function "pagenamehello"
function p.header(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/w/index.php?title=<h1>" .. name .. ".&action=foo</h1>" -- `..` concatenates strings. This will return a customized
-- greeting depending on the name given, such as "Hello, Fred!"
end