Module:Delimited tag: Difference between revisions

return output
skip first go-around
Line 49: Line 49:
for i,unit in ipairs(args) do
for i,unit in ipairs(args) do
local currentDelimiter = args[i+1] and midDelimiter or (serialDelimiter .. delimiter)
if (i > 1) then
output = output .. currentDelimiter .. tag(args[i])
local currentDelimiter = args[i+1] and midDelimiter or (serialDelimiter .. delimiter)
output = output .. currentDelimiter .. tag(args[i])
end
end
end