sitehook.blogg.se

Mediawiki reference
Mediawiki reference







mediawiki reference
  1. Mediawiki reference code#
  2. Mediawiki reference download#

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.

  • Define new styles based on the class of the containing parent.
  • Pass class style information using the class attribute.
  • Pass inline style information using the style attribute.
  • There are basically four ways to customize the style of chessboards generated by FenTT: Here we select black&white mode with bigger fonts as the default style. To render such position, you must only enclose the first part of the notation in the tag, and discard the parts corresponding to active color, castling, etc. For instance, the FEN of the starting position is given by rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1 In this case however, you must not specify the complete FEN, but only the first part corresponding to the position of pieces on Moreover it is supported by almost all mainstream chess game softwares, and hence game positions can be easily imported in FenTT. FEN is a simple and intuitive notation that is easy to read even prior rendering. To render a specific chessboard position, you simply have to write it in Forsyth-Edwards Notation (FEN) notation, and enclose the result in a tag. position-in-FEN - the (modified) Forsyth-Edwards Notation The possible values for each attribute and their effects are given further on this page. Output of the renderer can be customized by specifying attributes to the tag.

    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.

  • Done - Navigate to Special:Version on your wiki to verify that the extension is successfully installed.
  • Require_once "$IP/extensions/FenTT/FenTT.php"

    mediawiki reference

    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#

  • Download and place the file(s) in a directory called FenTT/ in your.
  • mediawiki reference

    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.









    Mediawiki reference