This module implements the reference template {{R:it:Olivetti}}
.
local export = {}
function export.create(frame)
local params = {
= {list = true, default = mw.title.getCurrentTitle().text},
= {list = true, allow_holes = true},
}
local args = require("Module:parameters").process(frame:getParent().args, params)
local links = {}
for i, term in ipairs(args) do
if term == "+" then
term = mw.title.getCurrentTitle().text
end
local alt = args.alt or term
local url = "https://www.dizionario-italiano.it/dizionario-italiano.php?parola=" .. mw.uri.encode(term)
table.insert(links, "")
end
local joined_links = table.concat(links, ", ")
return joined_links .. " in ''Dizionario Italiano Olivetti'', Olivetti Media Communication"
end
return export