Jump to content

Module:Cslist

Permanently protected module
From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by RexxS (talk | contribs) at 11:45, 15 December 2018 (modules creates a list from its unnamed arguments). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

p = {}

p.makelist = function(frame)
	local args = frame.args
	if not args[1] then
		args = frame:getParent().args
		if not args[1] then return end
	end
	local out = ""
	for k, v in ipairs(args) do
		out = out .. "\n*" .. v
	end
	return out
end

return p