Difference between revisions of "Module:Test"

From PKC
Jump to navigation Jump to search
Line 3: Line 3:
function p.hello_world(a)
function p.hello_world(a)
cf = mw.getCurrentFrame()
cf = mw.getCurrentFrame()
return "Hello, world! from " .. mw.allToString(cf.args[1])
return "Hello, world! from " .. mw.allToString(cf.args[1]) .. "-" .. mw.allToString(cf.args[2]) .."-" ..mw.allToString(cf.args[3])
end
end


return p
return p

Revision as of 09:06, 9 August 2021

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

p = {}

function p.hello_world(a)
	cf = mw.getCurrentFrame()
	return "Hello, world! from " .. mw.allToString(cf.args[1]) .. "-" .. mw.allToString(cf.args[2]) .."-" ..mw.allToString(cf.args[3])
end

return p