{"id":220104,"date":"2025-01-22T07:16:58","date_gmt":"2025-01-22T07:16:58","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/lichess-viewer-wp\/"},"modified":"2025-01-22T20:10:17","modified_gmt":"2025-01-22T20:10:17","slug":"pgn-viewer-for-lichess","status":"publish","type":"plugin","link":"https:\/\/pcd.wordpress.org\/plugins\/pgn-viewer-for-lichess\/","author":13775538,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.1.1","stable_tag":"1.1.1","tested":"6.8.5","requires":"4.6","requires_php":"","requires_plugins":null,"header_name":"pgn-viewer-for-lichess","header_author":"mliebelt","header_description":"Shortcode to embed Lichess PGN Viewer into WordPress","assets_banners_color":"","last_updated":"2025-01-22 20:10:17","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"","header_author_uri":"","rating":0,"author_block_rating":0,"active_installs":40,"downloads":857,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["installation","faq","changelog","description"],"tags":{"1.0.4":{"tag":"1.0.4","author":"mliebelt","date":"2025-01-22 07:16:30"},"1.0.5":{"tag":"1.0.5","author":"mliebelt","date":"2025-01-22 07:24:23"},"1.1.0":{"tag":"1.1.0","author":"mliebelt","date":"2025-01-22 19:59:55"},"1.1.1":{"tag":"1.1.1","author":"mliebelt","date":"2025-01-22 20:10:17"}},"upgrade_notice":[],"ratings":[],"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":3226630,"resolution":"128x128","location":"assets","locale":""}},"assets_banners":[],"assets_blueprints":{},"all_blocks":{"lichess-pgn-viewer\/block-editor":{"name":"lichess-pgn-viewer\/block-editor","title":"Lichess Pgn Viewer Block Editor"}},"tagged_versions":["1.0.4","1.0.5","1.1.0","1.1.1"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":3227073,"resolution":"1","location":"assets","locale":""},"screenshot-2.png":{"filename":"screenshot-2.png","revision":3227073,"resolution":"2","location":"assets","locale":""},"screenshot-3.png":{"filename":"screenshot-3.png","revision":3227073,"resolution":"3","location":"assets","locale":""},"screenshot-4.png":{"filename":"screenshot-4.png","revision":3227073,"resolution":"4","location":"assets","locale":""},"screenshot-5.png":{"filename":"screenshot-5.png","revision":3227073,"resolution":"5","location":"assets","locale":""}},"screenshots":{"1":"Example for use of lpgnv, theme=light, orientation=black","2":"Example with default orientation and theme, with some complex position showing variations.","3":"Game of the month December 2024 from Lichess, directly taken. Shows players, their rating, later times spent, ...","4":"Block editor with some non-default values set.","5":"Result of that block editor saved then."},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[17259,237263,17263],"plugin_category":[],"plugin_contributors":[91928],"plugin_business_model":[],"class_list":["post-220104","plugin","type-plugin","status-publish","hentry","plugin_tags-chess","plugin_tags-lichess","plugin_tags-pgn","plugin_contributors-mliebelt","plugin_committers-mliebelt"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/pgn-viewer-for-lichess\/assets\/icon-128x128.png?rev=3226630","icon_2x":false,"generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/pgn-viewer-for-lichess\/assets\/screenshot-1.png?rev=3227073","caption":"Example for use of lpgnv, theme=light, orientation=black"},{"src":"https:\/\/ps.w.org\/pgn-viewer-for-lichess\/assets\/screenshot-2.png?rev=3227073","caption":"Example with default orientation and theme, with some complex position showing variations."},{"src":"https:\/\/ps.w.org\/pgn-viewer-for-lichess\/assets\/screenshot-3.png?rev=3227073","caption":"Game of the month December 2024 from Lichess, directly taken. Shows players, their rating, later times spent, ..."},{"src":"https:\/\/ps.w.org\/pgn-viewer-for-lichess\/assets\/screenshot-4.png?rev=3227073","caption":"Block editor with some non-default values set."},{"src":"https:\/\/ps.w.org\/pgn-viewer-for-lichess\/assets\/screenshot-5.png?rev=3227073","caption":"Result of that block editor saved then."}],"raw_content":"<!--section=installation-->\n<ol>\n<li>Upload the plugin files to the <code>\/wp-content\/plugins\/plugin-name<\/code> directory, or install the plugin through the WordPress plugins screen directly.<\/li>\n<li>Activate the plugin through the 'Plugins' screen in WordPress.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id='what%20parameters%20are%20available%3F'><h3>What parameters are available?<\/h3><\/dt>\n<dd><p>The parameters the viewer understands are:<\/p>\n\n<ul>\n<li>The content of the shortcode is the PGN itself. The viewer reads a lot from tags included there.<\/li>\n<li>Additional attributes for the shortcode are:\n\n<ul>\n<li>fen: , default undefined.<\/li>\n<li>boardstyle: , default 'green', available 'blue', 'wood'.<\/li>\n<li>orientation: , no default, then taken from tag Orientation. Possible values 'white' or 'black'.<\/li>\n<li>showclocks: , default true.<\/li>\n<li>showmoves: &lt;string|boolean&gt;, default 'auto', others 'right', 'bottom', false. bottom is the same as false, and does not show the moves.<\/li>\n<li>showcontrols: , default true.<\/li>\n<li>scrolltomove: , default true.<\/li>\n<li>keyboardToMove: , default true.<\/li>\n<li>theme: , default dark, others are 'light', 'solarizeddark' and 'solarizedlight'.<\/li>\n<li>initialply: , default 0, shows the position after the <code>initialPly<\/code> move. Only main lines allowed.<\/li>\n<\/ul><\/li>\n<\/ul>\n\n<p>The following code shows how to use some of the parameters in a page:<\/p>\n\n<pre><code>[lpgnv orientation=black theme=light]1. e4 e5 2. Nf3 Nc6[\/lpgnv]\n<\/code><\/pre><\/dd>\n<dt id='where%20can%20i%20find%20more%20information%20about%20the%20implementation%3F'><h3>Where can I find more information about the implementation?<\/h3><\/dt>\n<dd><p>Have a look at the GitHub repository https:\/\/github.com\/mliebelt\/pgn-viewer-for-lichess and look there at the file <code>package.json<\/code> to get hints how to develop the plugin then.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<p>= 1.1.0<\/p>\n\n<ul>\n<li>Added block editor with all possible attributes as widgets.<\/li>\n<\/ul>\n\n<p>= 1.0.5<\/p>\n\n<ul>\n<li>Added themes solarizeddark and solarizedlight.<\/li>\n<\/ul>\n\n<p>= 1.0.4<\/p>\n\n<ul>\n<li>Renamed the plugin to meet the requirements of WordPress.<\/li>\n<\/ul>\n\n<p>= 1.0.3<\/p>\n\n<ul>\n<li>Added (light) theme to the configuration, to allow users to have a more light visual representation.<\/li>\n<\/ul>\n\n<p>= 1.0.2<\/p>\n\n<ul>\n<li>Added some more attributes for ocnfiguration: fen, showclocks, showmoves, showcontrols, scrolltomove, keyboardtomove<\/li>\n<li>Some documentation, more boardstyles: green, blue, wood, metal, newspaper.<\/li>\n<\/ul>\n\n<p>= 1.0.1<\/p>\n\n<ul>\n<li>Fixed problem with influences to PgnViewerJS-WP (my other chessground-based plugin)<\/li>\n<li>Try to get PGN as good as possible.<\/li>\n<\/ul>\n\n<p>= 1.0.0<\/p>\n\n<ul>\n<li>First working version, with some flaws. Not published.<\/li>\n<\/ul>\n\n<!--section=description-->\n<p>Integration of lichess-pgn-viewer into WordPress.<\/p>\n\n<h3>Using Shortcodes<\/h3>\n\n<p>To use a shortcode, do the following steps:<\/p>\n\n<ol>\n<li>Enter on a new element <code>\/shortcode<\/code>.<\/li>\n<li>Enter inside the element then the shortcode including the content of the following sections.<\/li>\n<\/ol>\n\n<h3>Basic View<\/h3>\n\n<pre><code> [lpgnv]1. e4 e5 2. ...[\/lpgnv]\n<\/code><\/pre>\n\n<p>This is the lichess-pgn-viewer: allows to play through a game (including variations), printing the comments, NAGs, ...<\/p>\n\n<h3>Using Block Level Element<\/h3>\n\n<p><strong>NOT IMLEMENTED YET<\/strong><\/p>\n\n<p>You can use instead the following:<\/p>\n\n<ol>\n<li>Enter as block element <code>\/PGN Viewer for Lichess<\/code>.<\/li>\n<li>You will then have a form with all options that are possible with the shortcode as well.<\/li>\n<\/ol>","raw_excerpt":"Integration of lichess-pgn-viewer into WordPress.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/220104","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=220104"}],"author":[{"embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/mliebelt"}],"wp:attachment":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=220104"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=220104"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=220104"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=220104"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=220104"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=220104"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}