Template:4pc diagram/doc

Usage
The syntax for the four-player chess diagram is as follows:

Parameters:
 * — The text which appears above the diagram. (Optional.)
 * — Defines horizontal alignment (floating) of the whole table. Options are:  or   (or nothing).
 * — Defines the size of the squares in pixels. (Default: 25px. Use 20px minimum.)
 * — Specifies whether the rank numbers are displayed or not. Options are: left, right, both (default) or neither.
 * — Specifies whether the file letters are displayed or not. Options are: top, bottom, both (default) or neither.
 * — Define corresponding squares of the chessboard. (See below.)
 * — The text which appears beneath the diagram. (Optional.)

The occupancy of a square is defined by the piece identifier or an empty parameter (two spaces are recommended). The piece identifiers consist of a lowercase letter for the colour (r = red, b = blue, y = yellow and g = green) and an uppercase letter for the piece (P = pawn, N = knight, B = bishop, R = rook, Q = queen and K = king).

Arrows can be used to show movement directions and a cross and circle are available to mark squares.

Examples
For the sake of clarity, it is possible to add the file letters and rank numbers in the source, as in the following example. Any text between "|=" and the next "|" is ignored.



Another example with a reduced square size and without file and rank labels.



The next example shows a diagram with arrows and marked squares.

