Title: pgn-viewer-for-lichess
Author: mliebelt
Published: <strong>22 januari 2025</strong>
Last modified: 22 januari 2025

---

Plugins zoeken

Deze plugin **is niet getest met de laatste 3 grotere versies van WordPress**. Mogelijk
wordt het niet meer onderhouden of ondersteund. Ook kunnen er compatibiliteitsproblemen
ontstaan wanneer het wordt gebruikt met recentere versies van WordPress.

![](https://ps.w.org/pgn-viewer-for-lichess/assets/icon-128x128.png?rev=3226630)

# pgn-viewer-for-lichess

 Door [mliebelt](https://profiles.wordpress.org/mliebelt/)

[Download](https://downloads.wordpress.org/plugin/pgn-viewer-for-lichess.1.1.1.zip)

 * [Details](https://nl.wordpress.org/plugins/pgn-viewer-for-lichess/#description)
 * [Beoordelingen](https://nl.wordpress.org/plugins/pgn-viewer-for-lichess/#reviews)
 *  [Installatie](https://nl.wordpress.org/plugins/pgn-viewer-for-lichess/#installation)
 * [Ontwikkeling](https://nl.wordpress.org/plugins/pgn-viewer-for-lichess/#developers)

 [Ondersteuning](https://wordpress.org/support/plugin/pgn-viewer-for-lichess/)

## Beschrijving

Integration of lichess-pgn-viewer into WordPress.

### Using Shortcodes

To use a shortcode, do the following steps:

 1. Enter on a new element `/shortcode`.
 2. Enter inside the element then the shortcode including the content of the following
    sections.

### Basic View

    ```
     [lpgnv]1. e4 e5 2. ...[/lpgnv]
    ```

This is the lichess-pgn-viewer: allows to play through a game (including variations),
printing the comments, NAGs, …

### Using Block Level Element

**NOT IMLEMENTED YET**

You can use instead the following:

 1. Enter as block element `/PGN Viewer for Lichess`.
 2. You will then have a form with all options that are possible with the shortcode
    as well.

## Schermafbeeldingen

[⌊Example for use of lpgnv, theme=light, orientation=black⌉⌊Example for use of lpgnv,
theme=light, orientation=black⌉[

Example for use of lpgnv, theme=light, orientation=black

[⌊Example with default orientation and theme, with some complex position showing
variations.⌉⌊Example with default orientation and theme, with some complex position
showing variations.⌉[

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, ...⌉⌊Game of the month December 2024 from Lichess, directly
taken. Shows players, their rating, later times spent, ...⌉[

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.⌉⌊Block editor with some non-default
values set.⌉[

Block editor with some non-default values set.

[⌊Result of that block editor saved then.⌉⌊Result of that block editor saved then
.⌉[

Result of that block editor saved then.

## Blokken

Deze plugin heeft 1 blok.

 *   Lichess Pgn Viewer Block Editor

## Installatie

 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.

## FAQ

### 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: <string|boolean>, 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.

## Beoordelingen

Er zijn geen beoordelingen voor deze plugin.

## Bijdragers & ontwikkelaars

“pgn-viewer-for-lichess” is open source software. De volgende personen hebben bijgedragen
aan deze plugin.

Bijdragers

 *   [ mliebelt ](https://profiles.wordpress.org/mliebelt/)

[Vertaal “pgn-viewer-for-lichess” in je eigen taal.](https://translate.wordpress.org/projects/wp-plugins/pgn-viewer-for-lichess)

### Interesse in ontwikkeling?

[Bekijk de code](https://plugins.trac.wordpress.org/browser/pgn-viewer-for-lichess/),
haal de [SVN repository](https://plugins.svn.wordpress.org/pgn-viewer-for-lichess/)
op, of abonneer je op het [ontwikkellog](https://plugins.trac.wordpress.org/log/pgn-viewer-for-lichess/)
via [RSS](https://plugins.trac.wordpress.org/log/pgn-viewer-for-lichess/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

= 1.1.0

 * Added block editor with all possible attributes as widgets.

= 1.0.5

 * Added themes solarizeddark and solarizedlight.

= 1.0.4

 * Renamed the plugin to meet the requirements of WordPress.

= 1.0.3

 * Added (light) theme to the configuration, to allow users to have a more light
   visual representation.

= 1.0.2

 * Added some more attributes for ocnfiguration: fen, showclocks, showmoves, showcontrols,
   scrolltomove, keyboardtomove
 * Some documentation, more boardstyles: green, blue, wood, metal, newspaper.

= 1.0.1

 * Fixed problem with influences to PgnViewerJS-WP (my other chessground-based plugin)
 * Try to get PGN as good as possible.

= 1.0.0

 * First working version, with some flaws. Not published.

## Meta

 *  Versie **1.1.1**
 *  Laatst geüpdatet **2 jaar geleden**
 *  Actieve installaties **40+**
 *  WordPress versie ** 4.6 of nieuwer **
 *  Getest t/m **6.8.11**
 *  Taal
 * [English (US)](https://wordpress.org/plugins/pgn-viewer-for-lichess/)
 * Tags
 * [chess](https://nl.wordpress.org/plugins/tags/chess/)[lichess](https://nl.wordpress.org/plugins/tags/lichess/)
   [pgn](https://nl.wordpress.org/plugins/tags/pgn/)
 *  [Geavanceerde weergave](https://nl.wordpress.org/plugins/pgn-viewer-for-lichess/advanced/)

## Waarderingen

Er zijn nog geen beoordelingen ingediend.

[Je beoordeling](https://wordpress.org/support/plugin/pgn-viewer-for-lichess/reviews/#new-post)

[Bekijk alle beoordelingen](https://wordpress.org/support/plugin/pgn-viewer-for-lichess/reviews/)

## Bijdragers

 *   [ mliebelt ](https://profiles.wordpress.org/mliebelt/)

## Ondersteuning

Iets te melden? Hulp nodig?

 [Het supportforum bekijken](https://wordpress.org/support/plugin/pgn-viewer-for-lichess/)