Difference between revisions of "Template:Chess diagram"
(Revert for now until show button default off (see WP:Chess)) |
m (Replacing Image:Chess_zll44.png with Image:Chess_Cll44.png (by Siebrand because: Was in category "Duplicate", exact duplicate).) |
||
Line 138: | Line 138: | ||
*[[Image:Chess sll44.png|22px]][[Image:Chess sld44.png|22px]][[Image:Chess sdl44.png|22px]][[Image:Chess sdd44.png|22px]] s = upside-down knight | *[[Image:Chess sll44.png|22px]][[Image:Chess sld44.png|22px]][[Image:Chess sdl44.png|22px]][[Image:Chess sdd44.png|22px]] s = upside-down knight | ||
*[[Image:Chess hld44.png|22px]][[Image:Chess hll44.png|22px]][[Image:Chess hdd44.png|22px]][[Image:Chess hdl44.png|22px]] h = upside-down pawn | *[[Image:Chess hld44.png|22px]][[Image:Chess hll44.png|22px]][[Image:Chess hdd44.png|22px]][[Image:Chess hdl44.png|22px]] h = upside-down pawn | ||
− | *[[Image: | + | *[[Image:Chess_Cll44.png|22px]][[Image:Chess zld44.png|22px]][[Image:Chess zdl44.png|22px]][[Image:Chess zdd44.png|22px]] z = champion (for Omega Chess) |
*[[Image:Chess wld44.png|22px]][[Image:Chess wll44.png|22px]][[Image:Chess wdd44.png|22px]][[Image:Chess wdl44.png|22px]] w = wizard (for Omega Chess) | *[[Image:Chess wld44.png|22px]][[Image:Chess wll44.png|22px]][[Image:Chess wdd44.png|22px]][[Image:Chess wdl44.png|22px]] w = wizard (for Omega Chess) | ||
Revision as of 09:34, 13 November 2007
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
{{{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.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