Module:CDD

From The Wiki Camp 2
Jump to navigation Jump to search

Documentation for this module may be created at Module:CDD/doc

local p = {}

function p.cdd(frame)
	local out = {"<span class=\"coxeter\" style=\"display:inline-block;\">"}
	for i, x in ipairs(frame:getParent().args) do if (x ~= "") then
		out[#out + 1] = "[[File:CDel_"
		out[#out + 1] = x
		out[#out + 1] = ".png|link=]]"
	end end
	out[#out + 1] = "</span>"
	return table.concat(out)
end

return p