![]() 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 | Download extension Git [?]: |
Example | test.foxway.org |
Parameters
|
|
Hooks used
|
|
Quarterly downloads | 7 (Ranked 163rd) |
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
- Download and place the file(s) in a directory called
Numbertext
in yourextensions/
folder. - Add the following code at the bottom of your LocalSettings.php
require_once "$IP/extensions/Numbertext/Numbertext.php";
file: Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.
![]() | This extension is included in the following wiki farms/hosts and/or packages:
|
This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.