Template:Chess diagram

维基百科,自由的百科全书
跳到导航 跳到搜索
abcdefgh
8a8b8c8d8e8f8g8h88
7a7b7c7d7e7f7g7h77
6a6b6c6d6e6f6g6h66
5a5b5c5d5e5f5g5h55
4a4b4c4d4e4f4g4h44
3a3b3c3d3e3f3g3h33
2a2b2c2d2e2f2g2h22
1a1b1c1d1e1f1g1h11
abcdefgh
文档图示 模板文档[查看] [编辑] [历史] [清除缓存]

使用方法[编辑]

There are several standard chess diagram templates:

There are also templates for chess variants:

The syntax is basically the same for all of them.

{{Chess diagram
| <alignment> (參數#1)
| <標題>    (#2) 
| size =
| numbers =
| letters =
| <a8> | <b8> | ... | <h8>  (#3 to ...
| <a7> | <b7> | ... | <h7>
...
| <a1> | <b1> | ... | <h1>  ( ... #66)
| <脚注> (#67)
| reverse = 
}}

When the chess board is 8x8, there is an alternative syntax (see #Alternative way to place the pieces: FEN below):

{{Chess diagram
| fen =
| align =
| clear = 
| header = 
| footer =
| size =
| numbers =
| letters =
| reverse =
}}

參數:

  • <alignment> – 「tleft」會泊向左方,而「tright」會泊向右方
  • <標題> – 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;
  • <脚注> – 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:

There are also some fairy chess pieces available: Chess klg45.svg Chess elg45.svg Chess nlg45.svg Chess slg45.svg Chess plg45.svg Chess Mdt45.svg Chess Mlt45.svg RoyalKnightFinish Done.svg

  • Chess all45.svg Chess ald45.svg Chess adl45.svg Chess add45.svg a = archbishop (knight+bishop compound)
  • Chess cld45.svg Chess cll45.svg Chess cdd45.svg Chess cdl45.svg c = chancellor (knight+rook compound)
  • Chess fll45.svg Chess fld45.svg Chess fdl45.svg Chess fdd45.svg f = inverted king
  • Chess gld45.svg Chess gll45.svg Chess gdd45.svg Chess gdl45.svg g = inverted queen
  • Chess mll45.svg Chess mld45.svg Chess mdl45.svg Chess mdd45.svg m = inverted rook
  • Chess eld45.svg Chess ell45.svg Chess edd45.svg Chess edl45.svg j(e) = elephant
  • Chess sll45.svg Chess sld45.svg Chess sdl45.svg Chess sdd45.svg N(s) = inverted knight
  • Chess hld45.svg Chess hll45.svg Chess hdd45.svg Chess hdl45.svg h = inverted pawn
  • Chess zll45.svg Chess zld45.svg Chess zdl45.svg Chess zdd45.svg z = champion (for Omega Chess)
  • Chess wld45.svg Chess wll45.svg Chess wdd45.svg Chess wdl45.svg w = wizard (for Omega Chess)
  • Chess tld45.svg Chess tll45.svg Chess tdd45.svg Chess tdl45.svg t = fool (for Omega Chess)
  • Mann white on light (an icon of the chess piece).png Mann white on dark (an icon of the chess piece).png Mann black on light (an icon of the chess piece).png Mann black on dark (an icon of the chess piece).png M = mann
  • Centaur on white squares.png Centaur on dark squares.png C = centaur

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.

  • Chess d45.svgChess l45.svg <space> = empty square

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.

  • Chess xxd45.svgChess xxl45.svg xx = 黑叉
  • Chess oxd45.svgChess oxl45.svg ox = 白叉
  • Chess xod45.svgChess xol45.svg xo = 黑圈
  • Chess ood45.svgChess ool45.svg oo = 白圈

When showing movement directions on the board, arrows are available

  • Chess uld45.svgChess ull45.svg ul = 左上
  • Chess uad45.svgChess ual45.svg ua = 上
  • Chess urd45.svgChess url45.svg ur = 右上
  • Chess lad45.svgChess lal45.svg la = 左
  • Chess lrd45.svgChess lrl45.svg lr = 左右
  • Chess udd45.svgChess udl45.svg ud = 上下
  • Chess rad45.svgChess ral45.svg ra = 右
  • Chess dld45.svgChess dll45.svg dl = 左下
  • Chess dad45.svgChess dal45.svg da = 下
  • Chess drd45.svgChess drl45.svg dr = 右下

Numbers can also be added to squares by using "x0" for 0, "x1" for 1, "x2" for 2, ..., "x9" for 9.

  • Chess x0d45.svgChess x0l45.svg x0
  • Chess x1d45.svgChess x1l45.svg x1
  • Chess x2d45.svgChess x2l45.svg x2
  • Chess x3d45.svgChess x3l45.svg x3
  • Chess x4d45.svgChess x4l45.svg x4
  • Chess x5d45.svgChess x5l45.svg x5
  • Chess x6d45.svgChess x6l45.svg x6
  • Chess x7d45.svgChess x7l45.svg x7
  • Chess x8d45.svgChess x8l45.svg x8
  • Chess x9d45.svgChess x9l45.svg x9

範例[编辑]

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.

abcdefgh
8a8 black rookb8 black knightc8 black bishopd8 black queene8 black kingf8 black bishopg8 black knighth8 black rook8
7a7 black pawnb7 black pawnc7 black pawnd7 black pawne7f7 black pawng7 black pawnh7 black pawn7
6a6b6c6d6e6f6g6h66
5a5b5c5d5e5 black pawnf5g5h55
4a4b4c4d4e4 white pawnf4 white pawng4h44
3a3b3c3d3e3f3g3h33
2a2 white pawnb2 white pawnc2 white pawnd2 white pawne2f2g2 white pawnh2 white pawn2
1a1 white rookb1 white knightc1 white bishopd1 white queene1 white kingf1 white bishopg1 white knighth1 white rook1
abcdefgh
The King's Gambit
{{Chess diagram
| tright
| 

|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
}}
abcdefgh
8a8b8c8d8e8f8g8h88
7a7b7c7d7e7f7g7h77
6a6b6c6d6e6f6g6h66
5a5b5c5d5e5f5g5h55
4a4b4c4d4e4f4g4h44
3a3b3c3d3e3f3g3h33
2a2b2c2d2e2f2g2h22
1a1b1c1d1e1f1g1h11
abcdefgh
空板
{{Chess diagram
| tright
| 

|  |  |  |  |  |  |  |  
|  |  |  |  |  |  |  |  
|  |  |  |  |  |  |  |  
|  |  |  |  |  |  |  |  
|  |  |  |  |  |  |  |  
|  |  |  |  |  |  |  |  
|  |  |  |  |  |  |  |  
|  |  |  |  |  |  |  |  

| 空板
}}

兩行脚注[编辑]

W. Langstaff, Chess Amateur 1922
abcdefgh
8a8b8c8d8e8 black kingf8g8h8 black rook8
7a7b7c7d7e7f7g7h77
6a6b6c6d6e6f6 white bishopg6h6 white pawn6
5a5b5c5d5 white rooke5f5 white kingg5 black pawnh5 white pawn5
4a4b4c4d4e4f4g4h44
3a3b3c3d3e3f3g3h33
2a2b2c2d2e2f2g2h22
1a1b1c1d1e1f1g1h11
abcdefgh
Mate in two.
This problem uses partial retrograde analysis method.

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
| tright
| '''W. Langstaff''', ''Chess Amateur'' 1922

|  |  |  |  |kd|  |  |rd
|  |  |  |  |  |  |  |  
|  |  |  |  |  |bl|  |pl
|  |  |  |rl|  |kl|pd|pl
|  |  |  |  |  |  |  |  
|  |  |  |  |  |  |  |  
|  |  |  |  |  |  |  |  
|  |  |  |  |  |  |  |  

| '''Mate in two.''' <br> This problem uses ''partial retrograde analysis'' method.
}}

無脚注[编辑]

abcdefgh
8a8b8c8d8e8f8g8h88
7a7b7c7d7e7f7g7h77
6a6b6 black crossc6 black circled6 black crosse6f6g6h66
5a5b5c5 white pawnd5e5f5g5h55
4a4b4c4d4e4f4 black circleg4h44
3a3b3c3d3e3 black crossf3 black circleg3 black crossh33
2a2b2c2d2e2f2 white pawng2h22
1a1b1c1d1e1f1g1h11
abcdefgh

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
| tleft
| 

|  |  |  |  |  |  |  |  
|  |  |  |  |  |  |  |  
|  |xx|xo|xx|  |  |  |  
|  |  |pl|  |  |  |  |  
|  |  |  |  |  |xo|  |  
|  |  |  |  |xx|xo|xx|  
|  |  |  |  |  |pl|  |  
|  |  |  |  |  |  |  |  

}}

Movement example[编辑]

This can be used to show how pieces move.

abcdefgh
8a8b8c8 up arrowd8e8f8g8h88
7a7b7c7 up arrowd7e7f7g7h77
6a6 left arrowb6 left arrowc6 black rookd6 right arrowe6 right arrowf6 right arrowg6 right arrowh6 right arrow6
5a5b5c5 down arrowd5e5f5g5h55
4a4b4c4 down arrowd4e4 up-left arrowf4 up arrowg4 up-right arrowh44
3a3b3c3 down arrowd3e3 left arrowf3 white kingg3 right arrowh33
2a2b2c2 down arrowd2e2 down-left arrowf2 down arrowg2 down-right arrowh22
1a1b1c1 down arrowd1e1f1g1h11
abcdefgh
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.

{{Chess diagram 
| tleft
| 

|  |  |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.
}}
abcdefgh
8a8b8 up-left arrowc8d8 up arrowe8f8 up-right arrowg8h88
7a7b7c7 up-left arrowd7 up arrowe7 up-right arrowf7g7h77
6a6 left arrowb6 left arrowc6 left arrowd6 white queene6 right arrowf6 right arrowg6 right arrowh6 right arrow6
5a5b5c5 down-left arrowd5 down arrowe5 down-right arrowf5g5h55
4a4b4 down-left arrowc4d4 down arrowe4f4 down-right arrowg4h44
3a3 down-left arrowb3c3d3 down arrowe3f3g3 down-right arrowh33
2a2b2c2d2 down arrowe2f2g2h2 down-right arrow2
1a1b1c1d1 down arrowe1f1g1h11
abcdefgh
{{Chess diagram
| tright
| 

|  |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:

abcdefgh
8a8b8c8d8e8f8g8h88
7a7b7c7 up-down arrowd7e7f7g7h77
6a6b6 left-right arrowc6 black rookd6 left-right arrowe6f6g6h66
5a5b5c5 up-down arrowd5e5f5g5h55
4a4b4c4d4e4 up-left arrowf4 up arrowg4 up-right arrowh44
3a3b3c3d3e3 left arrowf3 white kingg3 right arrowh33
2a2b2c2d2e2 down-left arrowf2 down arrowg2 down-right arrowh22
1a1b1c1d1e1f1g1h11
abcdefgh
{{Chess diagram
| tleft
| 

|  |  |  |  |  |  |  |  
|  |  |ud|  |  |  |  |  
|  |lr|rd|lr|  |  |  |  
|  |  |ud|  |  |  |  |  
|  |  |  |  |ul|ua|ur|  
|  |  |  |  |la|kl|ra|  
|  |  |  |  |dl|da|dr|  
|  |  |  |  |  |  |  |  

}}

小图[编辑]

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.


abcdefgh
8
Chessboard480.svg
a8 黑 車
d8 黑 后
f8 黑 車
g8 黑 王
a7 黑 兵
b7 黑 兵
e7 黑 兵
f7 黑 兵
g7 黑 象
h7 黑 兵
b6 黑 馬
c6 黑 兵
f6 黑 馬
g6 黑 兵
c5 白 后
g5 白 象
d4 白 兵
e4 白 兵
g4 黑 象
c3 白 馬
f3 白 馬
a2 白 兵
b2 白 兵
f2 白 兵
g2 白 兵
h2 白 兵
d1 白 車
e1 白 王
f1 白 象
h1 白 車
8
77
66
55
44
33
22
11
abcdefgh
Position after 11.Bg5
{{Chess diagram small
| tright
| 

|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
}}

不同板子尺寸[编辑]

Chess boards of non-standard dimensions need special templates. There are templates for the following boards:

Minichess (5×5) – Template:Chess diagram 5x5
{{Chess diagram 5x5
| tright
| 

|kd|qd|bd|nd|rd
|pd|pd|pd|pd|pd
|  |  |  |  |  
|pl|pl|pl|pl|pl
|kl|ql|bl|nl|rl

| Gardner minichess
}}
a5 black kingb5 black queenc5 black bishopd5 black knighte5 black rook
a4 black pawnb4 black pawnc4 black pawnd4 black pawne4 black pawn
a3b3c3d3e3
a2 white pawnb2 white pawnc2 white pawnd2 white pawne2 white pawn
a1 white kingb1 white queenc1 white bishopd1 white knighte1 white rook
Gardner minichess


Capablanca Chess (8×10)
{{Chess diagram 8x10
| tright
| 

|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
}}
abcdefghij
8a8 black rookb8 black knightc8 black princessd8 black bishope8 black queenf8 black kingg8 black bishoph8 black empressi8 black knightj8 black rook8
7a7 black pawnb7 black pawnc7 black pawnd7 black pawne7 black pawnf7 black pawng7 black pawnh7 black pawni7 black pawnj7 black pawn7
6a6b6c6d6e6f6g6h6i6j66
5a5b5c5d5e5f5g5h5i5j55
4a4b4c4d4e4f4g4h4i4j44
3a3b3c3d3e3f3g3h3i3j33
2a2 white pawnb2 white pawnc2 white pawnd2 white pawne2 white pawnf2 white pawng2 white pawnh2 white pawni2 white pawnj2 white pawn2
1a1 white rookb1 white knightc1 white princessd1 white bishope1 white queenf1 white kingg1 white bishoph1 white empressi1 white knightj1 white rook1
abcdefghij
Capablanca Chess
Grand Chess
{{Chess diagram 10x10
| tright
| 

|rd|  |  |  |  |  |  |  |  |rd
|  |nd|bd|qd|kd|cd|ad|bd|nd|  
|pd|pd|pd|pd|pd|pd|pd|pd|pd|pd
|  |  |  |  |  |  |  |  |  |  
|  |  |  |  |  |  |  |  |  |  
|  |  |  |  |  |  |  |  |  |  
|  |  |  |  |  |  |  |  |  |  
|pl|pl|pl|pl|pl|pl|pl|pl|pl|pl
|  |nl|bl|ql|kl|cl|al|bl|nl|  
|rl|  |  |  |  |  |  |  |  |rl

| Grand Chess
}}
abcdefghij
10a10 black rookb10c10d10e10f10g10h10i10j10 black rook10
9a9b9 black knightc9 black bishopd9 black queene9 black kingf9 black empressg9 black princessh9 black bishopi9 black knightj99
8a8 black pawnb8 black pawnc8 black pawnd8 black pawne8 black pawnf8 black pawng8 black pawnh8 black pawni8 black pawnj8 black pawn8
7a7b7c7d7e7f7g7h7i7j77
6a6b6c6d6e6f6g6h6i6j66
5a5b5c5d5e5f5g5h5i5j55
4a4b4c4d4e4f4g4h4i4j44
3a3 white pawnb3 white pawnc3 white pawnd3 white pawne3 white pawnf3 white pawng3 white pawnh3 white pawni3 white pawnj3 white pawn3
2a2b2 white knightc2 white bishopd2 white queene2 white kingf2 white empressg2 white princessh2 white bishopi2 white knightj22
1a1 white rookb1c1d1e1f1g1h1i1j1 white rook1
abcdefghij
Grand Chess


Alice Chess[编辑]

Alice Chess (two players)
{{alice chess diagram
| tright
|

|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'''
}}


a8 b8 c8 d8 e8 f8 g8 h8
a7 b7 c7 d7 e7 f7 g7 h7
a6 b6 c6 d6 e6 f6 g6 h6
a5 b5 c5 d5 e5 f5 g5 h5
a4 b4 c4 d4 e4 f4 g4 h4
a3 b3 c3 d3 e3 f3 g3 h3
a2 b2 c2 d2 e2 f2 g2 h2
a1 b1 c1 d1 e1 f1 g1 h1
A
a8 b8 c8 d8 e8 f8 g8 h8
a7 b7 c7 d7 e7 f7 g7 h7
a6 b6 c6 d6 e6 f6 g6 h6
a5 b5 c5 d5 e5 f5 g5 h5
a4 b4 c4 d4 e4 f4 g4 h4
a3 b3 c3 d3 e3 f3 g3 h3
a2 b2 c2 d2 e2 f2 g2 h2
a1 b1 c1 d1 e1 f1 g1 h1
B
Position after 1. Nf3 e6 2. Ne5 Bc5

Different shaped board[编辑]

Omega ChessTemplate:Omega Chess diagram
{{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)
w4 wd <W4
   A

 B

 C

 D

 E

 F

 G

 H

 I
W3>
   J
w3 wd
9 a9 zd b9 rd c9 nd d9 bd e9 qd f9 kd g9 bd h9 nd i9 rd j9 zd 9
8 a8 pd b8 pd c8 pd d8 pd e8 pd f8 pd g8 pd h8 pd i8 pd j8 pd 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 b3 c3 d3 e3 f3 g3 h3 i3 j3 3
2 a2 b2 c2 d2 e2 f2 g2 h2 i2 j2 2
1 a1 pl b1 pl c1 pl d1 pl e1 pl f1 pl g1 pl h1 pl i1 pl j1 pl 1
0 a0 zl b0 rl c0 nl d0 bl e0 ql f0 kl g0 bl h0 nl i0 rl j0 zl 0
w1 wl    A
<W1
 B
 C
 D
 E
 F
 G
 H
 I
   J
W2>
w2 wl
Omega Chess starting position

Alternative way to place the pieces: FEN[编辑]

{{Chess diagram|fen=rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR|align=tleft}}
abcdefgh
8a8 black rookb8 black knightc8 black bishopd8 black queene8 black kingf8 black bishopg8 black knighth8 black rook8
7a7 black pawnb7 black pawnc7 black pawnd7 black pawne7 black pawnf7 black pawng7 black pawnh7 black pawn7
6a6b6c6d6e6f6g6h66
5a5b5c5d5e5f5g5h55
4a4b4c4d4e4f4g4h44
3a3b3c3d3e3f3g3h33
2a2 white pawnb2 white pawnc2 white pawnd2 white pawne2 white pawnf2 white pawng2 white pawnh2 white pawn2
1a1 white rookb1 white knightc1 white bishopd1 white queene1 white kingf1 white bishopg1 white knighth1 white rook1
abcdefgh

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=tleft}}
abcdefgh
8a8 black rookb8 black knightc8 black bishopd8 black queene8 black kingf8 black bishopg8 black knighth8 black rook8
7a7 black princessb7 black empressc7 black upside-down kingd7 black upside-down queene7 black upside-down pawnf7 black championg7 black wizardh7 black fool7
6a6b6c6d6e6f6g6h66
5a5b5c5d5e5f5g5h55
4a4b4c4d4e4f4g4h44
3a3b3c3d3e3f3g3h33
2a2 white princessb2 white empressc2 white upside-down kingd2 white upside-down queene2 white upside-down pawnf2 white championg2 white wizardh2 white fool2
1a1 white rookb1 white knightc1 white bishopd1 white queene1 white kingf1 white bishopg1 white knighth1 white rook1
abcdefgh

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:

Only 8x8 boards can use the "fen" parameter. For other size boards, positional parameters should be used.

Displaying the board from the Black's point of view[编辑]

{{Chess diagram|fen=rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR|align=tleft|reverse=true}}
hgfedcba
1h1 white rookg1 white knightf1 white bishope1 white kingd1 white queenc1 white bishopb1 white knighta1 white rook1
2h2 white pawng2 white pawnf2 white pawne2 white pawnd2 white pawnc2 white pawnb2 white pawna2 white pawn2
3h3g3f3e3d3c3b3a33
4h4g4f4e4d4c4b4a44
5h5g5f5e5d5c5b5a55
6h6g6f6e6d6c6b6a66
7h7 black pawng7 black pawnf7 black pawne7 black pawnd7 black pawnc7 black pawnb7 black pawna7 black pawn7
8h8 black rookg8 black knightf8 black bishope8 black kingd8 black queenc8 black bishopb8 black knighta8 black rook8
hgfedcba

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.

參見[编辑]