Module:Sandbox/Tmn/test

From Wikipedia, the free encyclopedia
This is the current revision of this page, as edited by imported>Tmn at 20:11, 11 October 2016. The present address (URL) is a permanent link to this version.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
local p = {}
p.c = 0

function p.begin(frame)
	p.c = 0
	return "Begin: "
end

function p.inc(frame)
	p.c = p.c + 1
	return p.c
end

function p.parens(frame)
	return "(" .. frame.args[1] .. ")"
end

function p.brackets(frame)
	return "[" .. frame.args[1] .. "]"
end

function p.quoteStr(frame)
	return "\"" .. frame.args.str .. "\""
end
return p