Open main menu

Extension:Numbertext/da

This page is a translated version of the page Extension:Numbertext and the translation is 8% complete.
Other languages:
Deutsch • ‎English • ‎dansk • ‎español • ‎português do Brasil • ‎中文 • ‎日本語
MediaWiki extensions manual
OOjs UI icon advanced.svg
Numbertext
Release status: stabil
Implementation Parser function
Beskrivelse Allows to transform numbers into words
Forfatter(e) Pavel Astakhov (Pastakhovtalk)
Latest version 0.10.0 (2014-04-01)
PHP 5.3+
Database changes Nej
Licens LGPL/BSD dual-license
Download
Eksempel test.foxway.org

  • $wgNumbertext_defaultLang
  • $wgNumbertextLang
Translate the Numbertext extension if it is available at translatewiki.net
Check usage and version matrix.

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}}

hvor:

  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 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 your extensions/ folder.
  • Add the following code at the bottom of your LocalSettings.php:
    require_once "$IP/extensions/Numbertext/Numbertext.php";
    
  •   Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.