Extension:Numbertext
<translate> This extension is currently not actively maintained!</translate> <translate> Although it may still work, any bug reports or feature requests will more than likely be ignored.</translate> <translate> If you are interested in taking on the task of developing and maintaining this extension, [[<tvar name=request>Special:MyLanguage/Gerrit/Privilege policy#Requesting Gerrit privileges</tvar>|you can request repository ownership]].</translate> <translate> As a courtesy, you may want to contact the author.</translate> <translate> You should also remove this template and list yourself as maintaining the extension in the page's <tvar name=extension>{{Extension }}</tvar> infobox.</translate> |
Numbertext Release status: unmaintained |
|
---|---|
Implementation | Parser function |
Description | Allows to transform numbers into words |
Author(s) | Pavel Astakhov (Pastakhovtalk) |
Latest version | 0.10.0 (2014-04-01) |
MediaWiki | |
PHP | 5.3+ |
Database changes | No |
License | LGPL/BSD dual-license |
Download | |
Example | test.foxway.org |
|
|
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 Numbertext extension if it is available at translatewiki.net |
The Numbertext extension allows to transform numbers into words. It based on the numbertext.org service and supports more than thirty languages.
Usage
{{#numbertext:number|language}}
{{#moneytext:number|currency|language}}
where:
- number - the number to transform into words
- currency - currency of money (sample: "USD", "EUR", "RUB", etc)
- language - language for transform (optional, sample "en", "en_US", "ru", "ru_RU", etc)
Default language sets by variable $wgNumbertext_defaultLang
, which by default equally $wgLanguageCode
(see Site language).
You can specify a different default language, or an empty string, and will use the language specified in the user preferences.
Installation
- <translate> [[<tvar name=2>Special:ExtensionDistributor/Numbertext</tvar>|Download]] and move the extracted <tvar name=name>
Numbertext
</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/Numbertext - <translate> Add the following code at the bottom of your <tvar name=1>LocalSettings.php </tvar> file:</translate>
require_once "$IP/extensions/Numbertext/Numbertext.php";
- 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>
File:OOjs UI icon information-progressive.svg | <translate> This extension is included in the following wiki farms/hosts and/or packages:</translate>
<translate> This is not an authoritative list.</translate> <translate> Some wiki farms/hosts and/or packages may contain this extension even if they are not listed here.</translate> <translate> Always check with your wiki farms/hosts or bundle to confirm.</translate> |
- Pages with script errors
- Pages with broken file links
- Unmaintained extensions
- Extensions without an image
- Parser function extensions
- Extensions without a compatibility policy
- Extensions without MediaWiki version
- Extensions with unknown license
- Extensions in Wikimedia version control
- ParserFirstCallInit extensions
- All extensions
- Extensions not in ExtensionJson
- Extensions not using extension registration