Jump to content

Module:NumberSpell/doc

From pool
Revision as of 20:52, 24 October 2020 by Caleb Cooper (talk | contribs) (Created page with "{{Module rating|protected}} {{Commons Import}} This module takes a number and returns the equivalent English word. For example, "2" becomes "two" and "79" becomes "seventy-nin...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This is the documentation page for Module:NumberSpell

This module takes a number and returns the equivalent English word. For example, "2" becomes "two" and "79" becomes "seventy-nine". Numbers must be integers between 0 and 100.

Usage

{{#invoke:NumberSpell|main|number}}

Examples

  • {{#invoke:NumberSpell|main|8}} → eight
  • {{#invoke:NumberSpell|main|56}} → fifty-six
  • {{#invoke:NumberSpell|main|101}}Error: input must be an integer between 0 and 100