Module:Print: Difference between revisions

From Kronopolis and the Flat Plane
No edit summary
Tag: Reverted
No edit summary
Tags: Manual revert Reverted
Line 1: Line 1:
function print(p)
p = {}
p = {'p1','p2'}
p.loop = function(frame)
local out = {}


for idx = 1, 5 do
p.loop = function(frame)
table.insert(out, idx)
local out = {}
end


return table.concat(out, "<br>")
for idx = 1, 5 do
table.insert(out, idx)
end
end


return mw.logObject(p)
return table.concat(out, "<br>")
end
end
return p

Revision as of 15:10, 22 February 2023

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

p = {}

p.loop = function(frame)
	local out = {}

	for idx = 1, 5 do
		table.insert(out, idx)
	end

	return table.concat(out, "<br>")
end

return p