Module:snon-cell: Difference between revisions

Melinoë (talk | contribs)
No edit summary
Tag: Reverted
Melinoë (talk | contribs)
No edit summary
Tag: Reverted
Line 112: Line 112:
function export.create(frame)
function export.create(frame)
local args = frame:getParent().args
local args = frame:getParent().args
local out = {}
local links = {}
if not args[1] or args[1] == "" then
if not args[1] or args[1] == "" then
return "―"
return "―"
Line 135: Line 135:
if words then
if words then
for i,j in ipairs(words) do
for i,j in ipairs(words) do
table.insert(out, args[1])
table.insert(links, m_links.full_link({lang = lang, term = j, accel = accel}))
end
end
end
end
end
end
return table.concat(out, ", ")
return table.concat(links, ", ")
end
end


return export
return export