Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Module:Test: Difference between revisions

From North Forge
Created page with "local p = {} -- this is a commen --a multi line comment function p.getAuthor( frame ) --if frame.args[1] == nil return p.testParameters(frame.args[1]) end function p.testParameters( myParameter ) local myOutput if myParameter == nil then myOutput = "it was empty" else myOutput = "parameter was:"..myParameter end return myOutput end return p"
 
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
local p = {}
local p = {}
-- this is a commen
 
--[[a multi
line comment]]
function p.getAuthor( frame )
function p.getAuthor( frame )
--if frame.args[1] == nil  
--if frame.args[1] == nil  
Line 17: Line 15:
         myOutput = "parameter was:"..myParameter
         myOutput = "parameter was:"..myParameter
end
end
    mw.log("logged stuff") -- send things to debug log
return myOutput
return myOutput
end  
end  


return p
return p

Latest revision as of 21:28, 2024 May 29

This is just a module to test Scribunto/loa


local p = {}

function p.getAuthor( frame )
	--if frame.args[1] == nil 
	
	return p.testParameters(frame.args[1])
	
end

function p.testParameters( myParameter )
	local myOutput
	if myParameter == nil then
		myOutput = "it was empty"
	else
        myOutput = "parameter was:"..myParameter
	end
    mw.log("logged stuff") -- send things to debug log
	return myOutput
end 

return p