Modèle:Xiangqi/Documentation

Une page de Wikipédia, l'encyclopédie libre.

Utilisation[modifier le code]

Création d'un diagramme vide :

{| style="margin:1em;"
| style="border: solid thin; padding: 2px;" |
{{Xiangqi|=

 10 |  |  |  |  |  |  |  |  |  |
  9 |  |  |  |  |  |  |  |  |  |
  8 |  |  |  |  |  |  |  |  |  |
  7 |  |  |  |  |  |  |  |  |  |
  6 |  |  |  |  |  |  |  |  |  |
  5 |  |  |  |  |  |  |  |  |  |
  4 |  |  |  |  |  |  |  |  |  |
  3 |  |  |  |  |  |  |  |  |  |
  2 |  |  |  |  |  |  |  |  |  |
  1 |  |  |  |  |  |  |  |  |  |
     a  b  c  d  e  f  g  h  i

|30}}
|-
|}

Ajout des pièces sur le plateau :

{| style="margin:1em;"
| style="border: solid thin; padding: 2px;" |
{{Xiangqi|=

 10 |rd|hd|ed|ad|gd|ad|ed|hd|rd|
  9 |  |  |  |  |  |  |  |  |  |
  8 |  |cd|  |  |  |  |  |cd|  |
  7 |sd|  |sd|  |sd|  |sd|  |sd|
  6 |  |  |  |  |  |  |  |  |  |
  5 |  |  |  |  |  |  |  |  |  |
  4 |sl|  |sl|  |sl|  |sl|  |sl|
  3 |  |cl|  |  |  |  |  |cl|  |
  2 |  |  |  |  |  |  |  |  |  |
  1 |rl|hl|el|al|gl|al|el|hl|rl|
     a  b  c  d  e  f  g  h  i

|30}}
|-
|}
10
9
8
7
6
5
4
3
2
1
a b c d e f g h i

Construction[modifier le code]

Code des pièces : la première lettre (r, h, e, a, g, c, s) désigne la nature de la pièce, et la deuxième (l ou d) son camp et donc sa couleur. There are two basics of the images: one being the type of piece, one being the type of position. Their naming convention is as follows: depending on the type of image, they together will form the entire image name, but start with xiangqi- and end with a unique four or five letter code. Color will either be light (red) or dark (black), and will be denoted by either a "l" or "d" respectively, in the second character placename in the code. The type of piece, such as general or chariot (rook) is denoted in the first character of the code. The type of position occupies the last two or three character places.

Abbréviations des pièces (entre parenthèse le nom anglais qui donne l'origine de l'abbréviation) :

pièces noires - d
pièces rouges - l

roi (general) - g
mandarin (advisor) - a
pion (soldier) - s
tour (rook) - r
éléphant (elephant) - e
cavalier (horse) - h
bombarde (cannon) - c
pas de pièce - [espace vide]

Positions - abbréviations

milieu du terrain (le plus courant) -


palais


milieu du palais -
coin en bas à gauche -
coin en bas à droite -
coin en haut à droite -
coin en haut à droite -


coins du plateau


coin en haut à gauche -
coin en haut à droite -
coin en bas à droite -
coin en haut à droite -


rivière









cotés du plateau