Modèle:Diagramme d'échecs petit

Un livre de Wikilivres.
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


Utilisation[modifier le wikicode]

Il sert à créer un échiquier avec les pièces en jeu.

{{Diagramme d'échecs 
| tleft
| (commentaire)
<!--
 8 -->|__|__|__|__|__|__|__|__<!--
 7 -->|__|__|__|__|__|__|__|__<!--
 6 -->|__|__|__|__|__|__|__|__<!--
 5 -->|__|__|__|__|__|__|__|__<!--
 4 -->|__|__|__|__|__|__|__|__<!--
 3 -->|__|__|__|__|__|__|__|__<!--
 2 -->|__|__|__|__|__|__|__|__<!--
 1 -->|__|__|__|__|__|__|__|__<!--
       a  b  c  d  e  f  g  h
-->|
}}

Paramètres[modifier le wikicode]

  • 1= alignement (tleft ou tright)
  • 2 =Titre du tableau
  • 3 a 66 = les pièces sur l'échiquier

On indique la nature de la pièce et sa couleur par une lettre chacune.

Nom des pièces
  • k : Roi (king)
  • q : Dame (queen)
  • r : Tour (rock)
  • b : Fou (bishop)
  • n : Cavalier (knight)
  • p : Pion (pawn)
Couleur
  • l : Blanc (l)
  • d : Noir (dark)
divers
  • xx : croix dans une case (pour indiquer une case menacée par une pièce)

Exemples[modifier le wikicode]

Début de partie
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
Combinaison avec Fou et Cavalier
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

Voir aussi[modifier le wikicode]