Extension:Numbertext

Category:Unmaintained extensions#Numbertext Category:Extensions without an imageCategory:Extensions without a compatibility policyCategory:Extensions with unknown license
MediaWiki extensions manual
Numbertext
Release status: unmaintainedCategory:Unmaintained extensions
Implementation Parser function Category:Parser function extensions
Description Allows to transform numbers into words
Author(s) Pavel Astakhov (Pastakhovtalk)
Latest version 0.10.0 (2014-04-01)
MediaWiki Category:Extensions without MediaWiki version
PHP 5.3+
Database changes No
License LGPL/BSD dual-license
Download Category:Extensions in Wikimedia version control
Example test.foxway.org
  • $wgNumbertext_defaultLang
  • $wgNumbertextLang
Quarterly downloads 8 (Ranked 108th)
Translate the Numbertext extension if it is available at translatewiki.net
Category:All extensionsCategory:Extensions not in ExtensionJson

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:

  1. number - the number to transform into words
  1. currency - currency of money (sample: "USD", "EUR", "RUB", etc)
  1. 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 move the extracted Numbertext folder to your extensions/ directory.
    Developers and code contributors should install the extension from Git instead, using:cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/Numbertext
  • Add the following code at the bottom of your LocalSettings.php file:
    require_once "$IP/extensions/Numbertext/Numbertext.php";
    
  • Yes Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.Category:Extensions not using extension registration
Category:All extensions Category:Extensions in Wikimedia version control Category:Extensions included in Fandom Category:Extensions not in ExtensionJson Category:Extensions not using extension registration Category:Extensions with unknown license Category:Extensions without MediaWiki version Category:Extensions without a compatibility policy Category:Extensions without an image Category:ParserFirstCallInit extensions Category:Parser function extensions Category:Unmaintained extensions