User:Fred Gandt/sandbox/chessDemo/move

{{documentation|content={{lua|Module:Sandbox/Fred Gandt/chessDemo}}

Usage
Takes a number of optional arguments and outputs the standard algebraic chess notation interpretation.

Syntax
All optional params:
 * from alphanumeral (file and rank) only for use with
 * to alphanumeral (file and rank)
 * piece name of the piece moving or empty for a pawn
 * disambiguation file and/or rank
 * castle kingside or queenside
 * capture yes
 * enpassant yes
 * promotion name of the piece to which the pawn promotes
 * check yes or mate
 * punctuation characters to append
 * comment move commentary
 * gamescore white, black or draw

Example

 * Note: The order of the named params doesn't matter.


 * Code:
 * Result:

or for use in


 * Code:
 * Result:

or


 * Code:
 * Result:

or

}}
 * Code:
 * Result: