Module:Chessboard mxn: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 77:
local numbers_lt = numbers:match('both') or numbers:match('left')
local numbers_rt = numbers:match('both') or numbers:match('right')
local width = cols * size + 62
if ( numbers_lt ) then width = width + 18 end
if ( numbers_rt ) then width = width + 18 end
Line 108:
return '<div class="thumb ' .. align .. '" style="clear:' .. clear .. ';">'
.. header .. '\n<div class="thumbinner" style="width:' .. width .. 'px; text-align:center">\n'
.. '<table cellpadding=0 cellspacing=0 style="background:white; font-size:88%; border:1px #b0b0b0 solid; padding:0; margin:auto">\n'
.. ' margin:auto">\n' .. b .. '\n</table>\n' .. caption .. '</div></div>'
end