Content deleted Content added
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 |
Allow “header” to be set when using FEN, e.g. {{#invoke:Chessboard mxn/Sandbox|board|cols=10|rows=10|letters=both|numbers=both|header=Grand Chess|fen=r8r/1nbqkcabn1/pppppppppp/10/10/10/10/PPPPPPPPPP/1NBQKCABN1/R8R|align=tleft|footer=Grand Chess (with a capital C)}} Tag: Reverted |
||
Line 183:
local letters = ( args.letters or pargs.letters or 'both' ):lower()
local numbers = ( args.numbers or pargs.numbers or 'both' ):lower()
local header = mw.ustring.gsub( args[2] or pargs[2] or args.header 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()
|