787 bytes added
, 06:05, 16 July 2021
{{tl|Module rating |<!-- Values: pre-alpha • alpha • beta • release • protected -- If a rating not needed/relevant, delete this template call -->}}
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
== Usage ==
Implements [[:Template:Spellnum per MOS]].
<code><nowiki>{{</nowiki>#invoke:{{BASEPAGENAME}}|main|''number to format''|''if second arg equals 1, prefer numerals''}}</code>
For use by other Lua modules:
<syntaxhighlight lang="lua">
local spellnum = require('Module:Spellnum per MOS').spellnum
spellnum{ 11 } -- returns 'eleven'
</syntaxhighlight>
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | |
<!-- Categories below this line, please; interwikis at Wikidata -->
}}</includeonly>