Tech, emailconfirmed, Administrators (Semantic MediaWiki), Curators (Semantic MediaWiki), Administrators
12,495
edits
Bongolium500 (talk | contribs) No edit summary Tag: Reverted |
Bongolium500 (talk | contribs) 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 |
edits