模板:Chess diagram

Chók-cê̤ṳ Wikipedia
跳至導覽 跳至搜尋
{{{2}}}
Chess zhor 26.png
Chess zver 26.png
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
Chess zver 26.png
Chess zhor 26.png
{{{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:

  • Chess kll44.pngChess kld44.pngChess kdl44.pngChess kdd44.png k = king
  • Chess qld44.pngChess qll44.pngChess qdd44.pngChess qdl44.png q = queen
  • Chess rll44.pngChess rld44.pngChess rdl44.pngChess rdd44.png r = rook
  • Chess bld44.pngChess bll44.pngChess bdd44.pngChess bdl44.png b = bishop
  • Chess nll44.pngChess nld44.pngChess ndl44.pngChess ndd44.png n = knight
  • Chess pld44.pngChess pll44.pngChess pdd44.pngChess pdl44.png p = pawn

There are also some fairy chess pieces available:

  • Chess all44.pngChess ald44.pngChess adl44.pngChess add44.png a = archbishop (knight + bishop compound)
  • Chess cld44.pngChess cll44.pngChess cdd44.pngChess cdl44.png c = chancelor (knight + rook compound)
  • Chess fll44.pngChess fld44.pngChess fdl44.pngChess fdd44.png f = upside-down king
  • Chess gld44.pngChess gll44.pngChess gdd44.pngChess gdl44.png g = upside-down queen
  • Chess mll44.pngChess mld44.pngChess mdl44.pngChess mdd44.png m = upside-down rook
  • Chess eld44.pngChess ell44.pngChess edd44.pngChess edl44.png e = upside-down bishop
  • Chess sll44.pngChess sld44.pngChess sdl44.pngChess sdd44.png s = upside-down knight
  • Chess hld44.pngChess hll44.pngChess hdd44.pngChess hdl44.png h = upside-down pawn
  • Chess zll44.pngChess zld44.pngChess zdl44.pngChess zdd44.png z = champion (for Omega Chess)
  • Chess wld44.pngChess wll44.pngChess wdd44.pngChess wdl44.png 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.