Template:Chess diagram

From Chess Variant Wiki
Revision as of 09:34, 13 November 2007 by CommonsDelinker (Talk) (Replacing Image:Chess_zll44.png with Image:Chess_Cll44.png (by Siebrand because: Was in category "Duplicate", exact duplicate).)

Jump to: navigation, search
{{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:

There are also some fairy chess pieces available:

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.ar:قالب:مخطط رقعة شطرنج 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