Template:Chess-fen

From Wikitech
Jump to navigation Jump to search

testing lua. this template should display a chess board, given a FEN.

parameters:

  • fen: the string representing the location of the pieces. supposedly, it will ignore the "tail end" of the FEN string that does not represent the actual pieces.
  • size: integer, represent the size of one square in pixels. optional - defaults to 30
  • "reverse": use "true" to show the board from the black's point of view.


a b c d e f g h
8
Chessboard480.png
Chess rdt45.svg
Chess ndt45.svg
Chess bdt45.svg
Chess qdt45.svg
Chess kdt45.svg
Chess bdt45.svg
Chess ndt45.svg
Chess rdt45.svg
Chess pdt45.svg
Chess pdt45.svg
Chess pdt45.svg
Chess pdt45.svg
Chess pdt45.svg
Chess pdt45.svg
Chess pdt45.svg
Chess pdt45.svg
Chess plt45.svg
Chess plt45.svg
Chess plt45.svg
Chess plt45.svg
Chess plt45.svg
Chess plt45.svg
Chess plt45.svg
Chess plt45.svg
Chess rlt45.svg
Chess nlt45.svg
Chess blt45.svg
Chess qlt45.svg
Chess klt45.svg
Chess blt45.svg
Chess nlt45.svg
Chess rlt45.svg
8
7 7
6 6
5 5
4 4
3 3
2 2
1 1
a b c d e f g h
h g f e d c b a
1
Chessboard480.png
Chess rdt45.svg
Chess ndt45.svg
Chess bdt45.svg
Chess qdt45.svg
Chess kdt45.svg
Chess bdt45.svg
Chess ndt45.svg
Chess rdt45.svg
Chess pdt45.svg
Chess pdt45.svg
Chess pdt45.svg
Chess pdt45.svg
Chess pdt45.svg
Chess pdt45.svg
Chess pdt45.svg
Chess pdt45.svg
Chess plt45.svg
Chess plt45.svg
Chess plt45.svg
Chess plt45.svg
Chess plt45.svg
Chess plt45.svg
Chess plt45.svg
Chess plt45.svg
Chess rlt45.svg
Chess nlt45.svg
Chess blt45.svg
Chess qlt45.svg
Chess klt45.svg
Chess blt45.svg
Chess nlt45.svg
Chess rlt45.svg
1
2 2
3 3
4 4
5 5
6 6
7 7
8 8
h g f e d c b a