Extension:MontserratFont
Appearance
MontserratFont Release status: beta |
|
---|---|
Implementation | MyWiki |
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+ |
PHP | 5.5+ |
Database changes | No |
License | GPL-2.0-or-later AND OFL-1.1 |
Download | |
Quarterly downloads | 1 (Ranked 135th) |
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
[edit]- 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
[edit]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
[edit]- 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
[edit]TODO Example: