Linux 软件免费装

pgn-viewer-for-lichess

开发者 mliebelt
更新时间 2025年1月23日 04:10
PHP版本: 4.6 及以上
WordPress版本: 6.8
版权: GPL-3.0-or-later
版权网址: 版权信息

标签

chess pgn lichess

下载

1.0.4 1.0.5 1.1.0 1.1.1

详情介绍:

安装:

  1. Upload the plugin files to the /wp-content/plugins/plugin-name directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the 'Plugins' screen in WordPress.

屏幕截图:

  • Example with default orientation and theme, with some complex position showing variations.
  • Game of the month December 2024 from Lichess, directly taken. Shows players, their rating, later times spent, ...
  • Block editor with some non-default values set.
  • Result of that block editor saved then.

常见问题:

What parameters are available?

The parameters the viewer understands are:

  • The content of the shortcode is the PGN itself. The viewer reads a lot from tags included there.
  • Additional attributes for the shortcode are:
  • fen: , default undefined.
  • boardstyle: , default 'green', available 'blue', 'wood'.
  • orientation: , no default, then taken from tag Orientation. Possible values 'white' or 'black'.
  • showclocks: , default true.
  • showmoves: , default 'auto', others 'right', 'bottom', false. bottom is the same as false, and does not show the moves.
  • showcontrols: , default true.
  • scrolltomove: , default true.
  • keyboardToMove: , default true.
  • theme: , default dark, others are 'light', 'solarizeddark' and 'solarizedlight'.
  • initialply: , default 0, shows the position after the initialPly move. Only main lines allowed.
The following code shows how to use some of the parameters in a page: [lpgnv orientation=black theme=light]1. e4 e5 2. Nf3 Nc6[/lpgnv]

Where can I find more information about the implementation?

Have a look at the GitHub repository https://github.com/mliebelt/pgn-viewer-for-lichess and look there at the file package.json to get hints how to develop the plugin then.

更新日志:

= 1.1.0 = 1.0.5 = 1.0.4 = 1.0.3 = 1.0.2 = 1.0.1 = 1.0.0