Plantía:Diagrama d'axedrez

De Wikipedia
a8 b8 c8 d8 e8 f8 g8 h8
a7 b7 c7 d7 e7 f7 g7 h7
a6 b6 c6 d6 e6 f6 g6 h6
a5 b5 c5 d5 e5 f5 g5 h5
a4 b4 c4 d4 e4 f4 g4 h4
a3 b3 c3 d3 e3 f3 g3 h3
a2 b2 c2 d2 e2 f2 g2 h2
a1 b1 c1 d1 e1 f1 g1 h1
Documentación de la plantía[ver] [editar] [historial] [purgar]

Sintaxis[editar la fonte]

La sintaxis de la plantía ye:

{{Diagrama d'axedrez
| <alignment> (param #1)
| <header>    (#2) 
| <a8> | <b8> | ... | <h8>  (#3 to ...
| <a7> | <b7> | ... | <h7>
...
| <a1> | <b1> | ... | <h1>  ( ... #66)
| <footer> (#67)
}}

Parámetros:

  • <alignment> – define l'alliniación horizontal (flotante) de tol tableru, tien que ser tright o tleft (o nada)
  • <header> – El testu qu'apaez enriba del diagrama, pue tar vacíu;
  • <a8>, <b8>, ... <h1> – define escaques correspondientes del tableru, ver embaxo;
  • <footer> –el testu qu'apaez debaxo del diagrama, pue tar vacíu; opcional -puede nun ponese.

Defínense los escaques pol nome de la pieza o'l parámetru vacíu. Los nomes de les piezes van en notación alxebraica (n'inglés):

  • k = king (rei)
  • q = queen (dama)
  • r = rook (torre)
  • b = bishop (alfil)
  • n = knight (caballu)
  • p = pawn (peón)

Hai tamién delles pieces máxiques disponibles:

  • a = archbishop (arzobispu | caballu + alfil)
  • c = chancelor (canciller | caballu + torre)
  • f = upside-down king (rei al revés)
  • g = upside-down queen (dama al aviesu)
  • m = upside-down rook (torre al aviesu)
  • e = upside-down bishop (alfil al aviesu)
  • s = upside-down knight (caballu al aviesu)
  • h = upside-down pawn (peón al aviesu)
  • z = champion -para axedrez Omega (campeón)
  • w = wizard -para axedrez Omega (magu)

Estes lletres combínense con "l" para Light=White (blancu), o "d" para Dark=Black (negru). Entós "kl" ye un rei blancu, y "nd" ye un caballu negru. Primero escríbese la lletra correspondiente a la pieza y en segundu llugar la lletra del color.

Un cuadráu negru escríbese usando "_", espacios, o nada. Encamiéntase usar dos espacios.

  • <space> = escaque en blancu

Tamién puede usase "xx" para una cruz, "xo" para un círculu negru o "oo" para unu blancu.

  • xx = cruz/x
  • xo = círculu negru
  • oo = círculu blancu

Tamién puédense añader númberos a los escaques usando "x1" para 1, "x2" para 2, ..., "x9" para 9. Nun hai 0.

  • x1
  • x2
  • x3
  • x4
  • x5
  • x6
  • x7
  • x8
  • x9

Exemplos[editar la fonte]

Nos siguientes exemplos les files y les columnes tán numberaes. Como cualquier testu ente "|=" y el siguiente "|" ignórase, añádense númberos y lletres ensin afectar a la salida.

Diagrama estándar[editar la fonte]

Encamiéntase esti diagrama pa usu común como diagrama principal nos artículos d'apertures, finales, xuegos, posiciones, etc. Ver tamién el correspondiente códigu embaxo.

a8 rd b8 nd c8 bd d8 qd e8 kd f8 bd g8 nd h8 rd
a7 pd b7 pd c7 pd d7 pd e7 f7 pd g7 pd h7 pd
a6 b6 c6 d6 e6 f6 g6 h6
a5 b5 c5 d5 e5 pd f5 g5 h5
a4 b4 c4 d4 e4 pl f4 pl g4 h4
a3 b3 c3 d3 e3 f3 g3 h3
a2 pl b2 pl c2 pl d2 pl e2 f2 g2 pl h2 pl
a1 rl b1 nl c1 bl d1 ql e1 kl f1 bl g1 nl h1 rl
Gambitu de Rei
{{Diagrama d'axedrez
| tright
| 
|= 

 8 |rd|nd|bd|qd|kd|bd|nd|rd|=
 7 |pd|pd|pd|pd|  |pd|pd|pd|=
 6 |  |  |  |  |  |  |  |  |=
 5 |  |  |  |  |pd|  |  |  |=
 4 |  |  |  |  |pl|pl|  |  |=
 3 |  |  |  |  |  |  |  |  |=
 2 |pl|pl|pl|pl|  |  |pl|pl|=
 1 |rl|nl|bl|ql|kl|bl|nl|rl|=
    a  b  c  d  e  f  g  h  

| Gambitu de Rei
}}

Diagrama con los dos títulos[editar la fonte]

W. Langstaff, Chess Amateur 1922
a8 b8 c8 d8 e8 kd f8 g8 h8 rd
a7 b7 c7 d7 e7 f7 g7 h7
a6 b6 c6 d6 e6 f6 bl g6 h6 pl
a5 b5 c5 d5 rl e5 f5 kl g5 pd h5 pl
a4 b4 c4 d4 e4 f4 g4 h4
a3 b3 c3 d3 e3 f3 g3 h3
a2 b2 c2 d2 e2 f2 g2 h2
a1 b1 c1 d1 e1 f1 g1 h1
Mate en dos.
Esti problema usa'l métodu de análisis retrógradu parcial.

Este puede ser conveniente nos artículos de problemes d'axedrez. Ye importante que tanto na encabezadura como nel pie puede usase negrita o cursiva. Tamién puede usase <br> pa saltar de llinia.

{{Diagrama d'axedrez
| tright
| '''W. Langstaff''', ''Chess Amateur'' 1922
|= 

 8 |  |  |  |  |kd|  |  |rd|=
 7 |  |  |  |  |  |  |  |  |=
 6 |  |  |  |  |  |bl|  |pl|=
 5 |  |  |  |rl|  |kl|pd|pl|=
 4 |  |  |  |  |  |  |  |  |=
 3 |  |  |  |  |  |  |  |  |=
 2 |  |  |  |  |  |  |  |  |=
 1 |  |  |  |  |  |  |  |  |=
    a  b  c  d  e  f  g  h  

| '''Mate en dos.''' <br> Esti problema usa'l métodu de ''análisis retrógradu parcial''.
}}

Diagrama ensin títulos[editar la fonte]

a8 b8 c8 d8 e8 f8 g8 h8
a7 b7 c7 d7 e7 f7 g7 h7
a6 b6 xx c6 xo d6 xx e6 f6 g6 h6
a5 b5 c5 pl d5 e5 f5 g5 h5
a4 b4 c4 d4 e4 f4 xo g4 h4
a3 b3 c3 d3 e3 xx f3 xo g3 xx h3
a2 b2 c2 d2 e2 f2 pl g2 h2
a1 b1 c1 d1 e1 f1 g1 h1

Ver el códigu correspondiente embaxo. Si non se quier poner títulos, solo quítense, pero nun se debe quitar el segundu "|" del títulu cimeru, puede quitase el "|" del títulu de baxo.


{{Diagrama d'axedrez
| tleft
| 
|= 

 8 |  |  |  |  |  |  |  |  |=
 7 |  |  |  |  |  |  |  |  |=
 6 |  |xx|xo|xx|  |  |  |  |=
 5 |  |  |pl|  |  |  |  |  |=
 4 |  |  |  |  |  |xo|  |  |=
 3 |  |  |  |  |xx|xo|xx|  |=
 2 |  |  |  |  |  |pl|  |  |=
 1 |  |  |  |  |  |  |  |  |=
    a  b  c  d  e  f  g  h  
}}