Extension:FontAwesome

The FontAwesome extension provides parser functions to insert Font Awesome Free icons into the wiki text.

Currently Font Awesome Free, version 5.11.2 is included.

Requirements

 * PHP 7.0 or later
 * MediaWiki 1.31 or later

Using Composer
Using Composer is the recommended way to install this extension.

Run the following commands from the MediaWiki installation directory:



To update the extension run the last command again.

Using a download from GitHub

 * 1) Download a tar ball or zip file from GitHub
 * 2) Extract it into the   directory of your MediaWiki installation
 * 3) Rename the folder   to

To update the extension delete the  folder completely and re-install.

Activation
Add the following line to your "LocalSettings.php" file:

Configuration
There are two render modes available for FontAwesome icons:


 * Web Fonts with CSS: This implementation uses web fonts as the file format and relies on the browser to render icons as it would any custom font.
 * SVG with JavaScript: This implementation encodes icon data and the mechanism to display them in the browser in JavaScript code that the browser executes.

The render mode can be selected by setting the configuration parameter  in "LocalSettings.php". Allowed values are:  (default) and.

Example:

For a discussion of the advantages and drawbacks of the render modes see Performance &amp; Font Awesome on fontawesome.com.

Usage
This extension defines three parser functions:


 * to insert an icon from the FontAwesome Regular font
 * to insert an icon from the FontAwesome Solid font
 * to insert an icon from the FontAwesome Brands font

Example:  will insert the "Wikipedia-W" icon

For valid icon names see https://fontawesome.com/icons.

License
GNU General Public License 3.0 or later

The Font Awesome Free package is included in the extension. See its license file for details.