Plantilla:Diagrama de ajedrez

De Wikipedia, la enciclopedia libre
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
Icono de documentación de plantilla Documentación de la plantilla[ver] [editar] [historial] [purgar]


Sintaxis

Hay muchas plantillas de diagramas de ajedrez estándar:

También hay plantillas de variantes de ajedrez:

La sintaxis es básicamente la misma para todos.

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

Parametros:

  • <alignment> – define la alineación horizontal (flotante) de todo el tablero, debe ser tright o tleft (o nada)
  • <header> – El texto que aparece encima del diagrama, puede estar vacío;
  • <a8>, <b8>, ... <h1> – define casillas correspondientes del tablero, ver abajo;
  • <footer> –el texto que aparece debajo del diagrama, puede estar vacío; opcional - puede no ponerse (aun no está en las otras plantillas)

Una casilla está definida por el nombre de la pieza o el parámetro vacío. Los nombres de las piezas están dados en notación algebraica (en inglés):

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

Hay también algunas piezas mágicas disponibles:

  • a = archbishop (arzobispo | caballo + alfil)
  • c = chancelor (canciller | caballo + torre)
  • f = upside-down king (rey al revés)
  • g = upside-down queen (dama al revés)
  • m = upside-down rook (torre al revés)
  • e = upside-down bishop (alfil al revés)
  • s = upside-down knight (caballo al revés)
  • h = upside-down pawn (peón al revés)
  • z = champion -para ajedrez Omega (campeón)
  • w = wizard -para ajedrez Omega (mago)

Estas letras se combinan con "l" para Light=White (blanco), o "d" para Dark=Black (negro). Entonces "kl" es un Rey Blanco, y "nd" es un Caballo Negro. Primero se coloca la letra correspondiente a la pieza y en segundo lugar la letra del color.

Un cuadrado negro se escribe usando "_", espacios, o nada. Se recomienda usar dos espacios.

  • <space> = casilla en blanco

También se puede usar "xx" para una cruz,"xo" para un círculo negro o "oo" para uno blanco.

  • xx = cruz/x
  • xo = círculo negro
  • oo = círculo blanco

También se puede adicionar números a las casilla usando "x1" para 1, "x2" para 2, ..., "x9" para 9. No hay 0.

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

Ejemplos

En los siguientes ejemplos las filas y las columnas están enumeradas. Porque cualquier texto entre "|=" y el siguiente "|" es ignorado, números y letras pueden añadirse sin afectar la salida.

Diagrama estándar

Se recomienda este diagrama para uso común como diagrama principal en los artículos de aperturas, finales, juegos, posiciones, etc. Veáse el correspondiente codigo abajo.

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
Gambito de Rey
{{Diagrama de ajedrez
| 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  

| Gambito de Rey
}}

Diagrama con los dos títulos

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.
Este problema usa el método de análisis retrogrado parcial.

Este puede ser conveniente en los artículos de problemas de ajedrez. Nótese que tanto en el encabezado como en el pie se puede usar negrita itálica. También puede usarse <br> para saltar de línea.

{{Diagrama de ajedrez
| 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> Este problema usa el método de ''análisis retrogrado parcial''.
}}

Diagrama sin títulos

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ódigo correspondiente abajo. Si no se quiere poner títulos, solo se quitan, pero no se debe quitar el segundo "|" del título superior; se puede quitar el "|" del título de abajo.


{{Diagrama de ajedrez
| 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  
}}

Diagrama pequeño

Este puede ser útil en artículos con muchos diagramas. Usa otra plantilla llamada {{Diagrama de ajedrez pequeño}}.

Los diagramas pequeños pueden tener encabezado también.

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

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

| Posición después de 11. Ag5.
}}

Diferentes tamaños de tablero

Tableros con dimensiones no convencionales necesitan plantillas epeciales. Hay plantillas para los siguientes tableros:

Miniajedrez (5×5) – Plantilla:Diagrama de ajedrez 5x5
{{Diagrama de ajedrez 5x5
| tright
| 
|= 

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

| Miniajedrez de Gardner
}}
a5 b5 c5 d5 e5
a4 b4 c4 d4 e4
a3 b3 c3 d3 e3
a2 b2 c2 d2 e2
a1 b1 c1 d1 e1
Miniajedrez de Gardner
Ajedrez Los Álamos (6×6) – Plantilla:Diagrama de ajedrez 6x6
{{Diagrama de ajedrez 6x6
| tright
| 
|= 

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

| Ajedrez Los Álamos
}}
a6 b6 c6 d6 e6 f6
a5 b5 c5 d5 e5 f5
a4 b4 c4 d4 e4 f4
a3 b3 c3 d3 e3 f3
a2 b2 c2 d2 e2 f2
a1 b1 c1 d1 e1 f1
Ajedrez Los Álamos
Ajedrez de Capablanca (8×10)
{{ 8x10
| tright
| 
|= 

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

|Ajedrez de Capablanca
}}
a8 b8 c8 d8 e8 f8 g8 h8 i8 j8
a7 b7 c7 d7 e7 f7 g7 h7 i7 j7
a6 b6 c6 d6 e6 f6 g6 h6 i6 j6
a5 b5 c5 d5 e5 f5 g5 h5 i5 j5
a4 b4 c4 d4 e4 f4 g4 h4 i4 j4
a3 b3 c3 d3 e3 f3 g3 h3 i3 j3
a2 b2 c2 d2 e2 f2 g2 h2 i2 j2
a1 b1 c1 d1 e1 f1 g1 h1 i1 j1
Ajedrez de Capablanca
Ajedrez grandioso
{{Diagrama de ajedrez 10x10
| tright
| 
|= 

10 |rd|  |  |  |  |  |  |  |  |rd|=
 9 |  |nd|bd|qd|kd|cd|ad|bd|nd|  |=
 8 |pd|pd|pd|pd|pd|pd|pd|pd|pd|pd|=
 7 |  |  |  |  |  |  |  |  |  |  |=
 6 |  |  |  |  |  |  |  |  |  |  |=
 5 |  |  |  |  |  |  |  |  |  |  |=
 4 |  |  |  |  |  |  |  |  |  |  |=
 3 |pl|pl|pl|pl|pl|pl|pl|pl|pl|pl|=
 2 |  |nl|bl|ql|kl|cl|al|bl|nl|  |=
 1 |rl|  |  |  |  |  |  |  |  |rl|=
    a  b  c  d  e  f  g  h  i  j

| Ajedrez grandioso
}}
a10 b10 c10 d10 e10 f10 g10 h10 i10 j10
a9 b9 c9 d9 e9 f9 g9 h9 i9 j9
a8 b8 c8 d8 e8 f8 g8 h8 i8 j8
a7 b7 c7 d7 e7 f7 g7 h7 i7 j7
a6 b6 c6 d6 e6 f6 g6 h6 i6 j6
a5 b5 c5 d5 e5 f5 g5 h5 i5 j5
a4 b4 c4 d4 e4 f4 g4 h4 i4 j4
a3 b3 c3 d3 e3 f3 g3 h3 i3 j3
a2 b2 c2 d2 e2 f2 g2 h2 i2 j2
a1 b1 c1 d1 e1 f1 g1 h1 i1 j1
Ajedrez grandioso

Tableros dobles

Pasapiezas (cuatro jugadores)
{{Diagrama de ajedrez doble
| A1=Equipo 1, Tablero A 
| A2=Equipo 2, Tablero A 
| B1=Equipo 1, Tablero B 
| B2=Equipo 2, Tablero B
| tright
|
|=
 8 |rd|nd|bd|qd|kd|bd|nd|rd|=
 7 |pd|pd|pd|pd|pd|pd|pd|pd|=
 6 |  |  |  |  |  |  |  |  |=
 5 |  |  |  |  |  |  |  |  |=
 4 |  |  |  |  |  |  |  |  |=
 3 |  |  |  |  |  |  |  |  |=
 2 |pl|pl|pl|pl|pl|pl|pl|pl|=
 1 |rl|nl|bl|ql|kl|bl|nl|rl|=
    a  b  c  d  e  f  g  h

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

| '''Organización y posición inicial de Pasapiezas'''
}}
Equipo 2, Tablero A
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

Equipo 1, Tablero A

Equipo 2, Tablero B
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

Equipo 1, Tablero B

Organización y posición inicial de Pasapiezas
Ajedrez de Alicia (dos jugadores)
{{Diagrama de ajedrez doble
| tright
|
|=
 8 |rd|nd|bd|qd|kd|  |nd|rd|=
 7 |pd|pd|pd|pd|  |pd|pd|pd|=
 6 |  |  |  |  |  |  |  |  |=
 5 |  |  |  |  |nl|  |  |  |=
 4 |  |  |  |  |  |  |  |  |=
 3 |  |  |  |  |  |  |  |  |=
 2 |pl|pl|pl|pl|pl|pl|pl|pl|=
 1 |rl|nl|bl|ql|kl|bl|  |rl|=
    a  b  c  d  e  f  g  h
          Tablero A

 8 |  |  |  |  |  |  |  |  |=
 7 |  |  |  |  |  |  |  |  |=
 6 |  |  |  |  |pd|  |  |  |=
 5 |  |  |bd|  |  |  |  |  |=
 4 |  |  |  |  |  |  |  |  |=
 3 |  |  |  |  |  |  |  |  |=
 2 |  |  |  |  |  |  |  |  |=
 1 |  |  |  |  |  |  |  |  |=
    a  b  c  d  e  f  g  h
          Tablero B
| Posición después de '''1.Cf3 e6 2.Ce5 Ac5'''.
}}

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

A

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

B

Posición después de 1.Cf3 e6 2.Ce5 Ac5.

Tableros con diferente forma

Ajedrez tridimensional (Raumschach) – Plantilla:Diagrama de Raumschach
{{Diagrama de Raumschach
| tright
|
|=
5 |rd|nd|kd|nd|rd|=
4 |pd|pd|pd|pd|pd|=
3 |  |  |  |  |  |=
2 |  |  |  |  |  |=
1 |  |  |  |  |  |=
   Ea Eb Ec Ed Ee

5 |bd|sd|qd|bd|sd|=
4 |pd|pd|pd|pd|pd|=
3 |  |  |  |  |  |=
2 |  |  |  |  |  |=
1 |  |  |  |  |  |=
   Da Db Dc Dd De

5 |  |  |  |  |  |=
4 |  |  |  |  |  |=
3 |  |  |  |  |  |=
2 |  |  |  |  |  |=
1 |  |  |  |  |  |=
   Ca Cb Cc Cd Ce

5 |  |  |  |  |  |=
4 |  |  |  |  |  |=
3 |  |  |  |  |  |=
2 |pl|pl|pl|pl|pl|=
1 |bl|sl|ql|bl|sl|=
   Ba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  |  |=
    3 |  |  |  |  |  |  |  |  |  |  |=
    2 |  |  |  |  |  |  |  |  |  |  |=
    1 |pl|pl|pl|pl|pl|pl|pl|pl|pl|pl|=
    0 |zl|rl|nl|bl|ql|kl|bl|nl|rl|zl|=
   |wl|=                            |wl|=
  w1    a  b  c  d  e  f  g  h  i  j   w2

| '''Ajedrez Omega''' - posición inicial
}}
Ajedrez Omega (10x10 + 4 esquinas)
w4 wd <W4
   A

 B

 C

 D

 E

 F

 G

 H

 I
W3>
   J
w3 wd
9 a9 zd b9 rd c9 nd d9 bd e9 qd f9 kd g9 bd h9 nd i9 rd j9 zd 9
8 a8 pd b8 pd c8 pd d8 pd e8 pd f8 pd g8 pd h8 pd i8 pd j8 pd 8
7 a7 b7 c7 d7 e7 f7 g7 h7 i7 j7 7
6 a6 b6 c6 d6 e6 f6 g6 h6 i6 j6 6
5 a5 b5 c5 d5 e5 f5 g5 h5 i5 j5 5
4 a4 b4 c4 d4 e4 f4 g4 h4 i4 j4 4
3 a3 b3 c3 d3 e3 f3 g3 h3 i3 j3 3
2 a2 b2 c2 d2 e2 f2 g2 h2 i2 j2 2
1 a1 pl b1 pl c1 pl d1 pl e1 pl f1 pl g1 pl h1 pl i1 pl j1 pl 1
0 a0 zl b0 rl c0 nl d0 bl e0 ql f0 kl g0 bl h0 nl i0 rl j0 zl 0
w1 wl    A
<W1
 B
 C
 D
 E
 F
 G
 H
 I
   J
W2>
w2 wl
Ajedrez Omega - posición inicial
Esta documentación está transcluida desde Plantilla:Diagrama de ajedrez/doc.
Los editores pueden experimentar en la zona de pruebas (crear) y en los casos de prueba (crear) de la plantilla.
Por favor, añade las categorías en la subpágina de documentación. Subpáginas de esta plantilla.