Module:Z8: Difference between revisions

From Civilization Modding Wiki
Jump to navigationJump to search
Marn (talk | contribs)
n
 
Marn (talk | contribs)
m Marn moved page Module:Z9 to Module:Z8: t
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
local p={}
local p = {}
function p.a()
function p.a()
return "OK"
return "OK"
end
function p.b()
local t={}
for k,v in pairs(_G) do t[#t+1]=tostring(k) end
return table.concat(t, ",")
end
function p.c()
local ok, x = pcall(function() return mw.system end)
return tostring(ok) .. ":" .. tostring(x)
end
function p.d()
local ok, x = pcall(function() return mw.getCurrentFrame end)
return tostring(ok)
end
end
return p
return p

Latest revision as of 03:23, 26 October 2026

Documentation for this module may be created at Module:Z8/doc

local p = {}
function p.a()
return "OK"
end
function p.b()
local t={}
for k,v in pairs(_G) do t[#t+1]=tostring(k) end
return table.concat(t, ",")
end
function p.c()
local ok, x = pcall(function() return mw.system end)
return tostring(ok) .. ":" .. tostring(x)
end
function p.d()
local ok, x = pcall(function() return mw.getCurrentFrame end)
return tostring(ok)
end
return p