Module:Chessboard: Difference between revisions

Content deleted Content added
fix alt text for fairy pieces and symbols
No edit summary
Line 17:
local color = mw.ustring.gsub(pc,'^.*(%w)(%w).*$', '%2') or ''
local piece = mw.ustring.gsub(pc,'^.*(%w)(%w).*$', '%1') or ''
local alt = filechar(colfile) .. rowchar(row) .. ' '
if (colornames[color] and piecenames[piece]) then
alt = alt .. colornames[color] .. ' ' .. piecenames[piece]