Module:number list: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 73: Line 73:


local a = ("a"):byte()
local a = ("a"):byte()
local function multiple_num_links(terms, lang)
local function multiple_num_links(terms)
local links = {}
local links = {}
for i, term in ipairs(terms) do
for i, term in ipairs(terms) do
links[i] = m_links.language_link{lang = lang, term = term, alt = "[" .. string.char(a + i - 1) .. "]", tr = "-"}
links[i] = m_links.language_link{ term = term, alt = "[" .. string.char(a + i - 1) .. "]", tr = "-"}
end
end
return "<sup>" .. table.concat(links, ", ") .. "</sup>"
return "<sup>" .. table.concat(links, ", ") .. "</sup>"

Navigation menu