I'm new here, and I would like to know how some members of this forum are creating these nice chess diagrams for analysing positions in their answers, the picture below explains well what I'm meaning. Thank you for help.
Tool used to create chess analysis interactive diagrams in many chess stack exchange answers
I personally use this site for that.
It is free, and it is an online tool.
In your answer you paste that code like this:
- Press space bar 4 times;
- Type square brackets (
fen ""inside the brackets (
- Paste your code inside the
[fen "Your FEN goes here"]);
If you decide to input variations like in the above picture you need to do this:
- Press enter twice;
- Press space bar 4 times;
- Input moves;
Here is an example:
If you have further question leave a comment and I will help you.
Hopefully this answer helps you.
2The problem with using a tool that is not integrated with SE is that if that site goes away, our content will fail. Jan 23, 2014 at 4:12
1@Tony: I'm not sure I follow. Why would our content fail if the above mentioned tool goes away? The content has been transferred, not so? Jan 23, 2014 at 13:29
@FranS No. If I understand, we'd be including a link to another site. The code for the chessboard lives at the other site. If that site goes away, all we'd have are broken links. Jan 23, 2014 at 23:14
2@Tony: Not sure where he mentions linking to that site directly - as far as I can tell he simply uses the external site to generate the FEN, which is then copied into SE. When that site disappears, his nice tool will be gone but none of the FEN's stored here will be impacted. Jan 24, 2014 at 7:40
@FranS Ah, I see. He's left off part of the instructions. Unless I am out of date, what he has will not work due to missing 'pre' and 'code' tags. Jan 24, 2014 at 11:56
@TonyEnnis: Member FranS is right-I use external tool to generate FEN, then I copy/paste the FEN code here, according to SE format. " Ah, I see. He's left off part of the instructions. Unless I am out of date, what he has will not work due to missing 'pre' and 'code' tags. " Everything works-the above described procedure was used several times in my answers. You can try the above example to reassure yourself. Best regards. Jan 24, 2014 at 13:39
@FranS Yep, it works as ALNS says. However, sometimes I have to put a blank line between the FEN and the moves. I don't know why, and I would not say it is because of the lack of PRE and CODE tags. Jan 25, 2014 at 15:23
@TonyEnnis: Yes, you need a space between
[fen "]and the moves. Also that first line must be indented by pressing space 4 times. Best regards. Jan 25, 2014 at 15:25
The tool does its best to display a game title and anything else based on valid pgn headers provided. Headers are provided in the following way:
[Name "Value"] with the square brackets and quotes as shown.
Here's some additional information about non-standard headers that are supported:
StartFlipped - if this is provided, the board will appear with black on the bottom and white on the top. If a FEN is provided with black to move, this will happen by default, however if this header is provided it is always followed.
StartPly - if a start ply is provided, the replayer will initially display the position after the given numeric ply. For example, see the second diagram in this question.
I'd be happy to elaborate if there are any questions, I just tried to get the basics in some sort of public form instead of just floating around in my head...– Andrew ModFeb 9, 2014 at 15:26
Is the github repo still taking issues and PRs?– qwrAug 2, 2022 at 18:45
Sure, I'm not sure how quickly changes can make it to this site, but I'm happy to review on github.– Andrew ModAug 3, 2022 at 19:26
Also lichess has a new lightweight viewer with a lot of features github.com/lichess-org/pgn-viewer– qwrAug 5, 2022 at 18:04
All you have to do is use the following sequence.
<pre> <code> [FEN "put your fen here but it's optional. You can leave this tag out"] (blank line) 1. e4 e5 2. d4 * </code> </pre>
I don't think this works on meta... but it works on the main site.
Now, it's fiddly. It frequently takes me a few tries to get it right.
[fen ""]. They should be indented by pressing spacebar 4 times as well. There is no need to skip one line, just put them under
FEN. Best regards.