Estensione:Numbertext

From MediaWiki.org
Jump to navigation Jump to search
This page is a translated version of the page Extension:Numbertext and the translation is 25% complete.

Other languages:
Deutsch • ‎English • ‎català • ‎dansk • ‎español • ‎italiano • ‎polski • ‎português • ‎português do Brasil • ‎sicilianu • ‎suomi • ‎中文 • ‎日本語
Manuale sulle Estensioni MediaWiki
Crystal Clear action run.svg
Numbertext
Stato della release: stabile
Implementazione Parser function
Descrizione Allows to transform numbers into words
Autore(i) Pavel Astakhov (Pastakhovtalk)
Versione 0.10.0 (2014-04-01)
PHP 5.3+
Cambi della base di dati No
Licenza LGPL/BSD dual-license
Scaricare
Esempio test.foxway.org
Parametri

  • $wgNumbertext_defaultLang
  • $wgNumbertextLang
Hook usati
ParserFirstCallInit
Traducete l'estensione Numbertext se è disponibile su translatewiki.net
Verificare uso e versione della matrice.

The Numbertext extension allows to transform numbers into words. It based on the numbertext.org service and supports more than thirty languages.

Uso

  • {{#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 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.

Installazione

  • 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";
    
  • Yes Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.