[wordpress插件] Chess Tempo Viewer国际象棋节奏查看器

wordpress 插件 文章 2020-03-22 21:30 696 0 全屏看文

AI助手支持GPT4.0

评分
0
描述

Integrate the chess board of ChessTempo for some of the options).

集成ChessTempo的国际象棋棋盘以获得某些选项。

See ChessTempo PGN Viewer Usage for all the parameters available, this plugin
 

有关此插件的所有可用参数,请参见 ChessTempo PGN Viewer用法
 

only translates them to WordPress.

只将它们翻译成WordPress。

Use following tag to insert a chessboard:

使用以下标记插入棋盘:

[ctpgn parameter=value ...]

  [ctpgn参数=值...]

... chess games in PGN format ...

... PGN格式的国际象棋游戏...

[/ctpgn]

[/ ctpgn]

Tag parameters:

标记参数:

    • pgnFile: URL to the pgn file.

    • pgnFile:pgn文件的URL。

      If you want to embed the PGN directly, embed it like the example below.

      如果要直接嵌入PGN,请按照以下示例进行嵌入。

      (This parameter is not implemented yet)

    • (此参数尚未实现)

    • pieceSet: possible are ‘merida’ (the default), ‘leipzig’, ‘maya’, ‘condal’, ‘case’ and ‘kingdom’
    • pieceSet:可能是“ merida”(默认设置),“ leipzig”,“ maya”,“ condal”,“ case”和“ kingdom”

    • pieceSize: The size of the pieces to use in pixels, currently supported sizes are ’20’, ’24’, ’29’, ’35’, ’40’ and ’46’.

    • pieceSize:要使用的片段大小(以像素为单位),当前支持的大小为“ 20”,“ 24”,“ 29”,“ 35”,“ 40”和“ 46”。

      Default size is 46

    • 默认大小为46

    • fen: The fen string if the game does not start from the beginning position
    • fen:如果游戏不是从起始位置开始,则为fen字符串

    • movesFormat: The style of formatting for the moves display, either “default” or “main_on_own_line” for a
       

    • movesFormat:移动显示的格式设置样式,
      为“默认”或“ main_on_own_line” 

      display which puts the main line moves on their own line with the annotations/variations indented below the main line.

    • 显示,使主行移动到自己的行上,并在主行下方缩进注释/变化。

    • layout: top (default), bottom, left or right.

    • 布局:顶部(默认),底部,左侧或右侧。

      top means board is on top, moves below, bottom vice versae.

      顶部表示板在顶部,板在下面,反之亦然。

      left
       


       

      sets the board on the top left, and the moves flow on the right and below, right sets the board on the right, and moves
       

      将面板设置在左上方,移动流程在右侧和下方,右侧将面板设置在右侧,然后移动
       

      flow on the left and below.

    • 在左侧和下方流动。

    • id: name of the board on the page.

    • id:页面上的面板名称。

      Only necessary, if there is more than one board on the page.

      如果页面上有一个以上的面板,则仅在必要时使用。

      The names
       

      名称
       

      have to be unique per page, not globally.

    • 每页必须唯一,而不是全局。

    Example:

    示例:

    [ctpgn id=fen fen="r5k1/ppqb2pp/2n1pr2/3pN1QP/2pP2B1/P1P5/2P2PP1/R3R1K1 w - - 0 23"]    

      [ctpgn id = fen fen =“ r5k1 / ppqb2pp / 2n1pr2 / 3pN1QP / 2pP2B1 / P1P5 / 2P2PP1 / R3R1K1 w--0 23”]    

    23. Nxd7 {verwundert schlug Schwarz den Springer} Qxd7 24. Qxf6 {Schwarz fällt aus allen Wolken!} gxf6    

    23. Nxd7 {verwundert schlug Schwarz den Springer} Qx​​d7 24. Qxf6 {Schwarzfälltaus allen Wolken!} gxf6    

    25. Bxe6+ Qxe6 26. Rxe6 {der Rest ist Sache der Technik} Kf7 27. Rd6 Rd8 28. Rxd8 Nxd8 29. f4 Ne6    

    25. Bxe6 + Qxe6 26. Rxe6 {技术} Kf7 27. Rd6 Rd8 28. Rxd8 Nxd8 29. f4 Ne6    

    30. g3 Ng7 31. g4 f5 32. h6 Ne6 33. gxf5 Nxf4 34. Kf2 Kf6 35. Kf3 Kxf5 36. a4 Ng6 37. a5 Kg5    

    30. g3 Ng7 31. g4 f5 32. h6 Ne6 33. gxf5 Nxf4 34. Kf2 Kf6 35. Kf3 Kxf5 36. a4 Ng6 37. a5 Kg5    

    38. Rb1 b6 39. Rxb6 Kxh6 40. Ra6 Kg5 41. Rxa7 h5 42. Rg7 {und Schwarz gibt auf} * [/ctpgn]

    38. Rb1 b6 39. Rxb6 Kxh6 40. Ra6 Kg5 41. Rxa7 h5 42. Rg7 {und Schwarz gibt auf} * [/ ctpgn]

    Examples

    示例

    The following examples show most of the features that are available.

    以下示例显示了大多数可用功能。

    First example with using a FEN string for the situation, and starting from there.

    第一个示例,该情况使用FEN字符串,并从此处开始。

    Comments are given in braces.

    大括号中给出了注释。

    [ctpgn id=fen fen="r5k1/ppqb2pp/2n1pr2/3pN1QP/2pP2B1/P1P5/2P2PP1/R3R1K1 w - - 0 23"]   

      [ctpgn id = fen fen =“ r5k1 / ppqb2pp / 2n1pr2 / 3pN1QP / 2pP2B1 / P1P5 / 2P2PP1 / R3R1K1 w--0 23”]   

    23. Nxd7 {verwundert schlug Schwarz den Springer} Qxd7 24. Qxf6 {Schwarz fällt aus allen Wolken!} gxf6   

    23. Nxd7 {verwundert schlug Schwarz den Springer} Qx​​d7 24. Qxf6 {Schwarzfälltaus allen Wolken!} gxf6   

    25. Bxe6+ Qxe6 26. Rxe6 {der Rest ist Sache der Technik} Kf7 27. Rd6 Rd8 28. Rxd8 Nxd8 29. f4 Ne6   

    25. Bxe6 + Qxe6 26. Rxe6 {技术} Kf7 27. Rd6 Rd8 28. Rxd8 Nxd8 29. f4 Ne6   

    30. g3 Ng7 31. g4 f5 32. h6 Ne6 33. gxf5 Nxf4 34. Kf2 Kf6 35. Kf3 Kxf5 36. a4 Ng6 37. a5 Kg5   

    30. g3 Ng7 31. g4 f5 32. h6 Ne6 33. gxf5 Nxf4 34. Kf2 Kf6 35. Kf3 Kxf5 36. a4 Ng6 37. a5 Kg5   

    38. Rb1 b6 39. Rxb6 Kxh6 40. Ra6 Kg5 41. Rxa7 h5 42. Rg7 {und Schwarz gibt auf} * [/ctpgn]

    38. Rb1 b6 39. Rxb6 Kxh6 40. Ra6 Kg5 41. Rxa7 h5 42. Rg7 {und Schwarz gibt auf} * [/ ctpgn]

    Now a whole game, with only some comments.

    现在整个游戏,只有一些评论。

    [ctpgn id=demo] 1. e4 c5 2. Nf3 d6 3. c3 g6 4. d4 Bg7 {richtig wäre cxd4} 5. dxc5 dxc5 $2 6. Qxd8+ Kxd8 7. Be3 b6

      [ctpgn id = demo] 1. e4 c5 2. Nf3 d6 3. c3 g6 4. d4 Bg7 {richtigwärecxd4} 5. dxc5 dxc5 $ 2 6. Qxd8 + Kxd8 7. Be3 b6

    8. Bc4 Be6 $4 9. Bxe6 fxe6 10. Ng5 Kc8 {Qualitäts- oder Firgurenverlust ist nicht zu vermeiden}

    8. Bc4 Be6 $ 4 9. Bxe6 fxe6 10. Ng5 Kc8 {Qualityäts-oderFirgurenverlust ist nicht zu vermeiden}

    11. Nf7 Nc6 12. Nd2 Nf6 13. Nxh8 Bxh8 14. f3 e5 $2 {sperrt seinen Läufer ein, der erst einmal nicht mehr mitspielt}

    11. Nf7 Nc6 12. Nd2 Nf6 13. Nxh8 Bxh8 14. f3 e5 $ 2 {sperrt seinenLäuferein,der ert einmal nicht mehr mitspielt}

    15. a4 Kb7 16. Ke2 Nh5 17. g3 Ng7 18. Rhd1 Rd8 19. Nc4 Ne6 20. Rxd8 Nexd8 21. Bf2 Kc7 22. a5 Nb7 23. axb6+ axb6

    15. a4 Kb7 16. Ke2 Nh5 17. g3 Ng7 18. Rhd1 Rd8 19. Nc4 Ne6 20. Rxd8 Nexd8 21. Bf2 Kc7 22. a5 Nb7 23. axb6 + axb6

    24. Ra8 Bf6 25. Ne3 e6 26. Rf8 Be7 27. Rh8 h5 28. Rh6 Bg5 29. Rxg6 Bxe3 {Schwarz gibt in hoffnungsloser Stellung auf} * [/ctpgn]

    24. Ra8 Bf6 25. Ne3 e6 26. Rf8 Be7 27. Rh8 h5 28. Rh6 Bg5 29. Rxg6 Bxe3 {Schwarz gibt in hoffnungsloser Stellung auf} * [/ ctpgn]

    Again the finish of a game with the result.

    以结果重新结束比赛。

    See the variations with their syntax, they are tricky (at the moment).

    看到带有语法的变体,它们现在很棘手。

    [ctpgn id=markus fen="4r1k1/1p1q3p/p5r1/3n4/3p4/bP1P3P/P1R2BP1/3Q1RK1 b - - 0 36"]

      [ctpgn id = markus fen =“ 4r1k1 ​​/ 1p1q3p / p5r1 / 3n4 / 3p4 / bP1P3P / P1R2BP1 / 3Q1RK1 b--0 36”]

    36. .. Ne3 ( 36. .. Qxh3 37. Bxd4 (37. Bg3 Rxg3 {typische Fritz-Züge}) 37. .. Bd6 38. Re1

    36. .. Ne3(36 .. Qxh3 37. Bxd4(37. Bg3 Rxg3 {typischeFritz-Züge})37 ... Bd6 38. Re1

    (38. g4 Rxg4+ {gewinnt schneller}) 38. .. Qh2+ 39. Kf1 Qh1+ 40. Bg1 Rf8+ 41. Qf3 Rxf3+ 42. gxf3 Qxg1+

    (38. g4 Rxg4 + {gewinnt schneller})38. .. Qh2 + 39. Kf1 Qh1 + 40. Bg1 Rf8 + 41. Qf3 Rxf3 + 42. gxf3 Qxg1 +

    43. Ke2 Re6+ 44. Kd2 Qxe1#) 37. Bxe3 Rxe3 38. Qh5 Rxh3 39. Qxg6+ {Verzweifelung} hxg6

    43. Ke2 Re6 + 44. Kd2 Qxe1#)37. Bxe3 Rxe3 38. Qh5 Rxh3 39. Qxg6 + {Verzweifelung} hxg6

    40. gxh3 Qxh3 41. Rcf2 Qxd3 42. Rf7 Qg3+ 43. Kh1 d3 (43. .. Qh3+ 44. Kg1 d3 {geht noch schneller})

    40. gxh3 Qxh3 41. Rcf2 Qxd3 42. Rf7 Qg3 + 43. Kh1 d3(43. .. Qh3 + 44. Kg1 d3 {geht noch schneller})

    44. R7f3 Qh4+ 45. Kg2 d2 46. Rd3 Qe4+ 47. Rff3 Qe2+ 48. Kg3 d1=Q {sollte reichen, Weiß gibt auf} 0-1 [/ctpgn]

    44. R7f3 Qh4 + 45. Kg2 d2 46. Rd3 Qe4 + 47. Rff3 Qe2 + 48. Kg3 d1 = Q {sollte reichen,Weißgibt auf} 0-1 [/ ctpgn]

安装步骤

This section describes how to install the plugin and get it working.

本节介绍如何安装插件并使其正常工作。

e.g.

例如

    1. Upload ChessTempoViewer.zip to the /wp-content/plugins/ directory, or install it directly from the admin plugins screen.
    2. ChessTempoViewer.zip 上载到 / wp-content / plugins / 目录,或直接从管理插件屏幕安装。

    3. Activate the plugin through the ‘Plugins’ menu in WordPress.
    4. 通过WordPress中的“插件”菜单激活插件。

    5. Place [ctpgn] [/ctpgn] in your page
    6. 在页面中放置 [ctpgn] [/ ctpgn]

    See the following examples for how to use it.

    有关如何使用它,请参见以下示例。

下载地址
https://downloads.wordpress.org/plugin/chesstempoviewer.0.9.6.zip
-EOF-

AI助手支持GPT4.0