Шаблон:Spellnum/док

Iz Vojne Enciklopedije
< Шаблон:SpellnumОво је најновија верзија ове странице; нема одобрених измена.
Пређи на навигацију Пређи на претрагу

Lua error: Cannot create process: proc_open(/dev/null): failed to open stream: Operation not permitted Lua error: Cannot create process: proc_open(/dev/null): failed to open stream: Operation not permitted

The Template:Spellnum spells the number in parameter 1 as the equivalent words in English. It shows how to say a specific number, such as: 2,024 – "two thousand twenty-four". The largest number supported is over 20 trillion (20E12), with up to 5 decimal digits: 20,999,999,999,999.12345. However, commas are not allowed.

Usage:  {{spellnum|345}}Lua error: Cannot create process: proc_open(/dev/null): failed to open stream: Operation not permitted→ three hundred forty-five
{{spellnum|345|sp=en}} → three hundred and forty-five   (has "and")
{{spellnum|0.64}}   → zero point six four
{{spellnum|12.015|case=u}} → Twelve point zero one five
{{spellnum|946000121}} → Lua error: Cannot create process: proc_open(/dev/null): failed to open stream: Operation not permitted
{{spellnum|33+1/2}}     → Lua error: Cannot create process: proc_open(/dev/null): failed to open stream: Operation not permitted
{{spellnum|2450|adj=on}}   → Lua error: Cannot create process: proc_open(/dev/null): failed to open stream: Operation not permitted
{{spellnum|876000200000}}   → Lua error: Cannot create process: proc_open(/dev/null): failed to open stream: Operation not permitted
{{spellnum|876E9}}   → Lua error: Cannot create process: proc_open(/dev/null): failed to open stream: Operation not permitted
{{spellnum|5E9}}   → Lua error: Cannot create process: proc_open(/dev/null): failed to open stream: Operation not permitted
{{spellnum|1.32E13}}   → Lua error: Cannot create process: proc_open(/dev/null): failed to open stream: Operation not permitted

Optional parameters are:

case=U (or: case=L) - show as upper-case capital or lower-case.
sp=en (or: sp=us)   - show British variant spellings with "and".
adj=on   - show adjective form, with hyphens between words.