Template:Chess diagram
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
{{{67}}} |
{{Chess diagram|= | <alignment> | <header> | <a8> | <b8> | ... | <h8> | <a7> | <b7> | ... | <h7> ... | <a1> | <b1> | ... | <h1> | <footer> }}
Parameters:
- <alignment> - defines horizontal alignment of the whole image, must be "tright" or "tleft";
- <header> - the text which appears above the diagram, may be empty;
- <a8>, <b8>, ... <h1> - define corresponding squares of the chessboard, see below;
- <footer> - the text which appears beneath the diagram, may be empty.
A square is defined by the name of piece or empty parameter. The names of the pieces are those given in algebraic notation:
- 22px22px22px22px k = king
- 22px22px22px22px q = queen
- 22px22px22px22px r = rook
- 22px22px22px22px b = bishop
- 22px22px22px22px n = knight
- 22px22px22px22px p = pawn
There are also some fairy chess pieces available:
- 22px22px22px22px a = archbishop (knight + bishop compound)
- 22px22px22px22px c = chancelor (knight + rook compound)
- 22px22px22px22px f = upside-down king
- 22px22px22px22px g = upside-down queen
- 22px22px22px22px m = upside-down rook
- 22px22px22px22px e = upside-down bishop
- 22px22px22px22px s = upside-down knight
- 22px22px22px22px h = upside-down pawn
- 22px22px22px22px z = champion (for Omega Chess)
- 22px22px22px22px w = wizard (for Omega Chess)
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 cross, "xo" for a black circle on an empty square or "oo" for a white one.
Numbers can also be added to squares by using "x1" for 1, "x2" for 2, ..., "x9" for 9. There is no 0.
- 22px22px x1
- 22px22px x2
- 22px22px x3
- 22px22px x4
- 22px22px x5
- 22px22px x6
- 22px22px x7
- 22px22px x8
- 22px22px x9ar:قالب:مخطط رقعة شطرنج
bg:Шаблон:Шахматна позиция de:Vorlage:Schachbrett es:Plantilla:Diagrama de ajedrez eo:Ŝablono:Ŝakdiagramo fr:Modèle:Diagramme d'échecs it:Template:Diagramma scacchi la:Formula:Scaccarium lt:Šablonas:ŠachmatųLenta hu:Sablon:Sakkállás mk:Шаблон:Шаховски дијаграм ja:Template:Chess diagram pl:Szablon:SzachyDiagram pt:Predefinição:Diagrama de xadrez ru:Шаблон:Шахматная диаграмма sl:Predloga:Chess diagram fi:Malline:Shakkilauta vi:Tiêu bản:Chess diagram