משתמש:קיפודנחש/ארגח 2

What can Module:Chess do for you עריכה

The main purpose of this module is to extract games from wikidat (in PGN format), then feed them either to interactive chess viewer, or drawing chess diagrams for any number of specificed positions out of the game

Getting PGN from wikidata and feeding it to interactive viewer עריכה

wikisource
{{#invoke:Chess | pgnFromWikidata | Q936161 }}
shows the game at d:Q936161, aka ירוק-העד or en:Evergreen Game, using interactive viewer


כדי לראות את המשחקים, יש לאפשר בדפדפן שלכם ג'אווהסקריפט.

[EventDate "1852Z"]

1. e4 e5 2. Nf3 Nc6 3. Bc4 Bc5 4. b4 Bxb4 5. c3 Ba5 6. d4 exd4 7. O-O d3 8. Qb3 Qf6 9. e5 Qg6 10. Re1 Nge7 11. Ba3 b5 12. Qxb5 Rb8 13. Qa4 Bb6 14. Nbd2 Bb7 15. Ne4 Qf5 16. Bxd3 Qh5 17. Nf6+ gxf6 18. exf6 Rg8 19. Rad1 Qxf3 20. Rxe7+ Nxe7 21. Qxd7+ Kxd7 22. Bf5+ Ke8 23. Bd7+ Kf8 24. Bxe7 1-0

Getting PGN from wikidata and displaying diagrams of selected positions עריכה

wiki source
{{לוחות ממשחק שחמט
| item = Q894926
| 10d  = footer for position after 10... (black) move
| 11l =  footer for the 11. move
| 14d = 
| 18d = 
| 21l = 
| 30l = 
}}
shows positions 10d, 11l, 14d, 18d, 21l, 30l from d:Q894926, or בוטביניק - קפבלנקה אברו 1938, or en:Botvinnik versus Capablanca, AVRO 1938, using chess diagrams


ח ז ו ה ד ג ב א
8
7
6
5
4
3
2
1
8
7
6
5
4
3
2
1
ח ז ו ה ד ג ב א
אחרי מסע 10 של השחור: רא6. footer for position after 10... (black) move
ח ז ו ה ד ג ב א
8
7
6
5
4
3
2
1
8
7
6
5
4
3
2
1
ח ז ו ה ד ג ב א
אחרי מסע 11 של הלבן: ר:א6. footer for the 11. move
ח ז ו ה ד ג ב א
8
7
6
5
4
3
2
1
8
7
6
5
4
3
2
1
ח ז ו ה ד ג ב א
אחרי מסע 14 של השחור: ג4.
ח ז ו ה ד ג ב א
8
7
6
5
4
3
2
1
8
7
6
5
4
3
2
1
ח ז ו ה ד ג ב א
אחרי מסע 18 של השחור: פב3.
ח ז ו ה ד ג ב א
8
7
6
5
4
3
2
1
8
7
6
5
4
3
2
1
ח ז ו ה ד ג ב א
אחרי מסע 21 של הלבן: מה-ו2.
ח ז ו ה ד ג ב א
8
7
6
5
4
3
2
1
8
7
6
5
4
3
2
1
ח ז ו ה ד ג ב א
אחרי מסע 30 של הלבן: רא3.




Combine diagrams and interactive game עריכה

wiki source
add
{{לוחות ממשחק שחמט
| item = Q894926
| אינטראקטיבי = לפני
| 10d  = footer for position after 10... (black) move
| 11l =  footer for the 11. move
| 14d = 
| 18d = 
| 21l = 
| 30l = 
}}
shows positions 10d, 11l, 14d, 18d, 21l, 30l from d:Q894926, or בוטביניק - קפבלנקה אברו 1938, or en:Botvinnik versus Capablanca, AVRO 1938, using chess diagrams.

Use "| אינטראקטיבי = לפני" to show the interactive game on top of diagrams, or "| אינטראקטיבי = אחרי" to show it below them.


כדי לראות את המשחקים, יש לאפשר בדפדפן שלכם ג'אווהסקריפט.

[EventDate "1938-11-22Z"]

1. d4 Nf6 2. c4 e6 3. Nc3 Bb4 4. e3 d5 5. a3 Bxc3+ 6. bxc3 c5 7. cxd5 exd5 8. Bd3 O-O 9. Ne2 b6 10. O-O Ba6 11. Bxa6 Nxa6 12. Bb2 Qd7 13. a4 Rfe8 14. Qd3 c4 15. Qc2 Nb8 16. Rae1 Nc6 17. Ng3 Na5 18. f3 Nb3 19. e4 Qxa4 20. e5 Nd7 21. Qf2 g6 22. f4 f5 23. exf6 Nxf6 24. f5 Rxe1 25. Rxe1 Re8 26. Re6 Rxe6 27. fxe6 Kg7 28. Qf4 Qe8 29. Qe5 Qe7 30. Ba3 Qxa3 31. Nh5+ gxh5 32. Qg5+ Kf8 33. Qxf6+ Kg8 34. e7 Qc1+ 35. Kf2 Qc2+ 36. Kg3 Qd3+ 37. Kh4 Qe4+ 38. Kxh5 Qe2+ 39. Kh4 Qe4+ 40. g4 Qe1+ 41. Kh5 1-0

ח ז ו ה ד ג ב א
8
7
6
5
4
3
2
1
8
7
6
5
4
3
2
1
ח ז ו ה ד ג ב א
אחרי מסע 10 של השחור: רא6. footer for position after 10... (black) move
ח ז ו ה ד ג ב א
8
7
6
5
4
3
2
1
8
7
6
5
4
3
2
1
ח ז ו ה ד ג ב א
אחרי מסע 11 של הלבן: ר:א6. footer for the 11. move
ח ז ו ה ד ג ב א
8
7
6
5
4
3
2
1
8
7
6
5
4
3
2
1
ח ז ו ה ד ג ב א
אחרי מסע 14 של השחור: ג4.
ח ז ו ה ד ג ב א
8
7
6
5
4
3
2
1
8
7
6
5
4
3
2
1
ח ז ו ה ד ג ב א
אחרי מסע 18 של השחור: פב3.
ח ז ו ה ד ג ב א
8
7
6
5
4
3
2
1
8
7
6
5
4
3
2
1
ח ז ו ה ד ג ב א
אחרי מסע 21 של הלבן: מה-ו2.
ח ז ו ה ד ג ב א
8
7
6
5
4
3
2
1
8
7
6
5
4
3
2
1
ח ז ו ה ד ג ב א
אחרי מסע 30 של הלבן: רא3.