Module:Sandbox/Tmn/test

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