When using the classic page/post editor, several attributes can be passed to the [fen]...[/fen]
shortcode to customize how the corresponding chess diagram is generated. These attributes are presented below.
To be noticed: these attributes correspond to the customization settings proposed in the right panel of the Chess diagram block for those using the Gutenberg page/post editor. The customization features proposed by RPB Chessboard are the same whichever the page/post editor you are using.
Position & annotation attributes
Attribute | Admissible values | Description |
---|---|---|
csl=... cal=... ctl=... | Same syntax as the one used in PGN games: see the dedicated page for more details. | Square, arrow, and text markers. |
flip=... | true | Whether the diagram is presented from Black’s point of view (flip=true ) or from White’s (flip=false ). |
Chessboard aspect attributes
Attribute | Admissible values | Description |
---|---|---|
align=... | center floatLeft | Controls how the diagram is placed within the surrounding text. |
square_size=... | Any number Example: square_size=60 | Size of the diagram. |
show_coordinates=... | true | Whether the row and column coordinates are visible or not. |
show_turn=... | true | Whether the turn flag is visible or not. |
colorset=... | coral … or any custom colorset defined in the global settings of RPB Chessboard. | Color theme of the chessboard. |
pieceset=... | cburnett … or any custom pieceset defined in the global settings of RPB Chessboard. | Chess piece theme of the chessboard. |