Jump to content

Module:Spellnum per MOS/doc

From Wikipedia, the free encyclopedia
This is the current revision of this page, as edited by Swpb (talk | contribs) at 16:41, 11 June 2021. The present address (URL) is a permanent link to this version.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

{{Module rating }}

Usage

[edit]

Implements Template:Spellnum per MOS.

{{#invoke:Spellnum per MOS|main|number to format|if second arg equals 1, prefer numerals}}

For use by other Lua modules:

local spellnum = require('Module:Spellnum per MOS').spellnum
spellnum{ 11 } -- returns 'eleven'