This is a documentation for Board Game Arena: play board games online !
Template:Chessboard: Difference between revisions
Jump to navigation
Jump to search
Sammy McSam (talk | contribs) m (added emptySquare placeholders in examples) |
Sammy McSam (talk | contribs) m (added emptySquare default values) |
||
Line 1: | Line 1: | ||
<!-- | <!-- copy basic empty chessboard: | ||
copy basic empty chessboard: | |||
{{chessboard | numbersColumnWidth=20px | squareSize=45px | lightSquareColour=#fff | darkSquareColour=#ddd | {{chessboard | numbersColumnWidth=20px | squareSize=45px | lightSquareColour=#fff | darkSquareColour=#ddd | ||
Line 12: | Line 11: | ||
| a1= | b1= | c1= | d1= | e1= | f1= | g1= | h1= | | a1= | b1= | c1= | d1= | e1= | f1= | g1= | h1= | ||
}} | }} | ||
place chessboard in wikitable with empty 45px squares to preserve dimensions for display on game RULES SUMMARY pages | place chessboard in wikitable with empty 45px squares to preserve dimensions for display on game RULES SUMMARY pages | ||
Line 34: | Line 34: | ||
copy chess starting position: | copy chess starting position: | ||
{{chessboard | numbersColumnWidth=20px | squareSize=45px | lightSquareColour=# | {{chessboard | numbersColumnWidth=20px | squareSize=45px | lightSquareColour=#efe | darkSquareColour=#cdc | ||
| a8={{blackRook}} | b8={{blackKnight}}| c8={{blackBishop}}| d8={{blackQueen}} | e8={{blackKing}} | f8={{blackBishop}}| g8={{blackKnight}}| h8={{blackRook}} | | a8={{blackRook}} | b8={{blackKnight}}| c8={{blackBishop}}| d8={{blackQueen}} | e8={{blackKing}} | f8={{blackBishop}}| g8={{blackKnight}}| h8={{blackRook}} | ||
| a7={{blackPawn}} | b7={{blackPawn}} | c7={{blackPawn}} | d7={{blackPawn}} | e7={{blackPawn}} | f7={{blackPawn}} | g7={{blackPawn}} | h7={{blackPawn}} | | a7={{blackPawn}} | b7={{blackPawn}} | c7={{blackPawn}} | d7={{blackPawn}} | e7={{blackPawn}} | f7={{blackPawn}} | g7={{blackPawn}} | h7={{blackPawn}} | ||
Line 60: | Line 60: | ||
|- | |- | ||
| style="width: {{{numbersColumnWidth|20px}}}; height: {{{squareSize|45px}}};| 8 | | style="width: {{{numbersColumnWidth|20px}}}; height: {{{squareSize|45px}}};| 8 | ||
| style="background: {{{lightSquareColour|#fff}}};"| {{{a8|}}} | | style="background: {{{lightSquareColour|#fff}}};"| {{{a8|{{emptySquare}}}}} | ||
| style="background: {{{darkSquareColour |#ddd}}};"| {{{b8|}}} | | style="background: {{{darkSquareColour |#ddd}}};"| {{{b8|{{emptySquare}}}}} | ||
| style="background: {{{lightSquareColour|#fff}}};"| {{{c8|}}} | | style="background: {{{lightSquareColour|#fff}}};"| {{{c8|{{emptySquare}}}}} | ||
| style="background: {{{darkSquareColour |#ddd}}};"| {{{d8|}}} | | style="background: {{{darkSquareColour |#ddd}}};"| {{{d8|{{emptySquare}}}}} | ||
| style="background: {{{lightSquareColour|#fff}}};"| {{{e8|}}} | | style="background: {{{lightSquareColour|#fff}}};"| {{{e8|{{emptySquare}}}}} | ||
| style="background: {{{darkSquareColour |#ddd}}};"| {{{f8|}}} | | style="background: {{{darkSquareColour |#ddd}}};"| {{{f8|{{emptySquare}}}}} | ||
| style="background: {{{lightSquareColour|#fff}}};"| {{{g8|}}} | | style="background: {{{lightSquareColour|#fff}}};"| {{{g8|{{emptySquare}}}}} | ||
| style="background: {{{darkSquareColour |#ddd}}};"| {{{h8|}}} | | style="background: {{{darkSquareColour |#ddd}}};"| {{{h8|{{emptySquare}}}}} | ||
| 8 | | 8 | ||
|- | |- | ||
| style="width: {{{numbersColumnWidth|20px}}}; height: {{{squareSize|45px}}};"| 7 | | style="width: {{{numbersColumnWidth|20px}}}; height: {{{squareSize|45px}}};"| 7 | ||
| style="background: {{{darkSquareColour |#ddd}}};"| {{{a7|}}} | | style="background: {{{darkSquareColour |#ddd}}};"| {{{a7|{{emptySquare}}}}} | ||
| style="background: {{{lightSquareColour|#fff}}};"| {{{b7|}}} | | style="background: {{{lightSquareColour|#fff}}};"| {{{b7|{{emptySquare}}}}} | ||
| style="background: {{{darkSquareColour |#ddd}}};"| {{{c7|}}} | | style="background: {{{darkSquareColour |#ddd}}};"| {{{c7|{{emptySquare}}}}} | ||
| style="background: {{{lightSquareColour|#fff}}};"| {{{d7|}}} | | style="background: {{{lightSquareColour|#fff}}};"| {{{d7|{{emptySquare}}}}} | ||
| style="background: {{{darkSquareColour |#ddd}}};"| {{{e7|}}} | | style="background: {{{darkSquareColour |#ddd}}};"| {{{e7|{{emptySquare}}}}} | ||
| style="background: {{{lightSquareColour|#fff}}};"| {{{f7|}}} | | style="background: {{{lightSquareColour|#fff}}};"| {{{f7|{{emptySquare}}}}} | ||
| style="background: {{{darkSquareColour |#ddd}}};"| {{{g7|}}} | | style="background: {{{darkSquareColour |#ddd}}};"| {{{g7|{{emptySquare}}}}} | ||
| style="background: {{{lightSquareColour|#fff}}};"| {{{h7|}}} | | style="background: {{{lightSquareColour|#fff}}};"| {{{h7|{{emptySquare}}}}} | ||
| 7 | | 7 | ||
|- | |- | ||
| style="width: {{{numbersColumnWidth|20px}}}; height: {{{squareSize|45px}}};"| 6 | | style="width: {{{numbersColumnWidth|20px}}}; height: {{{squareSize|45px}}};"| 6 | ||
| style="background: {{{lightSquareColour|#fff}}};"| {{{a6|}}} | | style="background: {{{lightSquareColour|#fff}}};"| {{{a6|{{emptySquare}}}}} | ||
| style="background: {{{darkSquareColour |#ddd}}};"| {{{b6|}}} | | style="background: {{{darkSquareColour |#ddd}}};"| {{{b6|{{emptySquare}}}}} | ||
| style="background: {{{lightSquareColour|#fff}}};"| {{{c6|}}} | | style="background: {{{lightSquareColour|#fff}}};"| {{{c6|{{emptySquare}}}}} | ||
| style="background: {{{darkSquareColour |#ddd}}};"| {{{d6|}}} | | style="background: {{{darkSquareColour |#ddd}}};"| {{{d6|{{emptySquare}}}}} | ||
| style="background: {{{lightSquareColour|#fff}}};"| {{{e6|}}} | | style="background: {{{lightSquareColour|#fff}}};"| {{{e6|{{emptySquare}}}}} | ||
| style="background: {{{darkSquareColour |#ddd}}};"| {{{f6|}}} | | style="background: {{{darkSquareColour |#ddd}}};"| {{{f6|{{emptySquare}}}}} | ||
| style="background: {{{lightSquareColour|#fff}}};"| {{{g6|}}} | | style="background: {{{lightSquareColour|#fff}}};"| {{{g6|{{emptySquare}}}}} | ||
| style="background: {{{darkSquareColour |#ddd}}};"| {{{h6|}}} | | style="background: {{{darkSquareColour |#ddd}}};"| {{{h6|{{emptySquare}}}}} | ||
| 6 | | 6 | ||
|- | |- | ||
| style="width: {{{numbersColumnWidth|20px}}}; height: {{{squareSize|45px}}};"| 5 | | style="width: {{{numbersColumnWidth|20px}}}; height: {{{squareSize|45px}}};"| 5 | ||
| style="background: {{{darkSquareColour |#ddd}}};"| {{{a5|}}} | | style="background: {{{darkSquareColour |#ddd}}};"| {{{a5|{{emptySquare}}}}} | ||
| style="background: {{{lightSquareColour|#fff}}};"| {{{b5|}}} | | style="background: {{{lightSquareColour|#fff}}};"| {{{b5|{{emptySquare}}}}} | ||
| style="background: {{{darkSquareColour |#ddd}}};"| {{{c5|}}} | | style="background: {{{darkSquareColour |#ddd}}};"| {{{c5|{{emptySquare}}}}} | ||
| style="background: {{{lightSquareColour|#fff}}};"| {{{d5|}}} | | style="background: {{{lightSquareColour|#fff}}};"| {{{d5|{{emptySquare}}}}} | ||
| style="background: {{{darkSquareColour |#ddd}}};"| {{{e5|}}} | | style="background: {{{darkSquareColour |#ddd}}};"| {{{e5|{{emptySquare}}}}} | ||
| style="background: {{{lightSquareColour|#fff}}};"| {{{f5|}}} | | style="background: {{{lightSquareColour|#fff}}};"| {{{f5|{{emptySquare}}}}} | ||
| style="background: {{{darkSquareColour |#ddd}}};"| {{{g5|}}} | | style="background: {{{darkSquareColour |#ddd}}};"| {{{g5|{{emptySquare}}}}} | ||
| style="background: {{{lightSquareColour|#fff}}};"| {{{h5|}}} | | style="background: {{{lightSquareColour|#fff}}};"| {{{h5|{{emptySquare}}}}} | ||
| 5 | | 5 | ||
|- | |- | ||
| style="width: {{{numbersColumnWidth|20px}}}; height: {{{squareSize|45px}}};"| 4 | | style="width: {{{numbersColumnWidth|20px}}}; height: {{{squareSize|45px}}};"| 4 | ||
| style="background: {{{lightSquareColour|#fff}}};"| {{{a4|}}} | | style="background: {{{lightSquareColour|#fff}}};"| {{{a4|{{emptySquare}}}}} | ||
| style="background: {{{darkSquareColour |#ddd}}};"| {{{b4|}}} | | style="background: {{{darkSquareColour |#ddd}}};"| {{{b4|{{emptySquare}}}}} | ||
| style="background: {{{lightSquareColour|#fff}}};"| {{{c4|}}} | | style="background: {{{lightSquareColour|#fff}}};"| {{{c4|{{emptySquare}}}}} | ||
| style="background: {{{darkSquareColour |#ddd}}};"| {{{d4|}}} | | style="background: {{{darkSquareColour |#ddd}}};"| {{{d4|{{emptySquare}}}}} | ||
| style="background: {{{lightSquareColour|#fff}}};"| {{{e4|}}} | | style="background: {{{lightSquareColour|#fff}}};"| {{{e4|{{emptySquare}}}}} | ||
| style="background: {{{darkSquareColour |#ddd}}};"| {{{f4|}}} | | style="background: {{{darkSquareColour |#ddd}}};"| {{{f4|{{emptySquare}}}}} | ||
| style="background: {{{lightSquareColour|#fff}}};"| {{{g4|}}} | | style="background: {{{lightSquareColour|#fff}}};"| {{{g4|{{emptySquare}}}}} | ||
| style="background: {{{darkSquareColour |#ddd}}};"| {{{h4|}}} | | style="background: {{{darkSquareColour |#ddd}}};"| {{{h4|{{emptySquare}}}}} | ||
| 4 | | 4 | ||
|- | |- | ||
| style="width: {{{numbersColumnWidth|20px}}}; height: {{{squareSize|45px}}};"| 3 | | style="width: {{{numbersColumnWidth|20px}}}; height: {{{squareSize|45px}}};"| 3 | ||
| style="background: {{{darkSquareColour |#ddd}}};"| {{{a3|}}} | | style="background: {{{darkSquareColour |#ddd}}};"| {{{a3|{{emptySquare}}}}} | ||
| style="background: {{{lightSquareColour|#fff}}};"| {{{b3|}}} | | style="background: {{{lightSquareColour|#fff}}};"| {{{b3|{{emptySquare}}}}} | ||
| style="background: {{{darkSquareColour |#ddd}}};"| {{{c3|}}} | | style="background: {{{darkSquareColour |#ddd}}};"| {{{c3|{{emptySquare}}}}} | ||
| style="background: {{{lightSquareColour|#fff}}};"| {{{d3|}}} | | style="background: {{{lightSquareColour|#fff}}};"| {{{d3|{{emptySquare}}}}} | ||
| style="background: {{{darkSquareColour |#ddd}}};"| {{{e3|}}} | | style="background: {{{darkSquareColour |#ddd}}};"| {{{e3|{{emptySquare}}}}} | ||
| style="background: {{{lightSquareColour|#fff}}};"| {{{f3|}}} | | style="background: {{{lightSquareColour|#fff}}};"| {{{f3|{{emptySquare}}}}} | ||
| style="background: {{{darkSquareColour |#ddd}}};"| {{{g3|}}} | | style="background: {{{darkSquareColour |#ddd}}};"| {{{g3|{{emptySquare}}}}} | ||
| style="background: {{{lightSquareColour|#fff}}};"| {{{h3|}}} | | style="background: {{{lightSquareColour|#fff}}};"| {{{h3|{{emptySquare}}}}} | ||
| 3 | | 3 | ||
|- | |- | ||
| style="width: {{{numbersColumnWidth|20px}}}; height: {{{squareSize|45px}}};"| 2 | | style="width: {{{numbersColumnWidth|20px}}}; height: {{{squareSize|45px}}};"| 2 | ||
| style="background: {{{lightSquareColour|#fff}}};"| {{{a2|}}} | | style="background: {{{lightSquareColour|#fff}}};"| {{{a2|{{emptySquare}}}}} | ||
| style="background: {{{darkSquareColour |#ddd}}};"| {{{b2|}}} | | style="background: {{{darkSquareColour |#ddd}}};"| {{{b2|{{emptySquare}}}}} | ||
| style="background: {{{lightSquareColour|#fff}}};"| {{{c2|}}} | | style="background: {{{lightSquareColour|#fff}}};"| {{{c2|{{emptySquare}}}}} | ||
| style="background: {{{darkSquareColour |#ddd}}};"| {{{d2|}}} | | style="background: {{{darkSquareColour |#ddd}}};"| {{{d2|{{emptySquare}}}}} | ||
| style="background: {{{lightSquareColour|#fff}}};"| {{{e2|}}} | | style="background: {{{lightSquareColour|#fff}}};"| {{{e2|{{emptySquare}}}}} | ||
| style="background: {{{darkSquareColour |#ddd}}};"| {{{f2|}}} | | style="background: {{{darkSquareColour |#ddd}}};"| {{{f2|{{emptySquare}}}}} | ||
| style="background: {{{lightSquareColour|#fff}}};"| {{{g2|}}} | | style="background: {{{lightSquareColour|#fff}}};"| {{{g2|{{emptySquare}}}}} | ||
| style="background: {{{darkSquareColour |#ddd}}};"| {{{h2|}}} | | style="background: {{{darkSquareColour |#ddd}}};"| {{{h2|{{emptySquare}}}}} | ||
| 2 | | 2 | ||
|- | |- | ||
| style="width: {{{numbersColumnWidth|20px}}}; height: {{{squareSize|45px}}};"| 1 | | style="width: {{{numbersColumnWidth|20px}}}; height: {{{squareSize|45px}}};"| 1 | ||
| style="background: {{{darkSquareColour |#ddd}}};"| {{{a1|}}} | | style="background: {{{darkSquareColour |#ddd}}};"| {{{a1|{{emptySquare}}}}} | ||
| style="background: {{{lightSquareColour|#fff}}};"| {{{b1|}}} | | style="background: {{{lightSquareColour|#fff}}};"| {{{b1|{{emptySquare}}}}} | ||
| style="background: {{{darkSquareColour |#ddd}}};"| {{{c1|}}} | | style="background: {{{darkSquareColour |#ddd}}};"| {{{c1|{{emptySquare}}}}} | ||
| style="background: {{{lightSquareColour|#fff}}};"| {{{d1|}}} | | style="background: {{{lightSquareColour|#fff}}};"| {{{d1|{{emptySquare}}}}} | ||
| style="background: {{{darkSquareColour |#ddd}}};"| {{{e1|}}} | | style="background: {{{darkSquareColour |#ddd}}};"| {{{e1|{{emptySquare}}}}} | ||
| style="background: {{{lightSquareColour|#fff}}};"| {{{f1|}}} | | style="background: {{{lightSquareColour|#fff}}};"| {{{f1|{{emptySquare}}}}} | ||
| style="background: {{{darkSquareColour |#ddd}}};"| {{{g1|}}} | | style="background: {{{darkSquareColour |#ddd}}};"| {{{g1|{{emptySquare}}}}} | ||
| style="background: {{{lightSquareColour|#fff}}};"| {{{h1|}}} | | style="background: {{{lightSquareColour|#fff}}};"| {{{h1|{{emptySquare}}}}} | ||
| 1 | | 1 | ||
|- | |- |