These templates show a Draughts diagram, a graphic representation of a position in a Draughts or Checkers game, using standardised symbols resembling the Draughts tiles.
Syntax
edit{{Draughts diagram
| ⟨alignment⟩ (param #1)
| ⟨header⟩ (#2)
| size =
| numbers =
| letters =
| ⟨white 1⟩ | ⟨dark 1⟩ | ... | ⟨dark 4⟩ (#3 to ...
| ⟨dark 5⟩ | ⟨light 5⟩ | ... | ⟨light 8⟩
...
| ⟨dark 29⟩ | ⟨light 29⟩ | ... | ⟨light 32⟩ ( ... #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.
- ⟨light 1⟩, ⟨dark 1⟩, ... ⟨light 32⟩ – define corresponding squares of the checkers board, ⟨light 1⟩ being the top left square ⟨dark 1⟩ being the square to the right of it and so on going down
- ⟨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:
An empty square is written either using underscores, spaces, or nothing at all. Two spaces are recommended.
Standard diagram
editThis 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.
8×8 board, starting position in English, Brazilian, Czech and Russian draughts, as well as Pool checkers
{{Draughts diagram
| floatright
|
| |d| |d| |d| |d
|d| |d| |d| |d|
| |d| |d| |d| |d
| | | | | | | |
| | | | | | | |
|l| |l| |l| |l|
| |l| |l| |l| |l
|l| |l| |l| |l|
|8×8 board, starting position in [[English draughts|English]], [[Brazilian draughts|Brazilian]], [[Czech draughts|Czech]] and [[Russian draughts]], as well as [[Pool checkers]]
}}
Empty board
{{Draughts diagram
| floatright
|
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| Empty board
}}