Extension:FenTT

FenTT is a MediaWiki extension written in PHP that allows the rendering of nice chessboards in HTML at any size or color, by using TrueType fonts and without the need of extra images. Chess game diagrams can be rendered in both color or B&W mode, and piece movements or square of interests can be indicated as well. Diagrams rendered in B&W mode can also be copy-pasted into e.g. an office application.

FenTT is in fact a PHP implementation of HTMLTTChess, a javascript program that provides similar functionality. Besides being written in a different language, the major difference with HTMLTTChess is that the markup text that produces the chess diagrams is generated by the server, and hence the extension works even if the client has disabled javascript support.

Supported features
Here a summary of supported features:
 * Notation:
 * Forsyth-Edwards compatible notation.
 * Extra symbols for eg. piece movement (. or x).
 * Highlighting of squares of interest.


 * Rendering:
 * Truetype font based rendering, using either local or web font.
 * Color mode or printer-friendly black&white mode.
 * Default mode specification / inline mode specification.


 * Size:
 * Fixed size.
 * Variable size (eg. multiple of browser default font size).


 * Style:
 * Stylesheet-based.
 * Default style.
 * Inline style.
 * Class style.


 * Export:
 * Black&white board can be copy-pasted in external applications.

Usage
Usage instructions are contained in the package. To view it, make doc
 * Download the package.
 * Run the command
 * Open file doc/reference.html in a browser.

Documentation is also available on the extension homepage.

Download
FenTT is available on GitHub.

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

Compatibility
Extension has been tested on
 * MediaWiki 1.27.4
 * MediaWiki 1.22.1

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

License
The FenTT MediaWiki extension is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

See file COPYING for more details.