local mArguments = require("Module:Arguments")
local p = {}
function p.ulist(frame)
local args = mArguments.getArgs(frame, {
parentOnly = true
})
local out_str = "<ul>\n"
for k, v in pairs(args) do
out_str = out_str .. "<li>" .. v .. "</li>\n"
end
out_str = out_str .. "</ul>"
return out_str
end
function p.modlink(frame)
local args = mArguments.getArgs(frame, {
parentOnly = true
})
local out_str = ""
local i = 0
for k, v in pairs(args) do
out_str = out_str .. "[[Module:" .. v .. "]]" .. ", "
i = k
end
out_str = out_str:sub(1, -3)
.. " – The "
.. string.gsub("module that implement", "()", {[((i > 1) and {7} or {22})[1]] = "s"})
.. " the functionality."
return out_str
end
return p