ProfessionalWiki / FontAwesome

Allows to insert Font Awesome Free icons in page
https://www.mediawiki.org/wiki/Extension:FontAwesome
GNU General Public License v3.0
4 stars 2 forks source link
extension fontawesome fontawesome5 icons mediawiki parser-functions

FontAwesome

GitHub Workflow Status Latest Stable Version Packagist download count

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

Currently Font Awesome Free, version 6.2.1 is included.

Requirements

Installation

Using Composer

Using Composer is the recommended way to install this extension.

Run the following commands from the MediaWiki installation directory:

  1. COMPOSER=composer.local.json php composer.phar require --no-update mediawiki/font-awesome ^2.0
  2. php composer.phar update --no-dev mediawiki/font-awesome

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 extensions directory of your MediaWiki installation
  3. Rename the folder FontAwesome-... to FontAwesome

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

Activation

Add the following line to your LocalSettings.php:

wfLoadExtension( 'FontAwesome' );

Configuration

There are two render modes available for FontAwesome icons:

The render mode can be selected by setting the variable $wgFaRenderMode in LocalSettings.php. Allowed values are: webfonts (default) and javascript.

Example: $wgFaRenderMode = 'javascript';

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

Usage

This extension defines three parser functions:

Example: {{#fab:wikipedia-w}} will insert the Wikipedia-W

For valid icon names see https://fontawesome.com/v6/search.

Professional Support

The FontAwesome extension is maintained by Professional Wiki. You can contract us to help you with installation or customization of FontAwesome. We also do development work.

License

GNU General Public License, Version 3 or later.

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

Release notes

Version 2.0.0

Released on January 27, 2023.

Version 1.1.0

Released on January 25, 2023.

Version 1.0.0

Released on October 20, 2019.