45,647
edits
No edit summary |
No edit summary |
||
Line 5: | Line 5: | ||
local args = frame.args | local args = frame.args | ||
local str = args[1]; local words = {} | local str = args[1]; local words = {} | ||
local sep = args[2] or " " | |||
for word in mw.ustring.gmatch(str, "(%S+)") do | for word in mw.ustring.gmatch(str, "(%S+)") do | ||
Line 11: | Line 12: | ||
end | end | ||
return table.concat(words, | return table.concat(words, sep) | ||
end | end | ||
return export | return export |