Module:Sandbox/Tmn/test explained

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.cend

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 .. "\""endreturn p