Template:Chess from pgn/doc

This template takes Portable Game Notation, aka "pgn", or, optionally, just the Algebraic notation part of the pgn, and a list of positions, and generates a series of Chess diagrams.

Parameters
An alternative way to display positions, showing a series of consecutive positions, is: and optionally etc. (i.e., from3/to3/comments3, from4/to4/comments4 and so on)
 *   - Mandatory parameter, containing the pgn or the algebraic notation of the game. In-notation comments are not supported. If original pgn contains comments, they should be removed for the template to work correctly. PGN headers are allowed, for convenience, but ignored by the template, except when parameter  is set to "yes", in which case the tags will be shown as part of the notation.
 * Series of   parameters, determining which positions will be displayed, using the Chess diagram template. The value of this parameter will be passed to the diagram as "footer". Each move is in the form of l or d, for position after white move or after black move, e.g.
 * 1)   {text} {text} {text} ...
 * 1)   {text} {text} {text} ...
 * 1)   {text} {text} {text} ...

Where "from1" is the first position to display, and "to1" is the last, (again, using "17l" or "13d" notation), and "comments1" is the series of footer text, each enclosed in { ... }, to be displayed as footer to each position in the series. If the number of comments do not match the number of positions between from and to, the excess comments will be ignored, or the excess positions will be displayed with no footer text.

Multiple series of positions can be requested, using "from2/to2/comments2" and so on. Note that requesting the same position multiple times, i.e., requesting it both as individual position and as part of a series, or using 2 series with some overlap, will result in displaying the same position more than once.

Regardless of the order and method the positions were requested, they will be displayed in the game's order - 12d always before 13l.


 *   optional parameter, tells the template to display the parameter passed as "pgn", below the diagrams.

Example
will display:


 * Same game. Using from...to syntax (12l to 14d, plus disjoint position 27d), not defining "display notation":

will display: