Template:Chessboard

From Uncyclopedia, the content-free encyclopedia
Jump to navigation Jump to search
a b c d e f g h
8 Chess .gif Chess .gif Chess .gif Chess .gif Chess .gif Chess .gif Chess .gif Chess .gif 8
7 Chess .gif Chess .gif Chess .gif Chess .gif Chess .gif Chess .gif Chess .gif Chess .gif 7
6 Chess .gif Chess .gif Chess .gif Chess .gif Chess .gif Chess .gif Chess .gif Chess .gif 6
5 Chess .gif Chess .gif Chess .gif Chess .gif Chess .gif Chess .gif Chess .gif Chess .gif 5
4 Chess .gif Chess .gif Chess .gif Chess .gif Chess .gif Chess .gif Chess .gif Chess .gif 4
3 Chess .gif Chess .gif Chess .gif Chess .gif Chess .gif Chess .gif Chess .gif Chess .gif 3
2 Chess .gif Chess .gif Chess .gif Chess .gif Chess .gif Chess .gif Chess .gif Chess .gif 2
1 Chess .gif Chess .gif Chess .gif Chess .gif Chess .gif Chess .gif Chess .gif Chess .gif 1
a b c d e f g h
[edit] [purge] Template-info.svg Template documentation

Instructions

Default template is thus:

{{chessboard
 |rb|nb|bb|qb|kb|bb|nb|rb
 |pb|pb|pb|pb|pb|pb|pb|pb
 |  |  |  |  |  |  |  |  
 |  |  |  |  |  |  |  |  
 |  |  |  |  |  |  |  |  
 |  |  |  |  |  |  |  |  
 |pw|pw|pw|pw|pw|pw|pw|pw
 |rw|nw|bw|qw|kw|bw|nw|rw
 }}

Appears as:

a b c d e f g h
8 Chess rb.gif Chess nb.gif Chess bb.gif Chess qb.gif Chess kb.gif Chess bb.gif Chess nb.gif Chess rb.gif 8
7 Chess pb.gif Chess pb.gif Chess pb.gif Chess pb.gif Chess pb.gif Chess pb.gif Chess pb.gif Chess pb.gif 7
6 Chess .gif Chess .gif Chess .gif Chess .gif Chess .gif Chess .gif Chess .gif Chess .gif 6
5 Chess .gif Chess .gif Chess .gif Chess .gif Chess .gif Chess .gif Chess .gif Chess .gif 5
4 Chess .gif Chess .gif Chess .gif Chess .gif Chess .gif Chess .gif Chess .gif Chess .gif 4
3 Chess .gif Chess .gif Chess .gif Chess .gif Chess .gif Chess .gif Chess .gif Chess .gif 3
2 Chess pw.gif Chess pw.gif Chess pw.gif Chess pw.gif Chess pw.gif Chess pw.gif Chess pw.gif Chess pw.gif 2
1 Chess rw.gif Chess nw.gif Chess bw.gif Chess qw.gif Chess kw.gif Chess bw.gif Chess nw.gif Chess rw.gif 1
a b c d e f g h

Options

  • |img= (default: gif)
    • png
  • |size= (default: 44)
    • size in pixels

The classic version of this template used GIF for compatibility reasons; though compatibility is no longer an issue. Compare GIF chesspieces and PNG chesspieces in the sandbox.

The chesspieces can be rendered in different sizes. To create a chessboard half the size, change the first line to:

 {{chessboard|size=22

Images

Game:Multiplayer Chess/List of Chess Pieces

History

Past documentation read "End each line with |= to prevent the next number parameter being implemented."

This had a side effect of populating Category:Pages using duplicate arguments in template calls. Newlines are now stripped away with Template:Trim. It is no longer recommended to end lines with |=.

See also

wikipedia:Template:Chess diagram