Module:snon-cell: Difference between revisions

Melinoë (talk | contribs)
No edit summary
Tags: Manual revert Reverted
Melinoë (talk | contribs)
No edit summary
Tag: Manual revert
 
Line 1: Line 1:
local m_links = require("Module:links")
local lang = require("Module:languages").getByCode("snon")
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 links = {}
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(links, m_links.full_link({lang = lang, term = j, accel = accel}))
table.insert(out, args[1])
end
end
end
end
end
end
return table.concat(links, ", ")
return table.concat(out, ", ")
end
end


return export
return export