틀:체스판

위키백과, 우리 모두의 백과사전.
둘러보기로 가기 검색하러 가기
abcdefgh
8
Chessboard480.svg
8
77
66
55
44
33
22
11
abcdefgh
Template-info.svg 틀 설명문서 [편집] [역사] [새로 고침]

기능[편집]

변형 체스를 위한 다른 판도 있습니다.


이 틀의 사용법은 다음과 같습니다.

8 퀸 문제 문서에서 사용된 예시
입력 출력
{{체스판|=
| tright
| 해 중 하나.
|= 
| | | |ql| | | | |=
| | | | | | |ql| |=
| | |ql| | | | | |=
| | | | | | | |ql|=
| |ql| | | | | | |=
| | | | |ql| | | |=
|ql| | | | | | | |=
| | | | | |ql| | |=
|
}}
 ㆍㆍㆍ▶
해 중 하나.
abcdefgh
8
Chessboard480.svg
d8 white queen
g7 white queen
c6 white queen
h5 white queen
b4 white queen
e3 white queen
a2 white queen
f1 white queen
8
77
66
55
44
33
22
11
abcdefgh

Parameters:

  • <alignment> – defines horizontal alignment (floating) of the whole table, must be tright or tleft (or nothing)
  • <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; optional – can be left out (currently not in the other templates)

A square is defined by the name of piece or empty parameter. The names of the pieces are those given in algebraic notation:

  • Chess kll45.svg Chess kld45.svg Chess kdl45.svg Chess kdd45.svg k = king
  • Chess qld45.svg Chess qll45.svg Chess qdd45.svg Chess qdl45.svg q = queen
  • Chess rll45.svg Chess rld45.svg Chess rdl45.svg Chess rdd45.svg r = rook
  • Chess bld45.svg Chess bll45.svg Chess bdd45.svg Chess bdl45.svg b = bishop
  • Chess nll45.svg Chess nld45.svg Chess ndl45.svg Chess ndd45.svg n = knight
  • Chess pld45.svg Chess pll45.svg Chess pdd45.svg Chess pdl45.svg p = pawn

There are also some fairy chess pieces available:

  • Chess all45.svg Chess ald45.svg Chess adl45.svg Chess add45.svg a = archbishop (knight + bishop compound)
  • Chess cld45.svg Chess cll45.svg Chess cdd45.svg Chess cdl45.svg c = chancelor (knight + rook compound)
  • Chess fll45.svg Chess fld45.svg Chess fdl45.svg Chess fdd45.svg f = upside-down king
  • Chess gld45.svg Chess gll45.svg Chess gdd45.svg Chess gdl45.svg g = upside-down queen
  • Chess mll45.svg Chess mld45.svg Chess mdl45.svg Chess mdd45.svg m = upside-down rook
  • Chess eld45.svg Chess ell45.svg Chess edd45.svg Chess edl45.svg e = upside-down bishop
  • Chess sll45.svg Chess sld45.svg Chess sdl45.svg Chess sdd45.svg s = upside-down knight
  • Chess hld45.svg Chess hll45.svg Chess hdd45.svg Chess hdl45.svg h = upside-down pawn
  • Chess zll45.svg Chess zld45.svg Chess zdl45.svg Chess zdd45.svg z = champion (for Omega Chess)
  • Chess wld45.svg Chess wll45.svg Chess wdd45.svg Chess wdl45.svg w = wizard (for Omega Chess)
  • Chess tld45.svg Chess tll45.svg Chess tdd45.svg Chess tdl45.svg t = fool (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.

  • Chess d45.svgChess l45.svg <space> = empty square

You can also use "xx" for a black cross, "ox" for a white cross, "xo" for a black circle on an empty square or "oo" for a white one.

  • Chess xxd45.svgChess xxl45.svg xx = black cross/x
  • Chess oxd45.svgChess oxl45.svg ox = white cross/x
  • Chess xod45.svgChess xol45.svg xo = black circle
  • Chess ood45.svgChess ool45.svg oo = white circle

숫자를 넣으려면 x뒤에 숫자 (0~9만 가능)을 넣습니다.

  • Chess x0d45.svgChess x0l45.svg x0
  • Chess x1d45.svgChess x1l45.svg x1
  • Chess x2d45.svgChess x2l45.svg x2
  • Chess x3d45.svgChess x3l45.svg x3
  • Chess x4d45.svgChess x4l45.svg x4
  • Chess x5d45.svgChess x5l45.svg x5
  • Chess x6d45.svgChess x6l45.svg x6
  • Chess x7d45.svgChess x7l45.svg x7
  • Chess x8d45.svgChess x8l45.svg x8
  • Chess x9d45.svgChess x9l45.svg x9