Jump to content

Module:WMFRLua 0x010C: Difference between revisions

From Wikipedia
[unchecked revision][unchecked revision]
Content deleted Content added
0x010C (talk | contribs)
mNo edit summary
0x010C (talk | contribs)
mNo edit summary
 
(2 intermediate revisions by the same user not shown)
Line 2: Line 2:


function p.foo(frame)
function p.foo(frame)
local args = frame:getParents().args
local args = frame:().args
return 'Hello ' .. frame.args[2] .. '! Je suis une ' .. frame.args[1]
return 'Hello ' .. args[2] .. '! Je suis une ' .. args[1]
end
end



Latest revision as of 14:57, 24 January 2016

Documentation for this module may be created at Module:WMFRLua 0x010C/doc

local p = {}

function p.foo(frame)
	local args = frame:getParent().args
	return 'Hello ' .. args[2] .. '! Je suis une ' .. args[1]
end

return p