מוסטער:שאך דיאגראם/דאק
סינטאקס
רעדאַקטירןעס זענען פֿאראן עטלעכע סטאנדארטע שאך דיאגראם מוסטערן:
- מוסטער:שאך דיאגראם (square size 26x26 px)
- מוסטער:שאך דיאגראם קליין (square size 22x22 px)
- Template:Chess diagram 4x4 (square size 26x26 px)
- Template:Chess diagram 4x5 (square size 26x26 px)
- Template:Chess diagram 5x5 (square size 26x26 px)
- Template:Chess diagram 5x6 (square size 26x26 px)
- Template:Chess diagram 6x6 (square size 26x26 px)
- Template:Chess diagram 8x10 (Capablanca Chess square size 26x26 px)
- Template:Chess diagram 9x9 (square size 26x26 px)
- Template:Chess diagram 10x10 (square size 26x26 px)
- Template:Chess diagram 10x10 small (square size 22x22 px)
- For other board sizes, use {{#invoke:chessboard mxn|board|cols=|rows=
There are also templates for chess variants:
- Template:Alice chess diagram (Alice Chess, square size 22x22 px)
- Template:Bughouse chess diagram (Bughouse chess, square size 22x22 px)
- Template:Omega Chess diagram (Omega Chess with 10x10 board + 4 corners, 22x22 px)
- Template:Raumschach diagram (5x5x5 board for one type of Three-dimensional chess, 22x22 px)
- Template:3D chess diagram (3x8x8 board for some types of Three-dimensional chess, 22x22 px)
דער סינטאקס איז בעצם גלייך פאר אלע.
{{שאך דיאגראם | <alignment> (param #1) | <header> (#2) | size = | numbers = | letters = | <a8> | <b8> | ... | <h8> (#3 to ... | <a7> | <b7> | ... | <h7> ... | <a1> | <b1> | ... | <h1> ( ... #66) | <footer> (#67) | reverse = }}
When the chess board is 8x8, there is an alternative syntax (see #Alternative way to place the pieces: FEN below):
{{שאך דיאגראם | fen = | align = | clear = | header = | footer = | size = | numbers = | letters = | reverse = }}
פאראמעטערס:
<alignment>
– defines horizontal alignment (floating) of the whole table, must betright
ortleft
(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.<a8>, <b8>, ... <h1>
– define corresponding squares of the chessboard, see below;<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:
There are also some fairy chess pieces available:
- a = archbishop (knight+bishop compound)
- c = chancellor (knight+rook compound)
- f = inverted king
- g = inverted queen
- m = inverted rook
- j(e) = elephant
- N(s) = inverted knight
- h = inverted pawn
- z = champion (for Omega Chess)
- w = wizard (for Omega Chess)
- t = fool (for Omega Chess)
- M = mann
- C = centaur
These letters are combined with either "l" for Light=White, or "d" for Dark=Black. So "kl" is White's king, and "nd" is Black's knight.
An empty square is written either using underscores, spaces, or nothing at all. Two spaces are recommended.
You can also use "xx" for a black cross, "ox" for a white cross, "xo" for a black circle on an empty square or "oo" for a white one.
When showing movement directions on the board, arrows are available
- ul = up & left
- ua = up
- ur = up & right
- la = left
- lr = left & right
- ud = up & down
- ra = right
- dl = down & left
- da = down
- dr = down & right
Numbers can also be added to squares by using "x0" for 0, "x1" for 1, "x2" for 2, ..., "x9" for 9.
ביישפילן
רעדאַקטירןStandard diagram
רעדאַקטירןThis 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 | ||||||||
7 | 7 | ||||||||
6 | 6 | ||||||||
5 | 5 | ||||||||
4 | 4 | ||||||||
3 | 3 | ||||||||
2 | 2 | ||||||||
1 | 1 | ||||||||
ח | ז | ו | ה | ד | ג | ב | א |
{{שאך דיאגראם | tright | |rd|nd|bd|qd|kd|bd|nd|rd |pd|pd|pd|pd| |pd|pd|pd | | | | | | | | | | | | |pd| | | | | | | |pl|pl| | | | | | | | | | |pl|pl|pl|pl| | |pl|pl |rl|nl|bl|ql|kl|bl|nl|rl | The King's Gambit }}
ח | ז | ו | ה | ד | ג | ב | א | ||
8 | 8 | ||||||||
7 | 7 | ||||||||
6 | 6 | ||||||||
5 | 5 | ||||||||
4 | 4 | ||||||||
3 | 3 | ||||||||
2 | 2 | ||||||||
1 | 1 | ||||||||
ח | ז | ו | ה | ד | ג | ב | א |
{{שאך דיאגראם | tright | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Empty board }}
Diagram with both captions
רעדאַקטירןח | ז | ו | ה | ד | ג | ב | א | ||
8 | 8 | ||||||||
7 | 7 | ||||||||
6 | 6 | ||||||||
5 | 5 | ||||||||
4 | 4 | ||||||||
3 | 3 | ||||||||
2 | 2 | ||||||||
1 | 1 | ||||||||
ח | ז | ו | ה | ד | ג | ב | א |
It may be convenient to use this in the articles on chess problems. Please note that in the header and footer you can use bolds or italics. You can also use <br>
to break the lines.
{{שאך דיאגראם | tright | '''W. Langstaff''', ''Chess Amateur'' 1922 | | | | |kd| | |rd | | | | | | | | | | | | | |bl| |pl | | | |rl| |kl|pd|pl | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | '''Mate in two.''' <br> This problem uses ''partial retrograde analysis'' method. }}
דיאגראם אָן קעפלעך
רעדאַקטירןח | ז | ו | ה | ד | ג | ב | א | ||
8 | 8 | ||||||||
7 | 7 | ||||||||
6 | 6 | ||||||||
5 | 5 | ||||||||
4 | 4 | ||||||||
3 | 3 | ||||||||
2 | 2 | ||||||||
1 | 1 | ||||||||
ח | ז | ו | ה | ד | ג | ב | א |
See the corresponding code below. If you don't want the captions, just remove them, but don't delete the second "|" pipe character for the caption above; it is possible to delete the last pipe for the longer caption below.
The diagram floats to the left to illustrate the use of the first parameter.
{{שאך דיאגראם | tleft | | | | | | | | | | | | | | | | | | |xx|xo|xx| | | | | | |pl| | | | | | | | | | |xo| | | | | | |xx|xo|xx| | | | | | |pl| | | | | | | | | | }}
Movement example
רעדאַקטירןThis can be used to show how pieces move.
ח | ז | ו | ה | ד | ג | ב | א | ||
8 | 8 | ||||||||
7 | 7 | ||||||||
6 | 6 | ||||||||
5 | 5 | ||||||||
4 | 4 | ||||||||
3 | 3 | ||||||||
2 | 2 | ||||||||
1 | 1 | ||||||||
ח | ז | ו | ה | ד | ג | ב | א |
{{שאך דיאגראם | tleft | | | |ua| | | | | | | |ua| | | | | |la|la|rd|ra|ra|ra|ra|ra | | |da| | | | | | | |da| |ul|ua|ur| | | |da| |la|kl|ra| | | |da| |dl|da|dr| | | |da| | | | | |Example showing how white king can move any direction, but only one square, while black rook can move any number of squares but only up and down, and right and left. }}
ח | ז | ו | ה | ד | ג | ב | א | ||
8 | 8 | ||||||||
7 | 7 | ||||||||
6 | 6 | ||||||||
5 | 5 | ||||||||
4 | 4 | ||||||||
3 | 3 | ||||||||
2 | 2 | ||||||||
1 | 1 | ||||||||
ח | ז | ו | ה | ד | ג | ב | א |
{{שאך דיאגראם | tright | | |ul| |ua| |ur| | | | |ul|ua|ur| | | |la|la|la|ql|ra|ra|ra|ra | | |dl|da|dr| | | | |dl| |da| |dr| | |dl| | |da| | |dr| | | | |da| | | |dr | | | |da| | | | }}
In the board on the right, it is shown that the white queen can go any distance in any of these directions.
Another method for the rook example:
ח | ז | ו | ה | ד | ג | ב | א | ||
8 | 8 | ||||||||
7 | 7 | ||||||||
6 | 6 | ||||||||
5 | 5 | ||||||||
4 | 4 | ||||||||
3 | 3 | ||||||||
2 | 2 | ||||||||
1 | 1 | ||||||||
ח | ז | ו | ה | ד | ג | ב | א |
{{שאך דיאגראם | tleft | | | | | | | | | | | |ud| | | | | | |lr|rd|lr| | | | | | |ud| | | | | | | | | |ul|ua|ur| | | | | |la|kl|ra| | | | | |dl|da|dr| | | | | | | | | }}
קליינער דיאגראם
רעדאַקטירןדאס קען זיין ניצבאר אין ארטיקלען מיט א סך דיאגראמען. ער ניצט אן אנדער מוסטער {{שאך דיאגראם קליין}}.
אויך די קליינע דיאגראמעס קענען האבן א קעפל.
ח | ז | ו | ה | ד | ג | ב | א | ||
8 | 8 | ||||||||
7 | 7 | ||||||||
6 | 6 | ||||||||
5 | 5 | ||||||||
4 | 4 | ||||||||
3 | 3 | ||||||||
2 | 2 | ||||||||
1 | 1 | ||||||||
ח | ז | ו | ה | ד | ג | ב | א |
{{שאך דיאגראם קליין | tright | |rd| | |qd| |rd|kd| |pd|pd| | |pd|pd|bd|pd | |nd|pd| | |nd|pd| | | |ql| | | |bl| | | | |pl|pl| |bd| | | |nl| | |nl| | |pl|pl| | | |pl|pl|pl | | | |rl|kl|bl| |rl | Position after 11.Bg5 }}
Different board size
רעדאַקטירןChess boards of non-standard dimensions need special templates. There are templates for the following boards:
{{Chess diagram 5x5 | tright | |kd|qd|bd|nd|rd |pd|pd|pd|pd|pd | | | | | |pl|pl|pl|pl|pl |kl|ql|bl|nl|rl | Gardner minichess }} |
{{Chess diagram 6x6 | tright | |rd|nd|qd|kd|nd|rd |pd|pd|pd|pd|pd|pd | | | | | | | | | | | | |pl|pl|pl|pl|pl|pl |rl|nl|ql|kl|nl|rl | Los Alamos chess }} |
{{Chess diagram 8x10 | tright | |rd|nd|ad|bd|qd|kd|bd|cd|nd|rd |pd|pd|pd|pd|pd|pd|pd|pd|pd|pd | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |pl|pl|pl|pl|pl|pl|pl|pl|pl|pl |rl|nl|al|bl|ql|kl|bl|cl|nl|rl | Capablanca Chess }} |
{{Chess diagram 10x10 | tright | |rd| | | | | | | | |rd | |nd|bd|qd|kd|cd|ad|bd|nd| |pd|pd|pd|pd|pd|pd|pd|pd|pd|pd | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |pl|pl|pl|pl|pl|pl|pl|pl|pl|pl | |nl|bl|ql|kl|cl|al|bl|nl| |rl| | | | | | | | |rl | Grand Chess }} |
מוסטער:Chess diagram 10x10 |
Double boards
רעדאַקטירן{{bughouse chess diagram | A1=Team 1, Board A | A2=Team 2, Board A | B1=Team 1, Board B | B2=Team 2, Board B | tright | |rd|nd|bd|qd|kd|bd|nd|rd |pd|pd|pd|pd|pd|pd|pd|pd | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |pl|pl|pl|pl|pl|pl|pl|pl |rl|nl|bl|ql|kl|bl|nl|rl |rl|nl|bl|kl|ql|bl|nl|rl |pl|pl|pl|pl|pl|pl|pl|pl | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |pd|pd|pd|pd|pd|pd|pd|pd |rd|nd|bd|kd|qd|bd|nd|rd | '''Bughouse''' setup and starting position }} |
{{alice chess diagram | tright | |rd|nd|bd|qd|kd| |nd|rd |pd|pd|pd|pd| |pd|pd|pd | | | | | | | | | | | | |nl| | | | | | | | | | | | | | | | | | | |pl|pl|pl|pl|pl|pl|pl|pl |rl|nl|bl|ql|kl|bl| |rl | | | | | | | | | | | | | | | | | | | | |pd| | | | | |bd| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Position after '''1. Nf3 e6 2. Ne5 Bc5''' }} |
Different shaped board
רעדאַקטירן{{Raumschach diagram | tright | |rd|nd|kd|nd|rd |pd|pd|pd|pd|pd | | | | | | | | | | | | | | | |Nd|bd|qd|Nd|bd |pd|pd|pd|pd|pd | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |pl|pl|pl|pl|pl |bl|Nl|ql|bl|Nl | | | | | | | | | | | | | | | |pl|pl|pl|pl|pl |rl|nl|kl|nl|rl | '''Raumschach''' starting position }} |
{{Omega Chess diagram
|
| [[Omega Chess]] (10×10 + 4 corners)
|wd |wd
|zd|rd|nd|bd|qd|kd|bd|nd|rd|zd
|pd|pd|pd|pd|pd|pd|pd|pd|pd|pd
| | | | | | | | | |
| | | | | | | | | |
| | | | | | | | | |
| | | | | | | | | |
| | | | | | | | | |
| | | | | | | | | |
|pl|pl|pl|pl|pl|pl|pl|pl|pl|pl
|zl|rl|nl|bl|ql|kl|bl|nl|rl|zl
|wl |wl
| '''Omega Chess''' starting position
}}
|
מוסטער:Omega Chess diagram |
Alternative way to place the pieces: FEN
רעדאַקטירן{{שאך דיאגראם|fen=rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR|align=tleft}}
ח | ז | ו | ה | ד | ג | ב | א | ||
8 | 8 | ||||||||
7 | 7 | ||||||||
6 | 6 | ||||||||
5 | 5 | ||||||||
4 | 4 | ||||||||
3 | 3 | ||||||||
2 | 2 | ||||||||
1 | 1 | ||||||||
ח | ז | ו | ה | ד | ג | ב | א |
It is possible to populate the board using Forsyth–Edwards Notation, instead of positional parameters.
To do this, the "fen" parameter is used. For instance, this is the opening board of a chess game, defined using the "fen" parameter "rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR":
{{שאך דיאגראם|fen=rnbqkbnr/acfghzwt/8/8/8/8/ACFGHZWT/RNBQKBNR|align=tleft}}
ח | ז | ו | ה | ד | ג | ב | א | ||
8 | 8 | ||||||||
7 | 7 | ||||||||
6 | 6 | ||||||||
5 | 5 | ||||||||
4 | 4 | ||||||||
3 | 3 | ||||||||
2 | 2 | ||||||||
1 | 1 | ||||||||
ח | ז | ו | ה | ד | ג | ב | א |
It is also possible to show "fairy" pieces using the FEN notation. However, because the FEN notation uses uppercase and lowercase to denote the color of the piece, it is not possible to display the inverted knight fairy piece (denoted by "N") using the fen parameter. Here is a board where the pawns are replaced by fairy pieces:
Only 8x8 boards can use the "fen" parameter. For other size boards, positional parameters should be used.
Displaying the board from the Black's point of view
רעדאַקטירן{{שאך דיאגראם|fen=rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR|align=tleft|reverse=true}}
א | ב | ג | ד | ה | ו | ז | ח | ||
1 | 1 | ||||||||
2 | 2 | ||||||||
3 | 3 | ||||||||
4 | 4 | ||||||||
5 | 5 | ||||||||
6 | 6 | ||||||||
7 | 7 | ||||||||
8 | 8 | ||||||||
א | ב | ג | ד | ה | ו | ז | ח |
The "reverse=true" parameter causes the board to be shown from Black's point of view, that is, with the h8 square at lower-left corner, and a1 at the upper-right. This works for all sizes of the normal chessboard template, but not for the Alice, Bughouse, Omega, or Raumschach templates. Here, the same FEN notation as in the previous example produces a board with Black's starting position at the bottom.