Module:ColPollTable: Difference between revisions

Content deleted Content added
working on self documentation, probably has bugs
m Protected "Module:ColPollTable": High-risk Lua module: requested at WP:RFPP ([Edit=Require autoconfirmed or confirmed access] (indefinite) [Move=Require autoconfirmed or confirmed access] (indefinite))
 
(7 intermediate revisions by one other user not shown)
Line 47:
for i=1,#desc do
local d = desc[i]
local c = string.lower(d[1])
local s = CC_backgrounds[c] or CC_backgrounds.default
ret:tag('tr')
:tag('td'):wikitext(d[1]c):done()
:tag('td'):wikitext(d[2]):done()
:tag('td'):css(CC_backgrounds[d[1]]s):done()
end
return ret