Module:CDD

From The Wiki Camp 2
Revision as of 22:24, 8 March 2024 by Pseudosphere (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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