This module implements the reference template {{R:it:DOP}}
.
local export = {}
function export.create(frame)
local params = {
= {list = true, allow_holes = true, required = true},
= {list = true, allow_holes = true, default = mw.title.getCurrentTitle().text},
}
local args = require("Module:parameters").process(frame:getParent().args, params)
local links = {}
for i, id in ipairs(args) do
local lemma = args.lemma or "+"
if lemma == "+" then
lemma = mw.title.getCurrentTitle().text
end
-- URL's generated by searching have a separate numeric rID= in them but that isn't necessary to get to the lemma.
local url = "https://dizionario.rai.it/p.aspx?nID=lemma&lID=" .. id
table.insert(links, "")
end
local joined_links = table.concat(links, ", ")
return joined_links .. " in ] et al., ''Dizionario d'ortografia e di pronunzia'', Rai Eri, 2007"
end
return export