Template:國際象棋盤

出自維基百科,自由嘅百科全書
Jump to navigation Jump to search
abcdefgh
8
Chessboard480.svg
8
77
66
55
44
33
22
11
abcdefgh
{{國際象棋盤|=
| <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.