Модул:anagrams
Script error: The function "main" does not exist.
local m_languages = require("Модул:languages")
local m_links = require('Модул:links')
local export = {}
function export.show(frame)
local params = {
[1] = {required = true, default = "und"},
[2] = {required = true, default = "anagram", list = true},
["a"] = {required = false},
}
local args = require("Модул:parameters").process(frame:getParent().args, params)
local lang = m_languages.getByCode(args[1])
for i, val in ipairs(args[2]) do
args[2][i] = m_links.full_link({lang = lang, term = val})
end
local result = table.concat(args[2], ', ')
if args["a"] then
result = result .. " <sup>(alphagram ''" .. args["a"] .. "'')</sup>"
end
return result
end
return export