Module:Proposal support: Difference between revisions

From Tardis Wiki, the free Doctor Who reference
no edit summary
No edit summary
Tag: Reverted
No edit summary
Tag: Reverted
Line 2: Line 2:


--from [[Module:SMW]]
--from [[Module:SMW]]
concat = function(...)
    local args = {...}
    if #args == 0 then
        error('you must supply at least one argument to \'concat\' (got none)')
    end
    local firstArg = table.remove(args, 1)
    if type(firstArg) == 'string' or type(firstArg) == 'number' then
        firstArg = print(firstArg)
    else
        firstArg = ''
    end
    if #args == 0 then
        return firstArg
    else
        return firstArg .. concat(unpack(args))
    end
end
dump = function(entity, indent, omitType)
dump = function(entity, indent, omitType)
     local entity = entity
     local entity = entity
Cookies help us deliver our services. By using our services, you agree to our use of cookies.