Extension:MontserratFont
From Linux Web Expert
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 | Lua error in Module:Extension at line 172: bad argument #1 to 'inNamespace' (unrecognized namespace name 'skin'). |
Public wikis using | Lua error in Module:Extension at line 172: bad argument #1 to 'inNamespace' (unrecognized namespace name 'skin'). |
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
- <translate> [[<tvar name=2>Special:ExtensionDistributor/MontserratFont</tvar>|Download]] and move the extracted <tvar name=name>
MontserratFont
</tvar> folder to your <tvar name=ext>extensions/
</tvar> directory.</translate>
<translate> Developers and code contributors should install the extension [[<tvar name=git>Special:MyLanguage/Download from Git</tvar>|from Git]] instead, using:</translate>cd extensions/
git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/MontserratFont - <translate> Add the following code at the bottom of your <tvar name=1>LocalSettings.php </tvar> file:</translate>
wfLoadExtension( 'MontserratFont' );
- File:OOjs UI icon check-constructive.svg <translate> Done</translate> – <translate> Navigate to <tvar name=special>Special:Version</tvar> on your wiki to verify that the extension is successfully installed.</translate>
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:
Categories:
- Pages with script errors
- Pages with broken file links
- Beta status extensions
- Extensions without an image
- Personalization extensions
- Extensions without a compatibility policy
- Extensions with manual MediaWiki version
- Extensions with unknown license
- Extensions in Wikimedia version control
- BeforePageDisplay extensions
- All extensions
- Font extension