Module:snon-cell: Difference between revisions
No edit summary Tags: Manual revert Reverted |
No edit summary Tag: Manual revert |
||
| Line 1: | Line 1: | ||
local export = {} | local export = {} | ||
| Line 112: | Line 110: | ||
function export.create(frame) | function export.create(frame) | ||
local args = frame:getParent().args | local args = frame:getParent().args | ||
local | local out = {} | ||
if not args[1] or args[1] == "" then | if not args[1] or args[1] == "" then | ||
return "―" | return "―" | ||
| Line 135: | Line 133: | ||
if words then | if words then | ||
for i,j in ipairs(words) do | for i,j in ipairs(words) do | ||
table.insert( | table.insert(out, args[1]) | ||
end | end | ||
end | end | ||
end | end | ||
return table.concat( | return table.concat(out, ", ") | ||
end | end | ||
return export | return export | ||