Extension:ChessBrowser

The ChessBrowser extension creates an interactive chess game viewer from Portable Game Notation. The client side implementation is based on Kipod's pgnViewer gadget in use on the Hebrew Wikipedia.

Documentation subpages

 * /PGN schema
 * /Proposal front end
 * /Test games

Localisation
Like many other MediaWiki extensions, ChessBrowser's user interface legends and messages can be translated at translatewiki.

A particular issue to look out for when localising ChessBrowser are rank and file notation and legends. Many world languages use European numbers (1–8) for rank, and Latin letters (a–h) for file. In some languages, use of different numerals or letters is common. If your language uses different characters, translate the extension with optional messages enabled. No need to do it for languages where common chess notation is the default (1-8 / a-h). This affects algebraic notation display, as well as board display rank and file legends.

CSS overrides
Most of the board styling can be modified using CSS allowing both sitewide configuration (at MediaWiki:common.css) and by-user configuration (at Special:MyPage/common.css). The full range of classes can be found in the  file, but some common styling overrides are listed below:

The images used on interface buttons are defined in CSS. To change them, add a class styling like the following, but replace the url used below with the url of the image you wish to use.
 * Button images

is the button taking readers to the first move of the game. By default it is

is the button taking readers to the last move of the game. By default it is

is the button taking readers to the next move of the game. By default it is

is the button taking readers to the previous move of the game. By default it is

is the button which changes the perspective of the game. By default it is

is the button which start autoplay of the moves. By default it is

is the button which makes the autoplay advance each move more quickly. By default it is

is the button which makes the autoplay advance each move more slowly. By default it is

is the class denoting the play button when the autoplay is paused. By default it is

sets the styling for buttons when they are unavailable. By default it makes the buttons slightly transparent.

The images used for pieces are defined in CSS. To change them, add a class styling like the following, but replace the url used below with the url of the image you wish to use. By default it is
 * Piece icons

By default it is

By default it is

By default it is

By default it is

By default it is

By default it is

By default it is

By default it is

By default it is

By default it is

By default it is