Difference between revisions of "Module:CDD"

From The Wiki Camp 2
Jump to navigation Jump to search
(Created page with "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...")
 
 
Line 11: Line 11:
 
return table.concat(out)
 
return table.concat(out)
 
end
 
end
 +
 +
return p

Latest revision as of 22:24, 8 March 2024

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