Jump to content
MediaWiki

Extension:Numbertext

From mediawiki.org

This extension is currently not actively maintained! Although it may still work, any bug reports or feature requests will more than likely be ignored.

If you are interested in taking on the task of developing and maintaining this extension, you can request repository ownership. As a courtesy, you may want to contact the author. You should also remove this template and list yourself as maintaining the extension in the page's {{Extension }} infobox.

MediaWiki extensions manual
Numbertext
Release status: unmaintained
Implementation Parser function
Description Allows to transform numbers into words
Author(s) Pavel Astakhov (Pastakhov talk )
Latest version 0.10.0 (2014年04月01日)
MediaWiki
PHP 5.3+
Database changes No
  • $wgNumbertext_defaultLang
  • $wgNumbertextLang
Download
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

[edit ]
  • {{#numbertext:number|language}}
  • {{#moneytext:number|currency|language}}

where:

  1. number - the number to transform into words
  2. currency - currency of money (sample: "USD", "EUR", "RUB", etc)
  3. language - language for transform (optional, sample "en", "en_US", "ru", "ru_RU", etc)

Default language can be set with $wgNumbertext_defaultLang, which defaults to $wgLanguageCode (see Site language). If set to an empty string, it will use the language specified in the user preferences.

Installation

[edit ]
  • Download and move the extracted Numbertext folder to your extensions/ directory.
    Developers and code contributors should install the extension from Git instead, using:
    cdextensions/
    gitclonehttps://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.
This extension is included in the following wiki farms/hosts and/or packages:

AltStyle によって変換されたページ (->オリジナル) /