Jump to content

Module:Spellnum per MOS/doc

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by GKFX (talk | contribs) at 10:45, 1 April 2021 (Usage: Give usage from Lua). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

{{Module rating }}

Usage

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'

Note that the "zero" option defaults to blank which is probably not what you want.