Content deleted Content added
revert: One change at a time |
Bugfix: Allow one to specify how to align board diagrams using FEN to specify the position, e.g. {{#invoke:Chessboard mxn/Sandbox|board|cols=10|rows=10|letters=both|numbers=both|fen=r8r/1nbqkcabn1/pppppppppp/10/10/10/10/PPPPPPPPPP/1NBQKCABN1/R8R|align=tleft|footer=Grand Chess (with a capital C)}} Tag: Reverted |
||
Line 185:
local header = mw.ustring.gsub( args[2] or pargs[2] or '', '^%s*(.-)%s*$', '%1' )
local footer = args[3 + rows*cols] or pargs[3 + rows*cols] or ''
local align = ( args[1] or pargs[1] or args.align or 'tright' ):lower()
local clear = ( args.clear or pargs.clear ) or ( align:match('tright') and 'right' or 'none' )
local noframe = (args.noframe or pargs.noframe or ''):lower() == "true"
|