Module:Imahero: Difference between revisions

From Heroes 3 wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 3: Line 3:
function p.hello(frame)
function p.hello(frame)
result = frame:expandTemplate{title = 'project:Test'}
result = frame:expandTemplate{title = 'project:Test'}
if result then
if result == 'true' then
return 'YES'
return 'YES'
end
end

Revision as of 08:50, 4 September 2024

See usage on user:imahero/test.


local p = {} --p stands for package

function p.hello(frame)
	result = frame:expandTemplate{title = 'project:Test'}
	if result == 'true' then
		return 'YES'
	end
	return 'NO'
    -- return "Hello " .. frame.args.name .. "!" 
end

return p