Template:Chess diagram
| a | b | c | d | e | f | g | h | ||
| 8 | 8 | ||||||||
| 7 | 7 | ||||||||
| 6 | 6 | ||||||||
| 5 | 5 | ||||||||
| 4 | 4 | ||||||||
| 3 | 3 | ||||||||
| 2 | 2 | ||||||||
| 1 | 1 | ||||||||
| a | b | c | d | e | f | g | h | ||
| Template documentation follows |
|---|
| Note: the template above may sometimes be partially or fully invisible. |
| Visit "Template:Chess diagram/doc" to edit its documentation if it is available. (How does this work?) |
| File:Lua-Logo.svg | This template uses Lua: |
These templates shows a chess diagram, a graphic representation of a position in a chess game, using standardised symbols resembling the pieces of the standard Staunton chess set. The default template for a standard chess board is {{Chess diagram}}. This documentation covers all related templates.
Templates
There are several standard chess diagram templates:
- Template:Chess diagram (square size 26x26 px)
- Template:Chess diagram small (square size 22x22 px)
- Template:Chess diagram 4x4 (square size 26x26 px)
- Template:Chess diagram 4x5 (square size 26x26 px)
- Template:Chess diagram 5x5 (square size 26x26 px)
- Template:Chess diagram 5x6 (square size 26x26 px)
- Template:Chess diagram 6x6 (square size 26x26 px)
- Template:Chess diagram 8x10 (Capablanca Chess square size 26x26 px)
- Template:Chess diagram 8x10 small (Capablanca Chess square size 22x22 px)
- Template:Chess diagram 9x9 (square size 26x26 px)
- Template:Chess diagram 9x9 small (square size 22x22 px)
- Template:Chess diagram 10x10 (square size 26x26 px)
- Template:Chess diagram 10x10 small (square size 22x22 px)
- For other board sizes, use
{{#invoke:Chessboard mxn|chessboard mxn|board|cols=|rows=}}
There are also templates for chess variants:
- Template:Alice chess diagram (Alice Chess, square size 22x22 px)
- Template:Bughouse chess diagram (Bughouse chess, square size 22x22 px)
- Template:Omega Chess diagram (Omega Chess with 10x10 board + 4 corners, 22x22 px)
- Template:Tamerlane chess diagram (Tamerlane chess with 10x11 board + 2 citadels, 22x22 px)
- Template:Raumschach diagram (5x5x5 board for one type of Three-dimensional chess, 22x22 px)
- Template:3D chess diagram (3x8x8 board for some types of Three-dimensional chess, 22x22 px)
- Template:Chad diagram (12x12 board with mostly light squares, square size 22x22 px)
- Template:Chaturanga diagram (8x8 board with all light squares, square size 22x22 px)
- Template:Fortress Chess diagram (14x14 board with 4x4 citadels and walls, square size 20x20 px)
- Template:Enochian Chess diagram (8x8 board with 4 citadels, square size 22x22 px)
- Template:Grid Chess diagram (8x8 board with grid lines every 2 squares, square size 22x22 px)
- Template:Shatra diagram (6x7 board with 3x3 square attracted to the top and bottom by sqaure, square size 22x22 px)
Syntax
The syntax is basically the same for all chess diagram templates.
{{Chess diagram
| ⟨alignment⟩ (param #1)
| ⟨header⟩ (#2)
| size =
| numbers =
| letters =
| ⟨a8⟩ | ⟨b8⟩ | ... | ⟨h8⟩ (#3 to ...
| ⟨a7⟩ | ⟨b7⟩ | ... | ⟨h7⟩
...
| ⟨a1⟩ | ⟨b1⟩ | ... | ⟨h1⟩ ( ... #66)
| ⟨footer⟩ (#67)
| reverse =
}}
Parameters
- ⟨alignment⟩ – defines horizontal alignment (floating) of the whole table, must be floatright or floatleft (or nothing)
- ⟨header⟩ – the text which appears above the diagram, may be empty;
- size - specifies the size of each square in pixels, the default is 26.
- numbers - specifies whether the rows are numbered. Options are: left, right, both (default) or neither.
- letters - specifies whether the columns are lettered. Options are: top, bottom, both (default) or neither.
- ⟨a8⟩, ⟨b8⟩, ... ⟨h1⟩ – define corresponding squares of the chessboard, see below;
- ⟨footer⟩ – the text which appears beneath the diagram, may be empty; optional – can be left out (currently not in the other templates)
A square is defined by the name of piece or empty parameter. The names of the pieces are those given in algebraic notation:
- File:Chess kll45.svg File:Chess kld45.svg File:Chess kdl45.svg File:Chess kdd45.svg k = King
- File:Chess qld45.svg File:Chess qll45.svg File:Chess qdd45.svg File:Chess qdl45.svg q = Queen
- File:Chess rll45.svg File:Chess rld45.svg File:Chess rdl45.svg File:Chess rdd45.svg r = Rook
- File:Chess bld45.svg File:Chess bll45.svg File:Chess bdd45.svg File:Chess bdl45.svg b = Bishop
- File:Chess nll45.svg File:Chess nld45.svg File:Chess ndl45.svg File:Chess ndd45.svg n = Knight
- File:Chess pld45.svg File:Chess pll45.svg File:Chess pdd45.svg File:Chess pdl45.svg p = Pawn
These letters are combined with either "l" for Light=White, or "d" for Dark=Black. So "kl" is White's king, and "nd" is Black's knight.
An empty square is written either using underscores, spaces, or nothing at all. Two spaces are recommended.
- File:Chess d45.svgFile:Chess l45.svg ⟨space⟩ = empty square
Variant chess pieces
Fairy Chess pieces
There are also some fairy chess pieces available. In general, there is no convention for which inverted piece to use, but in general one should use something similar to how the fairy piece moves (e.g. a camel should use an inverted knight icon).
- File:Chess fll45.svg File:Chess fld45.svg File:Chess fdl45.svg File:Chess fdd45.svg f = inverted King (Mann)
- File:Chess gll45.svg File:Chess gld45.svg File:Chess gdl45.svg File:Chess gdd45.svg g = inverted Queen (Grasshopper)
- File:Chess mll45.svg File:Chess mld45.svg File:Chess mdl45.svg File:Chess mdd45.svg m = inverted Rook (Wazir or Dabbaba)
- File:Chess Bll45.svg File:Chess Bld45.svg File:Chess Bdl45.svg File:Chess Bdd45.svg B = inverted Bishop (Ferz or Alfil/Elephant)
- File:Chess Nll45.svg File:Chess Nld45.svg File:Chess Ndl45.svg File:Chess Ndd45.svg N = inverted Knight (Nightrider or Camel)
- File:Chess hll45.svg File:Chess hld45.svg File:Chess hdl45.svg File:Chess hdd45.svg h = inverted Pawn (Berolina pawn)
- File:Chess all45.svg File:Chess ald45.svg File:Chess adl45.svg File:Chess add45.svg a = Archbishop (Princess)
- File:Chess cll45.svg File:Chess cld45.svg File:Chess cdl45.svg File:Chess cdd45.svg c = Chancellor (Empress)
- File:Chess Cll45.svg File:Chess Cld45.svg File:Chess Cct45.svg File:Chess Cmt45.svg C = Centaur
- File:Chess All45.svg File:Chess Ald45.svg File:Chess Adl45.svg File:Chess Add45.svg A = Amazon
- File:Chess xtl45.svg File:Chess xld45.svg File:Chess xat45.svg File:Chess xdd45.svg x = Commoner
- File:Chess Mll45.svg File:Chess Mdl45.svg File:Chess Mdl45.svg File:Chess Mdd45.svg M = Mann (alternate symbol)
- File:Chess Ull45.svg File:Chess Uld45.svg File:Chess Udl45.svg File:Chess Udd45.svg U = Unicorn
- File:Chess Zll45.svg File:Chess Zld45.svg File:Chess Zdl45.svg File:Chess Zdd45.svg Z = Zebra
- File:Chess Dll45.svg File:Chess Dld45.svg File:Chess Ddl45.svg File:Chess Ddd45.svg D = Dragon
- File:Chess Gll45.svg File:Chess Gld45.svg File:Chess Gdl45.svg File:Chess Gdd45.svg G = Giraffe
- File:Chess ell45.svg File:Chess eld45.svg File:Chess edl45.svg File:Chess edd45.svg e = Elephant (alternate symbol)
- File:Chess slg45.svg File:Chess sdg45.svg s = boat/ship
Omega Chess pieces
Omega Chess pieces:
- File:Chess zll45.svg File:Chess zld45.svg File:Chess zdl45.svg File:Chess zdd45.svg z = Champion
- File:Chess wll45.svg File:Chess wld45.svg File:Chess wdl45.svg File:Chess wdd45.svg w = Wizard
- File:Chess tll45.svg File:Chess tld45.svg File:Chess tdl45.svg File:Chess tdd45.svg t = Fool
Colored Pieces
Several pieces are available in green, red, yellow, and blue.
- File:Chess kgg45.svg File:Chess qgg45.svg File:Chess rgg45.svg File:Chess bgg45.svg File:Chess ngg45.svg File:Chess pgg45.svg g = green
- File:Chess krg45.svg File:Chess qrg45.svg File:Chess rrg45.svg File:Chess brg45.svg File:Chess nrg45.svg File:Chess prg45.svg r = red
- File:Chess kyg45.svg File:Chess qyg45.svg File:Chess ryg45.svg File:Chess byg45.svg File:Chess nyg45.svg File:Chess pyg45.svg y = yellow
- File:Chess kbg45.svg File:Chess qbg45.svg File:Chess rbg45.svg File:Chess bbg45.svg File:Chess nbg45.svg File:Chess pbg45.svg b = blue
Other symbols
You can also use "xx" for a black cross, "ox" for a white cross, "xo" for a black circle on an empty square or "oo" for a white one.
- File:Chess xxd45.svgFile:Chess xxl45.svg xx = black cross/x
- File:Chess oxd45.svgFile:Chess oxl45.svg ox = white cross/x
- File:Chess xod45.svgFile:Chess xol45.svg xo = black circle
- File:Chess ood45.svgFile:Chess ool45.svg oo = white circle
When showing movement directions on the board, arrows are available
- File:Chess uld45.svgFile:Chess ull45.svg ul = up & left
- File:Chess uad45.svgFile:Chess ual45.svg ua = up
- File:Chess urd45.svgFile:Chess url45.svg ur = up & right
- File:Chess lad45.svgFile:Chess lal45.svg la = left
- File:Chess lrd45.svgFile:Chess lrl45.svg lr = left & right
- File:Chess udd45.svgFile:Chess udl45.svg ud = up & down
- File:Chess rad45.svgFile:Chess ral45.svg ra = right
- File:Chess dld45.svgFile:Chess dll45.svg dl = down & left
- File:Chess dbd45.svgFile:Chess dbl45.svg db = diagonal as black
- File:Chess dad45.svgFile:Chess dal45.svg da = down
- File:Chess drd45.svgFile:Chess drl45.svg dr = down & right
- File:Chess dwd45.svgFile:Chess dwl45.svg dw = diagonal as white
Numbers can also be added to squares by using "x0" for 0, "x1" for 1, "x2" for 2, ..., "x9" for 9.
- File:Chess x0d45.svgFile:Chess x0l45.svg x0
- File:Chess x1d45.svgFile:Chess x1l45.svg x1
- File:Chess x2d45.svgFile:Chess x2l45.svg x2
- File:Chess x3d45.svgFile:Chess x3l45.svg x3
- File:Chess x4d45.svgFile:Chess x4l45.svg x4
- File:Chess x5d45.svgFile:Chess x5l45.svg x5
- File:Chess x6d45.svgFile:Chess x6l45.svg x6
- File:Chess x7d45.svgFile:Chess x7l45.svg x7
- File:Chess x8d45.svgFile:Chess x8l45.svg x8
- File:Chess x9d45.svgFile:Chess x9l45.svg x9
ww also can be used to hide a space which can be used to make boards of a custom shape
- File:Chess wwl45.svg ww = hidden space
Examples
Standard diagram
This diagram is recommended for common use as a main diagram in the articles on chess openings, endings, games, positions etc. See the corresponding code below.
| a | b | c | d | e | f | g | h | ||
| 8 | 8 | ||||||||
| 7 | 7 | ||||||||
| 6 | 6 | ||||||||
| 5 | 5 | ||||||||
| 4 | 4 | ||||||||
| 3 | 3 | ||||||||
| 2 | 2 | ||||||||
| 1 | 1 | ||||||||
| a | b | c | d | e | f | g | h | ||
{{Chess diagram
| floatright
|
|rd|nd|bd|qd|kd|bd|nd|rd
|pd|pd|pd|pd| |pd|pd|pd
| | | | | | | |
| | | | |pd| | |
| | | | |pl|pl| |
| | | | | | | |
|pl|pl|pl|pl| | |pl|pl
|rl|nl|bl|ql|kl|bl|nl|rl
| The King's Gambit
}}
| a | b | c | d | e | f | g | h | ||
| 8 | 8 | ||||||||
| 7 | 7 | ||||||||
| 6 | 6 | ||||||||
| 5 | 5 | ||||||||
| 4 | 4 | ||||||||
| 3 | 3 | ||||||||
| 2 | 2 | ||||||||
| 1 | 1 | ||||||||
| a | b | c | d | e | f | g | h | ||
{{Chess diagram
| floatright
|
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| Empty board
}}
Diagram with both captions
| a | b | c | d | e | f | g | h | ||
| 8 | 8 | ||||||||
| 7 | 7 | ||||||||
| 6 | 6 | ||||||||
| 5 | 5 | ||||||||
| 4 | 4 | ||||||||
| 3 | 3 | ||||||||
| 2 | 2 | ||||||||
| 1 | 1 | ||||||||
| a | b | c | d | e | f | g | h | ||
It may be convenient to use this in the articles on chess problems. Please note that in the header and footer you can use bolds or italics. You can also use <br> to break the lines.
{{Chess diagram
| floatright
| '''W. Langstaff''', ''Chess Amateur'' 1922
| | | | |kd| | |rd
| | | | | | | |
| | | | | |bl| |pl
| | | |rl| |kl|pd|pl
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| '''Mate in 2''' {{pb}}This problem uses ''partial retrograde analysis'' method.
}}
Diagram without captions
See the corresponding code below. If you don't want the captions, just remove them, but don't delete the second "|" pipe character for the caption above; it is possible to delete the last pipe for the longer caption below.
The diagram floats to the left to illustrate the use of the first parameter.
{{Chess diagram
| floatleft
|
| | | | | | | |
| | | | | | | |
| |xx|xo|xx| | | |
| | |pl| | | | |
| | | | | |xo| |
| | | | |xx|xo|xx|
| | | | | |pl| |
| | | | | | | |
}}
Movement example
This can be used to show how pieces move.
| a | b | c | d | e | f | g | h | ||
| 8 | 8 | ||||||||
| 7 | 7 | ||||||||
| 6 | 6 | ||||||||
| 5 | 5 | ||||||||
| 4 | 4 | ||||||||
| 3 | 3 | ||||||||
| 2 | 2 | ||||||||
| 1 | 1 | ||||||||
| a | b | c | d | e | f | g | h | ||
{{Chess diagram
| floatleft
|
| | |ua| | | | |
| | |ua| | | | |
|la|la|rd|ra|ra|ra|ra|ra
| | |da| | | | |
| | |da| |ul|ua|ur|
| | |da| |la|kl|ra|
| | |da| |dl|da|dr|
| | |da| | | | |
|Example showing how white king can move any direction, but only one square, while black rook can move any number of squares but only up and down, and right and left.
}}
| a | b | c | d | e | f | g | h | ||
| 8 | 8 | ||||||||
| 7 | 7 | ||||||||
| 6 | 6 | ||||||||
| 5 | 5 | ||||||||
| 4 | 4 | ||||||||
| 3 | 3 | ||||||||
| 2 | 2 | ||||||||
| 1 | 1 | ||||||||
| a | b | c | d | e | f | g | h | ||
{{Chess diagram
| floatright
|
| |ul| |ua| |ur| |
| | |ul|ua|ur| | |
|la|la|la|ql|ra|ra|ra|ra
| | |dl|da|dr| | |
| |dl| |da| |dr| |
|dl| | |da| | |dr|
| | | |da| | | |dr
| | | |da| | | |
}}
In the board on the right, it is shown that the white queen can go any distance in any of these directions.
Another method for the rook example:
{{Chess diagram
| floatleft
|
| | | | | | | |
| | |ud| | | | |
| |lr|rd|lr| | | |
| | |ud| | | | |
| | | | |ul|ua|ur|
| | | | |la|kl|ra|
| | | | |dl|da|dr|
| | | | | | | |
}}
Small diagram
This one may be useful in articles with many diagrams. It uses another template named {{Chess diagram small}}.
The small diagrams can have header, too.
| a | b | c | d | e | f | g | h | ||
| 8 | 8 | ||||||||
| 7 | 7 | ||||||||
| 6 | 6 | ||||||||
| 5 | 5 | ||||||||
| 4 | 4 | ||||||||
| 3 | 3 | ||||||||
| 2 | 2 | ||||||||
| 1 | 1 | ||||||||
| a | b | c | d | e | f | g | h | ||
{{Chess diagram small
| floatright
| [[The Game of the Century (chess)|The Game of the Century]]
|rd| | |qd| |rd|kd|
|pd|pd| | |pd|pd|bd|pd
| |nd|pd| | |nd|pd|
| | |ql| | | |bl|
| | | |pl|pl| |bd|
| | |nl| | |nl| |
|pl|pl| | | |pl|pl|pl
| | | |rl|kl|bl| |rl
| Position after 11.Bg5
}}
Different board size
Chess boards of non-standard dimensions need special templates. There are templates for the following boards:
{{Chess diagram 5x5
| floatleft
|
|kd|qd|bd|nd|rd
|pd|pd|pd|pd|pd
| | | | |
|pl|pl|pl|pl|pl
|kl|ql|bl|nl|rl
| Gardner minichess
}}
|
{{Chess diagram 6x6
| floatleft
|
|rd|nd|qd|kd|nd|rd
|pd|pd|pd|pd|pd|pd
| | | | | |
| | | | | |
|pl|pl|pl|pl|pl|pl
|rl|nl|ql|kl|nl|rl
| Los Alamos chess
}}
|
Los Alamos chess
|
{{Chess diagram 8x10
| floatleft
|
|rd|nd|ad|bd|qd|kd|bd|cd|nd|rd
|pd|pd|pd|pd|pd|pd|pd|pd|pd|pd
| | | | | | | | | |
| | | | | | | | | |
| | | | | | | | | |
| | | | | | | | | |
|pl|pl|pl|pl|pl|pl|pl|pl|pl|pl
|rl|nl|al|bl|ql|kl|bl|cl|nl|rl
| Capablanca Chess
}}
|
Capablanca Chess
|
Double boards
{{bughouse chess diagram
| A1=Team 1, Board A
| A2=Team 2, Board A
| B1=Team 1, Board B
| B2=Team 2, Board B
| floatleft
|
|rd|nd|bd|qd|kd|bd|nd|rd
|pd|pd|pd|pd|pd|pd|pd|pd
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
|pl|pl|pl|pl|pl|pl|pl|pl
|rl|nl|bl|ql|kl|bl|nl|rl
|rl|nl|bl|kl|ql|bl|nl|rl
|pl|pl|pl|pl|pl|pl|pl|pl
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
|pd|pd|pd|pd|pd|pd|pd|pd
|rd|nd|bd|kd|qd|bd|nd|rd
| Bughouse setup and starting position
}}
|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Alice Chess
{{alice chess diagram
| floatleft
|
|rd|nd|bd|qd|kd| |nd|rd
|pd|pd|pd|pd| |pd|pd|pd
| | | | | | | |
| | | | |nl| | |
| | | | | | | |
| | | | | | | |
|pl|pl|pl|pl|pl|pl|pl|pl
|rl|nl|bl|ql|kl|bl| |rl
| | | | | | | |
| | | | | | | |
| | | | |pd| | |
| | |bd| | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| Position after 1.Nf3 e6 2.Ne5 Bc5
}}
|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Different shaped board
{{Raumschach diagram
| floatleft
|
|rd|nd|kd|nd|rd
|pd|pd|pd|pd|pd
| | | | |
| | | | |
| | | | |
|Nd|bd|qd|Nd|bd
|pd|pd|pd|pd|pd
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
|pl|pl|pl|pl|pl
|bl|Nl|ql|bl|Nl
| | | | |
| | | | |
| | | | |
|pl|pl|pl|pl|pl
|rl|nl|kl|nl|rl
| Raumschach starting position
}}
|
| ||||||||
{{Omega Chess diagram
|
| [[Omega Chess]] (10×10 + 4 corners)
|wd |wd
|zd|rd|nd|bd|qd|kd|bd|nd|rd|zd
|pd|pd|pd|pd|pd|pd|pd|pd|pd|pd
| | | | | | | | | |
| | | | | | | | | |
| | | | | | | | | |
| | | | | | | | | |
| | | | | | | | | |
| | | | | | | | | |
|pl|pl|pl|pl|pl|pl|pl|pl|pl|pl
|zl|rl|nl|bl|ql|kl|bl|nl|rl|zl
|wl |wl
| Omega Chess starting position
}}
|
Omega Chess (10x10 + 4 corners)
Omega Chess starting position
|
{{Tamerlane chess diagram
|
| [[Tamerlane chess]] (10×11 + 2 citadels)
|ed| |sd| |md| |md| |sd| |ed
| |rd|nd|bd|Gd|gd|kd|qd|Gd|bd|nd|rd
|pd|pd|pd|pd|pd|pd|pd|pd|pd|pd|pd
| | | | | | | | | | |
| | | | | | | | | | |
| | | | | | | | | | |
| | | | | | | | | | |
|pl|pl|pl|pl|pl|pl|pl|pl|pl|pl|pl
|rl|nl|bl|Gl|ql|kl|gl|Gl|bl|nl|rl|
|el| |sl| |ml| |ml| |sl| |el
| Tamerlane chess "masculine" array starting position – see [[Tamerlane chess]] for the other two arrays
}}
|
Tamerlane chess (10×11 + 2 citadels)
Tamerlane chess "masculine" array starting position – see Tamerlane chess for the other two arrays
|
Alternative way to place the pieces: FEN
{{Chess diagram|fen=rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR|align=floatleft}}
| a | b | c | d | e | f | g | h | ||
| 8 | 8 | ||||||||
| 7 | 7 | ||||||||
| 6 | 6 | ||||||||
| 5 | 5 | ||||||||
| 4 | 4 | ||||||||
| 3 | 3 | ||||||||
| 2 | 2 | ||||||||
| 1 | 1 | ||||||||
| a | b | c | d | e | f | g | h | ||
It is possible to populate the board using Forsyth–Edwards Notation, instead of positional parameters.
To do this, the "fen" parameter is used. For instance, this is the opening board of a chess game, defined using the "fen" parameter "rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR":
{{Chess diagram|fen=rnbqkbnr/acfghzwt/8/8/8/8/ACFGHZWT/RNBQKBNR|align=floatleft}}
| a | b | c | d | e | f | g | h | ||
| 8 | 8 | ||||||||
| 7 | 7 | ||||||||
| 6 | 6 | ||||||||
| 5 | 5 | ||||||||
| 4 | 4 | ||||||||
| 3 | 3 | ||||||||
| 2 | 2 | ||||||||
| 1 | 1 | ||||||||
| a | b | c | d | e | f | g | h | ||
It is also possible to show "fairy" pieces using the FEN notation. However, because the FEN notation uses uppercase and lowercase to denote the color of the piece, it is not possible to display the inverted knight fairy piece (denoted by "N") using the fen parameter. Here is a board where the pawns are replaced by fairy pieces:
While the "fen" parameter was first developed and tested with 8x8 boards, support for other sized boards is available. For example, here is the Grand Chess starting positiong represented with an FEN board:
{{Chess diagram 10x10
|align=floatleft
|fen=r8r/1nbqkcabn1/pppppppppp/10/10/10/10/PPPPPPPPPP/1NBQKCABN1/R8R
|footer=[[Grand Chess]] starting position
}}
| a | b | c | d | e | f | g | h | i | j | |||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 10 | a10 black rook | b10 | c10 | d10 | e10 | f10 | g10 | h10 | i10 | j10 black rook | 10 | |
| 9 | a9 | b9 black knight | c9 black bishop | d9 black queen | e9 black king | f9 black empress | g9 black princess | h9 black bishop | i9 black knight | j9 | 9 | |
| 8 | a8 black pawn | b8 black pawn | c8 black pawn | d8 black pawn | e8 black pawn | f8 black pawn | g8 black pawn | h8 black pawn | i8 black pawn | j8 black pawn | 8 | |
| 7 | a7 | b7 | c7 | d7 | e7 | f7 | g7 | h7 | i7 | j7 | 7 | |
| 6 | a6 | b6 | c6 | d6 | e6 | f6 | g6 | h6 | i6 | j6 | 6 | |
| 5 | a5 | b5 | c5 | d5 | e5 | f5 | g5 | h5 | i5 | j5 | 5 | |
| 4 | a4 | b4 | c4 | d4 | e4 | f4 | g4 | h4 | i4 | j4 | 4 | |
| 3 | a3 white pawn | b3 white pawn | c3 white pawn | d3 white pawn | e3 white pawn | f3 white pawn | g3 white pawn | h3 white pawn | i3 white pawn | j3 white pawn | 3 | |
| 2 | a2 | b2 white knight | c2 white bishop | d2 white queen | e2 white king | f2 white empress | g2 white princess | h2 white bishop | i2 white knight | j2 | 2 | |
| 1 | a1 white rook | b1 | c1 | d1 | e1 | f1 | g1 | h1 | i1 | j1 white rook | 1 | |
| a | b | c | d | e | f | g | h | i | j |
Displaying the board from the Black's point of view
{{Chess diagram|fen=rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR|align=floatleft|reverse=true}}
| h | g | f | e | d | c | b | a | ||
| 1 | 1 | ||||||||
| 2 | 2 | ||||||||
| 3 | 3 | ||||||||
| 4 | 4 | ||||||||
| 5 | 5 | ||||||||
| 6 | 6 | ||||||||
| 7 | 7 | ||||||||
| 8 | 8 | ||||||||
| h | g | f | e | d | c | b | a | ||
The "reverse=true" parameter causes the board to be shown from Black's point of view, that is, with the h8 square at lower-left corner, and a1 at the upper-right. This works for all sizes of the normal chessboard template, but not for the Alice, Bughouse, Omega, or Raumschach templates. Here, the same FEN notation as in the previous example produces a board with Black's starting position at the bottom.
Alternative way to place the pieces: PGN
{{Chess diagram|pgn=1.d4 Nf6 2.c4 g6 3.f3 c5 4.d5 d6 5.e4 Bg7 6.Ne2 O-O 7.Nec3 Nh5 8.Bg5 Bf6 9.Bxf6 exf6 10.Qd2 f5 11.exf5 Bxf5 12.g4 Re8+ 13.Kd1 Bxb1 14.Rxb1 Qf6 15.gxh5 Qxf3+ 16.Kc2 Qxh1 17.Qf2!|align=floatleft}}
| a | b | c | d | e | f | g | h | ||
| 8 | 8 | ||||||||
| 7 | 7 | ||||||||
| 6 | 6 | ||||||||
| 5 | 5 | ||||||||
| 4 | 4 | ||||||||
| 3 | 3 | ||||||||
| 2 | 2 | ||||||||
| 1 | 1 | ||||||||
| a | b | c | d | e | f | g | h | ||
It is possible to populate the board using Portable Game Notation (PGN), instead of positional parameters or FEN. Internally, the PGN is converted to an FEN using Module:Pgn. The other parameters (align, reverse, etc) are also applicable when using PGN.