Definition from Wiktionary, the free dictionary
Jump to: navigation, search


The following documentation is located at Template:thecardinal/documentation. [edit]
Useful links: subpage listtransclusionsredirects

Given a number, this template automatically generates an English word for a cardinal.


This template uses only one parameter, which is the number (written with Hindu-Arabic digits) to be converted.


  • {{thecardinal|1}} returns:
  • {{thecardinal|9}} returns:


This template simply employs the parser function #switch to keep a list of numbers in algarisms and their ordinal words. Consequently, this list should contain all the relevant number before they are converted elsewhere.

If a user tries to convert a set characters that is not in the list, the final result is simply the same set of characters. (For example, {{thecardinal|qwerty}} merely returns "qwerty".)

See also