Module:Variable arguments: Difference between revisions

ArrowHead294 (talk | contribs)
mNo edit summary
ArrowHead294 (talk | contribs)
mNo edit summary
Line 10: Line 10:
if args == nil or args == "" then
if args == nil or args == "" then
out_str = "[[Module:" .. frame:preprocess("{{ROOTPAGENAME}}") .. "]], "
out_str = "[[Module:" .. frame:preprocess("{{ROOTPAGENAME}}") .. "]]"
else
else
for k, v in pairs(args) do
for k, v in pairs(args) do
Line 16: Line 16:
i = k
i = k
end
end
out_str = out_str:sub(1, -3)
end
end
out_str = out_str:sub(1, -3)
out_str = out_str  
.. " – The "
.. " – The "
.. string.gsub("module that implement", "()", {[((i > 1) and {7} or {22})[1]] = "s"})
.. string.gsub("module that implement", "()", {[((i > 1) and {7} or {22})[1]] = "s"})