Module:College color/sandbox: Difference between revisions

Content deleted Content added
ucfirst?
use mw.text.listToText
Line 402:
res = colornames[1] .. ' and ' .. colornames[2]
elseif (#colornames > 2) then
res = mw.text.listToText( colornames[1], ', ', ', and ' )
for i=2,#colornames do
if( i < #colornames ) then
res = res .. ',&nbsp;' .. colornames[i]
else
res = res .. ',&nbsp;and&nbsp;' .. colornames[i]
end
end
end