Posted by Helmut_pdorf on 05 Mar 2012 18:07, last edited by Helmut_pdorf on 05 Mar 2012 18:09
Following a wish on our feedback site (http://feedback.wikidot.com/wish:764 - chessdiagrams) I made a quick search on the chessworld for an easy implement of such an chess image builder..
The normal way is to search for some free apllications to create at the home pc some png or jpg images of a chess diagramm (or a html table) and upload it to a wikidot page to insert it as an image of a goven position.
The found solution is easier and nothing is to implement on your page - I describe here the usage of
http://www.eddins.net/steve/chess/chessimager
Using the image-source url as a command!
Put after an image tag the "url adress" of the ChessImager.php and after the fen= end your "wished position in the FEN notation".
Example:
5N1k/6p1/7p/4P3/pp2Q3/4q3/1P4PP/2b4K/ reads as for the 1. line (line 8) 5 effective empty fields, White Knight, 1 empty field, black King. next line 6 empty fields, own black pawn, 1 empty field.. and so on).
( description FEN Noattion see also http://code.google.com/p/chessimager/wiki/UsingFen )
[[image http://www.eddins.net/steve/chess/ChessImager/ChessImager.php?fen=5N1k/6p1/7p/4P3/pp2Q3/4q3/1P4PP/2b4K/ ]] is rendered as :
For a first try not so bad !
Notice the starting white field at the left top - this is the standard view of the chess board…
What you can change for the outcoming - constructed image is :
- size default 35px) - http://code.google.com/p/chessimager/wiki/SquareSize
- border (thick, color) - http://code.google.com/p/chessimager/wiki/Border
- coordinates on/off - http://code.google.com/p/chessimager/wiki/BoardCoordinates
- colors(light,dark fields) - http://code.google.com/p/chessimager/wiki/SquareColors
- style (board, pieces) - http://code.google.com/p/chessimager/wiki/PieceStyle
- view direction ( White - Black) - http://code.google.com/p/chessimager/wiki/ReverseBoard
What is not shown :
- the last move(s), the situation of rochades, or if one King was in chess ( before a rochade) a,.s.o.
Examples:
with some extra codes like size, coordinates=on, colors, style
&square_size=25
&coordinates=on
&ds_color=(70,109,186)&ls_color=(255,220,175)
&piece_style=leipzig ( default=merida !)
&border_width=3&border_color=(0,0,0)
[[image http://www.eddins.net/steve/chess/ChessImager/ChessImager.php?fen=5N1k/6p1/7p/4P3/pp2Q3/4q3/1P4PP/2b4K/&square_size=25&coordinates=on&ds_color=(70,109,186)&ls_color=(255,220,175)&piece_style=leipzig&border_width=3&border_color=(0,0,0)]]
Now it should be easy to use chess diagrams on Wikidot pages.
Notice the starting set in FEN- Notation is rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR/
Hope this helps someone.
On Steve's chess site there are some wonderfull links into the world of chess too!
Have fun with them!
After some searches in the world of chess i wrote a little "howto" to explain how to insert position images on wikidot pages.
For a "Blog" it is of small interest ( I beleive) and therefore I want to push it more in our forum and twitter for our visitors.
Have a look on the main page of this post.
Regards
Helmut
Service is my success. My webtips:www.blender.org (Open source), Wikidot-Handbook.
Sie können fragen und mitwirken in der deutschsprachigen » User-Gemeinschaft für WikidotNutzer oder
im deutschen » Wikidot Handbuch ?
Hi!
I used http://www.eddins.net/steve/chess/ChessImager/ChessImager.php some years ago but it seems like it is gone now!
So I wrote my own chess imager that now lives at appforce.se/chessboard.
E.g. http://appforce.se/chessboard?size=30&fen=8/5k2/1Q6/4K3/8/8/8/8%20w%20-%20-%200%201
But when I try to use this url in image tags it does not work.
Why? I.e. I cant use url in an image tag! But I can hit the url above.
As Helmut_pdorf said, I think it is the spaces in the URL Gunnar. I would suggest you replace them with %20 as you have in your example link above. That should work OK.
~ Leiger - Wikidot Community Admin - Volunteer
Wikidot: Official Documentation | Wikidot Discord server | NEW: Wikiroo, backup tool (in development)
http://appforce.se/chessboard?size=30&fen=8/5k2/1Q6/4K3/8/8/8/8%20w%20-%20-%200%201
is clickable , but your last ( hit) isa not - the spaces shows a null point message error.
used in
[[image http://appforce.se/chessboard?size=30&fen=8/5k2/1Q6/4K3/8/8/8/8%20w%20-%20-%200%201]]
shows:
Hope this helps ?
PS: THANKS FOR THE NEW APP!
Service is my success. My webtips:www.blender.org (Open source), Wikidot-Handbook.
Sie können fragen und mitwirken in der deutschsprachigen » User-Gemeinschaft für WikidotNutzer oder
im deutschen » Wikidot Handbuch ?
It would be great to wrote some helping guide here in wikidot! - Or elsewhere!
Service is my success. My webtips:www.blender.org (Open source), Wikidot-Handbook.
Sie können fragen und mitwirken in der deutschsprachigen » User-Gemeinschaft für WikidotNutzer oder
im deutschen » Wikidot Handbuch ?
on https://www.chessvideos.tv/genboard.php
generating a png file to insert into a code: http://www.chessvideos.tv/bimg/11to2g4n472pj.png
[[image http://www.chessvideos.tv/bimg/11to2g4n472pj.png]] shows now
or
http://www.jinchess.com/chessboard/composer
where I got such image url:
http://www.jinchess.com/chessboard/?p=---K------------------------------------R--------R-----------k--&tm=w
showing this inage
[[image http://www.jinchess.com/chessboard/?p=---K------------------------------------R--------R-----------k--&tm=w]]
There are a lot of such diagrams in the net !
Thanmks again for bringing this to our knowledge!
Service is my success. My webtips:www.blender.org (Open source), Wikidot-Handbook.
Sie können fragen und mitwirken in der deutschsprachigen » User-Gemeinschaft für WikidotNutzer oder
im deutschen » Wikidot Handbuch ?
Also good is https://de.lichess.org/training/53873 with the tools to demonstrate on html a diagram…
Service is my success. My webtips:www.blender.org (Open source), Wikidot-Handbook.
Sie können fragen und mitwirken in der deutschsprachigen » User-Gemeinschaft für WikidotNutzer oder
im deutschen » Wikidot Handbuch ?