This template uses Lua: |
Takes a number of optional arguments and outputs the standard algebraic chess notation interpretation.
All optional params:
|from=
alphanumeral (file and rank) only for use with ((User:Fred Gandt/sandbox/chessDemo))|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((User:Fred Gandt/sandbox/chessDemo/move|to=f5|piece=knight|capture=yes))
Nxf5
or for use in ((User:Fred Gandt/sandbox/chessDemo))
((User:Fred Gandt/sandbox/chessDemo/move|from=f5|to=d6|piece=knight|check=yes))
f5 Nd6+
or
((User:Fred Gandt/sandbox/chessDemo/move|to=c8|disambiguation=b|capture=yes|promotion=queen|comment=White promotes pawn to Queen during capture resulting in check.|check=yes))
bxc8=Q+
White promotes pawn to Queen during capture resulting in check.
or
((User:Fred Gandt/sandbox/chessDemo/move|check=mate|comment=Queenside castling leads to mate.|gamescore=black|punctuation=!!|castle=queenside))
0-0-0#!! 0–1
Queenside castling leads to mate.