Extension:PgnJS

PgnJS is a MediaWiki extension that embeds chess games (boards and moves) in a wiki page. Chess games are simply given in PGN format in a  tag and displayed thanks to the powerful javascript engine PgnViewerJS. In fact most of the functionality is provided by PgnViewerJS. This extension only implements the parsing of the  tag.

Usage, features and download
Please visit the GitHub page.

Examples
Check PgnJS page on WikiTest. You can see the extension at work and try it by yourself.

Installation
The simplest is to clone the git repository in folder  of your wiki and run the   target (for MW 1.25 or above) or   (for MW 1.24 or older):

Don't forget the  option since the extension uses git submodules.

/  will delete all files that are not necessary for the extension to run, and add the following line at the end of  :

✅! Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

Compatibility
Extension uses the ResourceLoader, so it requires at least MediaWiki 1.17.

The extension has been tested on
 * MediaWiki 1.27.4
 * MediaWiki 1.22.1