When using the classic page/post editor, several attributes can be passed to the [pgn]...[/pgn] shortcode to customize how the corresponding chess game 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 game 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.

Game option attributes

AttributeAdmissible valuesDescription
flip=...true
false
Whether the navigation board and inner diagrams are presented from Black’s point of view (flip=true) or from White’s (flip=false).
initial_selection=...start
end

number + w
number + b
Position displayed by default on the navigation board: start for the position before the first move, end for the position after the last move, or a move number + w or b for the position after the corresponding move (for example: 1w for the position after the 1st white move, 12b for the position after the 12th black move…).

Piece symbol attribute

AttributeAdmissible valuesDescription
piece_symbols=...native
localized
figurines

6 comma-separated A-Z characters
Piece symbols used to display the moves.

Navigation board attributes

AttributeAdmissible valuesDescription
navigation_board=...none
frame
above
below
floatLeft
floatRight
scrollLeft
scrollRight
Whether the navigation board is visible or not, and if visible, where it is displayed.
nav_square_size=...
nav_show_coordinates=...
nav_colorset=...
nav_pieceset=...
See the corresponding attributes of the [fen]...[/fen] shortcode.Navigation board size, coordinate and theming settings.
animated=...true
false
Whether the moving pieces are animated on the navigation board when the user navigates through the moves of the game.
show_move_arrow=...true
false
Whether a move arrow is displayed or not on the navigation board when the user navigates through the moves of the game.
move_arrow_color=...b
g
r
y
Color of the move arrow if displayed (blue, green, red or yellow).
show_flip_button=...true
false
Whether the flip button is visible or not in the navigation toolbar.
show_download_button=...true
false
Whether the download button is visible or not in the navigation toolbar.

Diagram attributes

AttributeAdmissible valuesDescription
diag_square_size=...
diag_show_coordinates=...
diag_colorset=...
diag_pieceset=...
See the corresponding attributes of the [fen]...[/fen] shortcode.Size, coordinate and theming settings of the inner diagrams (those inserted with [#] in text comments).