Module:Imahero: Difference between revisions

From Heroes 3 wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 2: Line 2:


function p.hello(frame)
function p.hello(frame)
return mw.text.split( '5/3', '/', true )[0]
splittext = mw.text.split( '5/3', '/', true )
return splittext[1]
     -- return "Hello " .. frame.args.name .. "!"  
     -- return "Hello " .. frame.args.name .. "!"  
end
end


return p
return p

Revision as of 23:23, 14 December 2023

See usage on user:imahero/test.


local p = {} --p stands for package

function p.hello(frame)
	splittext = mw.text.split( '5/3', '/', true )
	return splittext[1]
    -- return "Hello " .. frame.args.name .. "!" 
end

return p