Used by Template:ja-blend. See there for details.
Requiring Module:parameters, Module:ja-link.
local export = {}
local link = require('Module:ja-link').link
-- ]
function export.show(frame)
local args = require("Module:parameters").process(frame:getParent().args, {
= {list = true, allow_holes = true},
= {list = true, allow_holes = true},
= {list = true, allow_holes = true},
= {list = true, allow_holes = true},
= {list = true, allow_holes = true},
= {list = true, allow_holes = true},
= {},
= {},
= {},
= {},
})
local len = (args.maxindex + 1) / 2
local result = {}
local sort = ""
for i = 1, len do
table.insert(result, link({
lemma = args,
kana = args,
gloss = args,
transliteration = args,
lit = args,
linkto = args,
pos = args,
}, {}))
sort = sort .. mw.ustring.gsub(args or args, "", "")
end
return (args and "" or (" and "b" or "B") .. "lend]] of " ))) .. table.concat(result, " + ") .. (args and "" or (" or sort) .. "]]"))
end
return export