Jump to content

Template talk:Chess from pgn

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

this talk page currently shows the template displaying 3 position out of the game, but template itself can display as many as <all of them>. add parameters in the form of <move#>l = some comment (e.g., 12l for position after white's move) or <move#>d = some comment for position after black's.

alternatively, to display several contiguous positions, use

from1 = 11d
to1 = 14l
comments1 = { footer for 11d position } { and for 12l } { 12d } { 13l } {} { 14l.} 

from2 = 17l
to2 = 19d
comments2 = {17l} {etc.} { } { } { 19l }

... from3 etc.

it is perfectly fine to mix the 2 styles, with a caveat: if the same position is referred more than once, it will be displayed more than once.

below is the output of

{{Chess from pgn
| 3l = position after 3. Nc3
| 8d = position after 8... e5
| 27d = position after 27... Bxa4 

| display notation = yes
| pgn = <pgn (or rather, algebraic notation - template can handle full pgn too) of Spassky/Fischer 1972 game #5>
}}
abcdefgh
8
a8 black rook
b8 black knight
c8 black bishop
d8 black queen
e8 black king
f8 black bishop
h8 black rook
a7 black pawn
b7 black pawn
c7 black pawn
d7 black pawn
f7 black pawn
g7 black pawn
h7 black pawn
e6 black pawn
f6 black knight
c4 white pawn
d4 white pawn
c3 white knight
a2 white pawn
b2 white pawn
e2 white pawn
f2 white pawn
g2 white pawn
h2 white pawn
a1 white rook
c1 white bishop
d1 white queen
e1 white king
f1 white bishop
g1 white knight
h1 white rook
8
77
66
55
44
33
22
11
abcdefgh
position after 3. Nc3
abcdefgh
8
a8 black rook
c8 black bishop
d8 black queen
e8 black king
h8 black rook
a7 black pawn
b7 black pawn
f7 black pawn
g7 black pawn
h7 black pawn
c6 black knight
d6 black pawn
f6 black knight
c5 black pawn
e5 black pawn
c4 white pawn
d4 white pawn
e4 white pawn
c3 white pawn
d3 white bishop
f3 white knight
a2 white pawn
f2 white pawn
g2 white pawn
h2 white pawn
a1 white rook
c1 white bishop
d1 white queen
e1 white king
h1 white rook
8
77
66
55
44
33
22
11
abcdefgh
position after 8... e5
abcdefgh
8
f8 black king
g7 black pawn
b6 black pawn
g6 black queen
h6 black pawn
a5 black pawn
c5 black pawn
d5 white pawn
e5 black pawn
g5 black pawn
a4 black bishop
c4 white pawn
e4 white pawn
f4 black knight
c3 white pawn
c2 white queen
g2 white pawn
h2 white pawn
d1 white bishop
e1 white bishop
g1 white king
8
77
66
55
44
33
22
11
abcdefgh
position after 27... Bxa4

1. d4 Nf6 2. c4 e6 3. Nc3 Bb4 4. Nf3 c5 5. e3 Nc6 6. Bd3 Bxc3+ 7. bxc3 d6 8. e4 e5 9. d5 Ne7 10. Nh4 h6 11. f4 Ng6 12. Nxg6 fxg6 13. fxe5 dxe5 14. Be3 b6 15. O-O O-O 16. a4 a5 17. Rb1 Bd7 18. Rb2 Rb8 19. Rbf2 Qe7 20. Bc2 g5 21. Bd2 Qe8 22. Be1 Qg6 23. Qd3 Nh5 24. Rxf8+ Rxf8 25. Rxf8+ Kxf8 26. Bd1 Nf4 27. Qc2 Bxa4

Start a discussion about improving the Template:Chess from pgn page

Start a discussion