Tech, emailconfirmed, Administrators (Semantic MediaWiki), Curators (Semantic MediaWiki), Administrators
12,451
edits
Bongolium500 (talk | contribs) (Created page with "local p = {} --p stands for package function p.hello( frame ) return "Hello, world!" end return p") |
Bongolium500 (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
local p = {} --p stands for package | local p = {} --p stands for package | ||
local test1 = {["first"] = "first2", ["second"] = "second2"} | |||
local test2 = {} | |||
function p.hello( frame ) | function p.hello( frame ) | ||
test2[1] = test1["first"] | |||
test2[test1["second"]] = test1["second"] | |||
return "Hello, world!" | return "Hello, world!" | ||
end | end | ||
return p | return p |
edits