Module:Variable arguments: Difference between revisions

ArrowHead294 (talk | contribs)
mNo edit summary
ArrowHead294 (talk | contribs)
m Test function for nowrap
Line 24: Line 24:
.. 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"})
.. " the functionality."
.. " the functionality."
return out_str
end
function p.nwr(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 .. "<span style=\"white-space: nowrap;\">{{trim|" .. v .. "}}</span>" .. ", "
i = k
end
out_str = out_str:sub(1, -3)
return out_str
return out_str
end
end


return p
return p