Template:Chessboard
Jump to navigation
Jump to search
| a | b | c | d | e | f | g | h | |
8 | 8 | ||||||||
7 | 7 | ||||||||
6 | 6 | ||||||||
5 | 5 | ||||||||
4 | 4 | ||||||||
3 | 3 | ||||||||
2 | 2 | ||||||||
1 | 1 | ||||||||
| a | b | c | d | e | f | g | h | |
[edit] [ ] Template documentation
This documentation is transcluded from Template:Chessboard/doc. (edit | history)
Editors can experiment in this template's sandbox (create) and test cases (create) pages.
Subpages of this template.
Editors can experiment in this template's sandbox (create) and test cases (create) pages.
Subpages of this template.
This template uses TemplateStyles: |
Instructions
Default template is thus:
{{chessboard |rb|nb|bb|qb|kb|bb|nb|rb |pb|pb|pb|pb|pb|pb|pb|pb | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |pw|pw|pw|pw|pw|pw|pw|pw |rw|nw|bw|qw|kw|bw|nw|rw }}
Appears as:
| a | b | c | d | e | f | g | h | |
8 | 8 | ||||||||
7 | 7 | ||||||||
6 | 6 | ||||||||
5 | 5 | ||||||||
4 | 4 | ||||||||
3 | 3 | ||||||||
2 | 2 | ||||||||
1 | 1 | ||||||||
| a | b | c | d | e | f | g | h | |
Options
|img=
(default:gif
)png
|size=
(default:44
)- size in pixels
The classic version of this template used GIF for compatibility reasons; though compatibility is no longer an issue. Compare GIF chesspieces and PNG chesspieces in the sandbox.
The chesspieces can be rendered in different sizes. To create a chessboard half the size, change the first line to:
{{chessboard|size=22
Images
Game:Multiplayer Chess/List of Chess Pieces
History
Past documentation read "End each line with |=
to prevent the next number parameter being implemented."
This had a side effect of populating Category:Pages using duplicate arguments in template calls. Newlines are now stripped away with Template:Trim. It is no longer recommended to end lines with |=
.