Difference between revisions of "Module:Sandbox"

From blackwiki
Jump to navigation Jump to search
blackwiki>DerBorg
m (testing module)
blackwiki>DerBorg
m (testing module (2))
Line 4: Line 4:
 
   
 
   
 
function p.hello()
 
function p.hello()
return "Hello, world!"
+
return "Hello, ö!"
 
end
 
end
 
   
 
   
 
return p
 
return p

Revision as of 03:24, 14 November 2015

Scribunto Testing Area

This is not an actual Lua module. It exists to provide a convenient pseudo-namespace for code testing, hopefully preventing the main Module: namespace from becoming littered with experiments, as Lua modules cannot exist as subpages in the User: namespace.

Please name your experimental modules in the following format to help keep things tidy:

Module:Sandbox/Your User Name/Module name

You can use Special:PrefixIndex/Module:Sandbox to list modules in this area.



-- Placeholder only! Do not add code.

local p = {}
 
function p.hello()
	return "Hello, ö!"
end
 
return p