Template:Dec2Wcar

DESCRIPTION
Allows for conversion of decimal numbers to numeric ordinals

Will work for all numbers Punctuation insensitive.

CODING
{{#ifexpr:floor({{#var:Input}}/10000)>=1|Number too big.|{{#vardefine:Cardinal|{{#switch:{{#expr:floor({{#var:Input}}/1000)}}|0=|#default={{#var:Base{{{###}}}}} thousand}}{{#switch:{{#expr:floor({{#var:Input}}/100MOD10)}}|0=|#default={{#var:Base{{{###}}}}} hundred}}{{#switch:{{#expr:floor({{#var:Input}}/10)}}|0=|1=one|2=two|3=three|4=four|5=five|6=six|7=seven|8=eight|9=nine|10=ten|20=twenty|30=thirty|50=fifty|#default={{#switch}}ty}}{{#ifeq:{{#var:Input}}|0|zero|{{#var:Cardinal}}}}