FANDOM


local p = {}
 
function p.main(frame)
    local id = frame.args['id']
 
    -- use first argument as fallback
    if id==nil then
        id = frame.args[1]
 
        if id==nil then
            return ''
        end
    end
 
    local length = frame.args['length']
 
    -- use second argument as fallback
    if length==nil then
        length = frame.args[2]
 
        if length==nil then
            length = 0
        end
    end
 
    length = tonumber(length)
    local empties = ''
    for i=1, length, 1 do
        empties = empties .. '0,'
    end
 
    return '{{Frame sequence|id=' .. id .. '|sequence=begin,' .. empties .. 'end}}'
end
 
return p