

Note however that this method is quite limited since it can only change the styles attached to the root element of generated chessboards. You can specify inline style to be applied to a single chessboard using the style attribute. Each style element that can be changed is clearly commented in the file. You can adapt the definitions of the custom stylesheet either by editing this file directly, or by overriding the definitions with another external stylesheet or with an internal stylesheet. The custom stylesheet however can be freely edited to for instance change the size of the font, the color of squares, etc. Doing so may break the rendering of chessboards. The base stylesheet contains definition that shouldn't be changed or overridden. This file is split in two parts: a base stylesheet and a custom stylesheet. The default styles used for color-mode and B&W-mode output are defined in the CSS file FenTT.css.
Mediawiki reference code#
This chess diagram is rendered by a combination of HTML code and CSS styling, using the Chess Merida Unicode as web font. For instance, the wiki text rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR. Once the FenTT extension is installed, you can produce chess diagrams using the tag.

For MediaWiki 1.24 or earlier, add the following code instead:.For MediaWiki 1.25+, add the following code at the bottom of your LocalSettings.php:.At least the following files must be copied:
Mediawiki reference download#

The latest version of FenTT is available on GitHub or here. Black&white board can be copy-pasted in external applications.Default mode specification / inline mode specification.Color mode or printer-friendly black&white mode.Truetype font based rendering, using either local or web font.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. an office application.įenTT is in fact a PHP implementation of HTMLTTChess, a javascript program that provides similar functionality. Diagrams rendered in B&W mode can also be copy-pasted into e.g. Chess game diagrams can be rendered in both color or B&W mode, and figurine movements or square of interests can be indicated as well. 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.
