Extension:MontserratFont
![]() Release status: betaCategory:Beta status extensions |
|
---|---|
Implementation | MyWikiCategory:Personalization extensions |
Description | Makes the webfont Montserrat available for in-line styles or site CSS |
Author(s) | James Hare (Harej (WMF)talk) |
Latest version | 1.0.0 (2018-05-10) |
MediaWiki | 1.29+Category:Extensions with manual MediaWiki version |
PHP | 5.5+ |
Database changes | No |
License | GPL-2.0-or-later AND OFL-1.1 |
Download | Category:Extensions in Wikimedia version control |
Quarterly downloads | 0 |
Translate the MontserratFont extension if it is available at translatewiki.net |
The MontserratFont extension makes the open source font Montserrat available on a given wiki as a web font.
Installation
- Download and move the extracted
MontserratFont
folder to yourextensions/
directory.
Developers and code contributors should install the extension from Git instead, using:cd extensions/
git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/MontserratFont - Add the following code at the bottom of your LocalSettings.php file:
wfLoadExtension( 'MontserratFont' );
Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.
Usage
The extension does not automatically change the font on the wiki. Rather, it makes the font available as an option for in-line styles or site CSS.
Inline CSS
- Example code
This is an example of formatting the <span style="font-family: Montserrat; font-weight: 600; font-size: 110% ; letter-spacing: -0.02em;">MediaWiki</span> logo, roughly matching MediaWiki's wordmark guidelines (other than the lowered dots above the letter "i").
- Example output
This is an example of formatting the MediaWiki logo, roughly matching MediaWiki's wordmark guidelines (other than the lowered dots above the letter "i").
Note that this site apparently does not have this extension installed, or else the word "MediaWiki" would be displayed in the Montserrat font.
Site CSS
TODO Example:
Category:Font extension
Category:All extensions
Category:BeforePageDisplay extensions
Category:Beta status extensions
Category:Extensions in Wikimedia version control
Category:Extensions with manual MediaWiki version
Category:Extensions with unknown license
Category:Extensions without a compatibility policy
Category:Extensions without an image
Category:Font extension
Category:Personalization extensions