See Template:Loop/doc
local p = {} function p.add( frame ) local count = frame.args[1] local dot = frame.args[2] if dot == nil then dot = '.' end local result = '' for i=1,count do result = dot .. result end return result end return p