మూస:theordinal
|1=first|2=second|3=third|4=fourth|5=fifth
|6=sixth|7=seventh|8=eighth|9=ninth|10=tenth
|11=eleventh|12=twelfth|13=thirteenth|14=fourteenth|15=fifteenth
|16=sixteenth|17=seventeenth|18=eighteenth|19=nineteenth|20=twentieth
|21=twenty-first|22=twenty-second|23=twenty-third|24=twenty-fourth|25=twenty-fifth
|26=twenty-sixth|27=twenty-seventh|28=twenty-eighth|29=twenty-ninth|30=thirtieth
|31=thirty-first|32=thirty-second|33=thirty-third|34=thirty-fourth|35=thirty-fifth
|36=thirty-sixth|37=thirty-seventh|38=thirty-eighth|39=thirty-ninth|40=fortieth
|41=forty-first|42=forty-second|43=forty-third|44=forty-fourth|45=forty-fifth
|46=forty-sixth|47=forty-seventh|48=forty-eighth|49=forty-ninth|50=fiftieth
|#default={{{1}}}
- The following documentation is located at Template:theordinal/doc. [edit]
- Note: Please move the documentation subpage to Template:theordinal/documentation.
Given a number, this template automatically generates an English word for an ordinal.
Usage
<small>మార్చు</small>This template uses only one parameter, which is the number (written with Hindu-Arabic digits) to be converted.
Examples
<small>మార్చు</small>{{theordinal|1}}
returns:- first
{{theordinal|13}}
returns:- thirteenth
Mechanics
<small>మార్చు</small>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, {{theordinal|qwerty}}
merely returns "qwerty".)
See also
<small>మార్చు</small>- caps (returns a particular letter, either in upper or lower cases)
- str len (returns the number of characters of a string)
- theordinal (returns "first" from 1, "second" from 2, etc.)
- theplural (returns "suffixes" from suffix, "verbs" from verb, etc.)
- navbox (generates a collapsible box)
- ! (returns a vertical pipe: |)
- !! (returns two vertical pipes: ||)
- (! (returns a left brace followed by a vertical pipe: {|)
- !) (returns a vertical pipe followed by a right brace: |})
- !- (returns a vertical pipe followed by a dash: |-)
Languages, families and scripts:
- langname (same as above, but also returns a language name from the same language name)
- languagex (returns the language name from any language code)
- langnamex (same as above, but also returns a language name from the same language name)
- langrev (returns the language code of a given language name)
- languageshift (differentiates between "American Sign Language" and "American Sign Language language", among other related languages)
- langfamily (returns the language family from a language code)
- family (returns the family from a subfamily)
- script (returns a script name from a script code)
- scriptrev (returns a script code from a script name)
Pages:
- langprefix (returns the prefix, like conl:, of a language template)
- catlangcode (returns the name of a topical category, notably by never displaying the code en:)
- catlangname (returns the name of a lexical or other category similarly named)
- deftempboiler (generates a definition template)
- edit (generates an "edit" button)